« first day (1152 days earlier)      last day (3688 days later) » 

6:58 AM
Hm this is weird.
My answer has [+1/-1] score, yet in the inbox it shows +8 rep
 
7:12 AM
+10/-2
 
Downvotes are -2? since when
Oh yes. A downvote costs 1 rep, but gives -2 to the recipient
 
 
1 hour later…
8:17 AM
When and why did people start using spoiler blocks all over the site?
 
8:38 AM
imgur.com/a/VxKwD any suggestions?
 
(well "all over" is maybe an overstatement, but it seems to me there are way more than usual)
 
8:53 AM
@ChrisJester-Young Depends. If he wants to ask about suitable ways to represent posets as input to a challenge, then this is the right room.
 
 
3 hours later…
Bot initialized.
Bot killed manually.
Bot initialized.
 
Bot is now in this room and in GolfEye simultaneously
 
1:06 PM
Who else has a funny feeling that the text in codegolf.stackexchange.com/q/24909/18487 is ciphertext?
 
1008 bytes is a weird choice
Might be /dev/urandom anyway
 
1:22 PM
Or it might be the answer to the question
What is the meaning of life?
About a year ago I found a tool that would try to guess how to decrypt a ciphertext using about 5-10 popular algorithms and pick the answer that looks the most like English after it put enough effort into it
Does anyone know how to find it?
 
 
1 hour later…
2:35 PM
Dang... the author of that puzzle is spoiling it slowly after I spent almost 1.5 hours trying to figure it out
 
 
1 hour later…
3:37 PM
New post!
0
Q: Fillomino Solver

GeobitsFillomino is a puzzle where you fill a grid with polyominoes. Each polyomino is an area of contiguous cells. The grid representation shows what size polyomino is covering each cell. For example, a pentomino(5) would be shown as 5 in each of five contiguous cells (see below). Two polyominoes of th...

 
3:50 PM
knock knock
 
Who's there?
 
Apparently not only me.
 
Yo mama.
 
0
Q: Javascript for loop in

DonaldI have a for loop which goes through an array but I am trying to restrict it to break after the 2nd item. var x="",i=0; for (var x in marking;i=0;i++) { if (i==2){ break; } index.push(marking[x]); }; The console log error SyntaxError: missing ) after for-loop control f...

All the answers except one make me sad :(
 
@TimWolla It's a trap for young players.
Then again, the entirety of JS is. </trollface>
 
3:54 PM
Yeah, but three of them?
Okay, the question suggests these kind of answers.
But anyway…
 
See, I understand why you shouldn't use foreach for arrays in JS, but that's a JS rough edge, not really the way it was meant to be. IMHO.
In Java code, I prefer to use foreach whenever possible. And it does work correctly for arrays with no quirks.
 
@ChrisJester-Young Yeah, in every other language this is fine as well.
But JavaScript has it quirks…
I like JavaScript, though. But I prefer to write it in CoffeeScript
 
@TimWolla Yes, it actually led me to believe that "everything is a property" was a mistake.
@TimWolla CoffeeScript is nice but by itself it still doesn't solve the need to write your array iteration differently.
 
@ChrisJester-Young Oh, it does.
The preferred way to iterate over in Array in CoffeeScript is this:
for item, key in array
  console.log item
The key may be omitted.
 
Oh, nice.
I see they use in for arrays and of for objects. That makes sense.
 
4:03 PM
Yes.
 
I was saying that even CoffeeScript can't provide identical syntax for accessing objects and arrays, since it's a compile-time-only transformation (and can't introspect the type of the object), but they have a nice alternative to that.
 
I sometimes get confused by it though. I always try to use in for objects.
@ChrisJester-Young Oh, I see. Yeah. It could be fixed though, with a runtime overhead. But I don't think it is worth it.
 
4:17 PM
1
Q: Kolmogorov-mania

Marzio De BiasiThe Kolmogorov complexity of a string s is defined as the length of the shortest program P that outputs s. If the length of P is shorter than the length of s, then s is said to be compressible, otherwise s is incompressible. Most strings are incompressible ... Write the shortest program that out...

Even his hint does not help me
 
4:48 PM
New post! Triggers detected: missing winning criterion, new user @Doorknob @Quincunx @hosch250
0
Q: learning javascript as my first programming language

designerNProgrammerHey guys i am a web designer. I am a total newbie to programming. i want to ask that is it OK to start learning javascript or should I go for any other language to get my programming concepts strong before learning javascript? thanks.

 
5:02 PM
To be honest, I'm not sure I'm a big fan of these bot notifications in this chat room (as opposed to the GolfEye chat room). I'm not saying my word is law, but I just wanted to raise an opinion.
5
 
5:27 PM
@Chris Meh, questions are so rare here that it's uncommon enough to not be a disturbance. And this way more people are aware of the bot in the first place. You can always ignore the bot if it bothers you too much. And I feel that encouraging people to review and evaluate posts as they are posted will be good for the site's health as a whole. /cc @PeterTaylor
 
Fair enough. Reminds me of sobot (a bot in #stackoverflow that broadcast new questions on Stack Overflow, back in the days when new questions were infrequent).
Since the traffic on SO is way too high now, sobot is no longer running.
 
Yeah, once we graduate I'm definitely going to stop it from posting here.
 
Perhaps earlier if we start getting more traffic.
 
@Doorknob TBH I don't know if or when this site will graduate. For a long time, it seemed like "never" was the closest answer.
 
 
2 hours later…
7:31 PM
@TheDoctor Hello :) "If anyone wants to be added to this room, ping me on the 19th byte"
 
New post! Triggers detected: new user @Doorknob @Quincunx @hosch250
0
Q: Prime calculating program

user3103241Challange Write a program that calculates all the prime numbers and prints them to the screen. The smallest program wins of cource. It has to continue for ever (or integer overflow). Note that it is not allowed to use a built in function if your langue has one.

 
Interestingly I can't seem to find a question that makes this duplicate
Looks like this codegolf.stackexchange.com/q/5087/7162 but not exactly
 
8:04 PM
New post!
0
Q: Circles dividing the plane

Niklas B.This problem idea is borrowed from a recent Croatian programming contest but please don't cheat by looking at the solution outlines :) You are given a set of circles in the plane with their centers on the line y = 0: It is guaranteed that no pair of circles has more than one common point. You...

 
Hmmm. So far only an O(N^2)
Ohhhhhh. It hit me.
 
8:30 PM
Oh. My solution is wrong. Although it scored -52
 
@Doorknob You should raise a post about your bot on meta before letting it run rampant here.
 
Ohhhhh! It hit me again!
 
Bot killed manually.
 
idea get
 
Lol. One can solve the task in bash using no complex utils
and using only one pipeline
 
8:43 PM
Bot initialized.
 
Now it only posts a single line message in the main chatroom, which is much less noticable and can be ignored easily. — Doorknob 6 secs ago
@Chris ^
 
8:57 PM
Awesomesauce!
 
9:27 PM
If only I could remember graph theory :(
 
What do you guys think: would it be valid (for golfing) to create my own version of python, with a lot of names shortened and things already imported (if the "compiler" were open-source, anyone could use it, blabla)?
 
@Chris ^ Better? ;-) I'm thinking adding the title would be a good idea too; I'll do it when I get home (like "New post! [#{title}](#{url})")
 
@Doorknob Cool. (Ruby? Or CoffeeScript?)
 
It's open source and in Ruby. (Check the meta post)
 
Awesome.
@Doorknob Speaking of Ruby, I have a special treat for you.
Darn it, still no onebox. ;-)
 
11:24 PM
Huh, what's this? Sorry; I can't really read much on mobile
 
(The "GS" in the class name refers to GolfScript, since it uses Ruby string syntax.)
It's a class for parsing Ruby-style string literals.
It's a way to demonstrate how to write a state machine using enums in Java.
 
Ooh, interesting! :-D
 
Ruby's string syntax makes for an interesting state machine, since it supports so many different escape types.
 
Ok, gtg, will be back home soon
 
Have fun!
 
11:31 PM
ok, back home (that was quicker than I expected :P)
 
Is kinda what I was talking about
 
@Synthetica Interesting!
Perhaps you could have default short values for empty string, empty list, certain constants, etc.
for example, 1000
 
Hmm, yeah
 
Bot killed manually.
 
mini-update to show titles complete
 
11:36 PM
Bot initialized.
 
I was planning on adding custom default types, so that their methods could also be golfed.
so that you would get something like (file).r()" instead of file.read()`
 
Can't you extend classes in Python?
 
Yeah
 
In Ruby, it would be like:
class File
    alias r read
end
 
Maybe file would be a bad example, I'm also talking strings, ints and the like so that you could call those methods on all strings/ints/lists/etc.
even if you create them like 'string'
 
11:39 PM
class Integer
    def p
        puts self
    end
end
?
10.p
# => 10
 
And of cource TI-Basic style lazy programming, so that you could just say P(Q for a quine.
 
nullified in Ruby:
p q
:P
 
Oh ruby ;)
 
:D
okay, I'm going to eat dinner now
 
Hmmkay
cya
 

« first day (1152 days earlier)      last day (3688 days later) »