« first day (1726 days earlier)      last day (3132 days later) » 

Anonymous
2:03 PM
Shadow of the Colossus was the best game to come out on PS2 tbh
 
Ugh, the Fibonacci situation is really annoying me... I've been looking through the answers a bit, to see if requiring F(6) = 8 would invalidate any answers (of course it would, but then again it's not clear if that's even allowed under the current rules). and then there are answers that certainly aren't even valid under the current rules, including the top-voted one :/
 
Link?
 
Anonymous
Is the question whether or not it should be zero-indexed?
 
2:07 PM
I think my friend is choosing to learn Python over Perl. :(
 
@Mego the question is whether or not the challenge should get some heavy editing to turn it into a catalogue with a proper leaderboard
@Rainbolt I didn't even notice, heh :)
it's his only answer though
 
Anonymous
@MartinBüttner Since there's inconsistency in the answers for zero-vs-one, it's probably best to just make a new challenge with it specified
 
Could you copy answers from the old challenge to the new one and still be competitive?
 
I've been thinking about that as well, but it doesn't seem to be accepted practice at all here to post a better version of an old challenge and close the old one as a duplicate
 
Anonymous
For the catalogue questions, I don't think they should really be competitive
 
2:09 PM
?
 
@Mego well competitive within the language
 
Anonymous
There shouldn't be an "accepted answer" since we're trying to get the shortest within the language
 
that's still a form of "competitive" ;)
 
Anonymous
One answer per language, no accepting answers, specify zero-or-one-indexed, add the leaderboard stack snippet
 
Anonymous
Maybe require all answers to be community wiki answers?
 
2:11 PM
@Mego "one answer per language" why?
@Mego oh god, this is getting worse :D
 
You read my mind
 
Anonymous
Isn't the goal of it to catalogue the shortest possible solutions in a language?
 
Anonymous
Or am I misunderstanding the purpose of the catalogue questions?
 
That's the "goal" of half the site, to be honest.
 
Can someone explain to me in layman's terms what a catalogue question is?
 
2:12 PM
@Rainbolt A [code-golf] without an accepted answer.
 
@Rainbolt It's really just a code golf.
 
Anonymous
9
Q: Does PPCG fulfil a role as a catalogue for golfed solution of standard programming exercises?

Martin BüttnerRosetta Code collects solutions to standard programming exercises in hundreds of programming languages. However, it focuses on "good" or idiomatic solutions in those languages. I'm not aware of a similar catalogue from a golfing perspective. Is PPCG capable of fulfilling that role? Do we have cha...

 
But it appears to help to explicitly say "hey this is totally a challenge within each language not between languages" to get more answers in non-golfing and esoteric languages.
@Mego Sure, but how does this purpose benefit from allowing only one answer per language?
(Or making the answers CW)
 
If it's really just a code golf then why does Mego keep using this other term for it? Am I missing something?
 
It's not Mego that started that. Blame Martin ;)
 
Anonymous
2:14 PM
@MartinBüttner Since it's competing within languages, having two answers in the same language is redundant and unnecessary - the shorter one is the one we want
 
@Mego You could say the same about all of the site, no?
 
Anonymous
Ehh
 
Anonymous
I think I just have a different idea of what was meant by the meta post
 
@Rainbolt Let me try to explain the "difference" with the first "catalogue" challenge we had: codegolf.stackexchange.com/q/55422/8478 ... is it different from any other code golf? no. does it provide a more "useful" or relevant reference than most challenges? yes. why? because I called it a catalogue (I feel like if I hadn't, the score would be -123 instead because the challenge is "too trivial").
 
Anonymous
I imagined a set of questions that were more like Rosetta Code than our normal golfs
 
2:16 PM
@Mego The other answer might have a different approach which someone else might be able to golf further eventually. We have the leaderboard to sort out which answer is shortest in each language.
 
Okay, here's my avatar that I've actually put effort into ;)
 
Anonymous
@MartinBüttner I suppose that's true. Ignore my suggestion for that restriction, then :P
 
Anonymous
@BetaDecay Looks good
 
@MartinBüttner That makes sense to me. The stack snippet is definitely useful
This other talk of duplicating challenges and community wiki is just crazy though
2
 
@Mego Thanks. Pixlr is a good free tool ;D
 
Anonymous
2:18 PM
So basically the way the HW challenge went
 
@Rainbolt Sure, but I've been using that stack snippet for ages on all sorts of challenges.
 
Anonymous
No accepted answer, leaderboard by shortest in each language
 
Anonymous
We should also have different major language versions count separately, where relevant
 
@Rainbolt Well... it depends... there are some really bad challenges that prevent a better version being posted because we don't close old questions as duplicates of new ones.
 
@MartinBüttner The catalogue description takes up a huge amount of space though. How about "Read this meta post if you want to be included. Otherwise, you will not be included in the leaderboard."
 
2:19 PM
I agree that we shouldn't dupe challenges just to make a "catalog". The whole point of the first ones (at least I thought) was that we didn't have a simple, basic Hello World or FizzBuzz yet. We do have a fibo already.
 
Anonymous
Python 2 and Python 3 are different enough beasts to warrant separate categories, imo
 
@Geobits That's right, and I don't want to duplicate the Fibonacci challenge either. I would like to turn it into a useful reference though.
@Mego I think we do that.
 
I think it's better to keep the catalog description, but keep it consistent so that if someone knows the format of catalogs they can just skip that part
 
Am I right in saying there are two categories of answers on the fib challenge? I don't really follow the math behind the discussion earlier
 
Anonymous
@MartinBüttner Yep, it's just an extra thing for emphasis for the language leaderboards
 
2:21 PM
@Rainbolt there are a few more... but yes the question allows two different approaches
(but then there's also the question whether functions are 0- or 1-based, which the question doesn't specify, and whether snippets are allowed, because by default they aren't, but the accepted answer is a snippet, and and and....)
 
Oh, so four approaches (at least)
 
that's the issue... it's a pretty good question, seeing that it's from day 1, but it's a bit underspecified to make for comparable answers
 
Anonymous
Really there's 3, 0 vs 1 doesn't matter in the stream
 
Well, the spec is pretty loose, but there are 91 answers. I don't see how it could possibly be "fixed" without violating a pretty basic site rule: "Does it invalidate an existing answer? Then stahp."
 
What exactly is wrong with multiple approaches being valid? Isn't that true for all questions?
 
2:23 PM
well it's not really approaches... it's actually different solutions
 
Anonymous
It's not multiple approaches, it's the fact that the question allowed for 2 different solutions
 
you can either print an infinite stream of numbers, or you can implement a single n -> f(n) function
 
Because catalogs (so far at least) are all very rigid for some reason :(
 
I don't even think that's a massive problem for the catalogue though
I've written up a draft for the catalogue which allows pretty much the same things as the current spec
my problem is something like the top voted answer that doesn't even satisfy the current spec, but would still be included in the leaderboard ^^
(I mean, there are these override comments....)
 
Anonymous
Personally, I don't see a problem with making a new question (or two, if we want both the stream and single-value questions), with enough specification to meet our current standards
 
2:25 PM
@Mego I do see the problem that I'd get twice the rep for answers I already posted on the old challenge ;)
 
I suppose there's no way for mods to, say, move answers around/create answers tied to a particular user? (would be great for this situation, but I'd doubt they'd have it cos, well, mod abuse)
 
Anonymous
Currently, our options seem to be overhaul the old challenge (and break the basic site rule Geobits cited), or make a new question
 
Another option: just not have a fibonacci catalog. I know, it sounds strange, but it is an option. You've been trying to figure this out for a few days, but is it worth it?
 
@Sp3000 I think we can merge questions, but then I can just edit the current one.
 
Anonymous
I think the doubled rep is the lesser of the two evils
 
2:27 PM
@Mego as I said, my current draft doesn't invalidate any answers that aren't already invalid
 
What do you guys normally do when a highly upvoted answer violates spec? Do you duplicate the question and post it again?
 
Well I was thinking of actually having two questions but sorting through the answers and splitting them up as necessary. Some answers might have code for both stream/single value, hence the "create answers tied to a particular user" part
 
the invalid answers would just be a slightly bigger problem, because previously no one cared about them, but when we generate a leaderboard, that is pointless if we include the invalid answers.
 
Rainbolt's a pumpkin :)
 
@Geobits ;)
Took long enough to update
 
2:28 PM
@Rainbolt I think these days, a highly-voted answer rarely violates the spec.
 
@MartinBüttner ... unless it's funny, or looks clever in a language that isn't easily testable.
 
well... I mean, as I said, I can exclude individual answers from the leaderboard
 
Well, we are officially the most festive chat room. Maid Cafe posted a "happy halloween" image, but we have pumpkins.
4
 
So wait we don't have a 99 bottles of beer catalog?
 
Anonymous
Nope, we've only had popcon 99 bottles
 
2:36 PM
oic
 
Did you guys know we have a beer stack exchange? beer.stackexchange.com
 
Anonymous
Which looks way too much like popcorn
 
Anonymous
Yep
 
Anonymous
I found that out when I went through my registering spree yesterday
 
Do we have a leaderboard stack snippet for catalogs?
 
2:38 PM
Yes.
(It's not much different from the usual leaderboard snippet though)
 
JavaScript only challenge idea: Golf our code snippets for catalogs and leaderboards
 
Anonymous
How meta
 
We would have to reverse engineer the spec, because using code and saying "golf this" is hardly a spec.
 
I can give you a spec, but I can't promise the actual snippet satisfies it ;)
 
Better yet, make it [code-trolling] >_>
 
2:44 PM
@Geobits Halloween at PPCG: returns.
 
Scary stuff :)
 
Anonymous
spooky scary stack snippets
 
Can someone confirm that they understand Chris's rules such that the word-size limit may only be assumed for function submissions, not for sequence/stream submissions?
 
@MartinBüttner I confirm.
 
(which should continue until you actually run out of memory)
 
2:48 PM
The stream obviously can't go on infinitely, so isn't it subject to the same limitation?
 
Anonymous
@MartinBüttner Looks like that to me
 
@Rainbolt The stream can go on until the last two Fibonacci numbers exceed your computer's memory, I guess
that's quite a different limit than "word size"
 
Anonymous
64 bits vs 8 GB + whatever virtual memory
 
Anonymous
(for my pc, at least)
 
2:50 PM
Okay, so how about this: I use this spec, which I think isn't any stricter than Chris's, only more explicit: gist.github.com/mbuettner/b77bbf2c02e48b50becd So it shouldn't invalidate any answers that aren't already invalid. I will then go through the answers and exclude any that seem invalid from the leaderboard (leaving a comment).
@ChrisJester-Young When you said "Generates a Fibonacci sequence (either in standard output, or as a stream)" what exactly did you consider a valid "stream"? Only something that can be used by other parts of the code, like a generator function, or also stuff like a program which just writes the Fibonacci numbers to the infinite Brainfuck tape (in which case there is no code which could ever use it, because it doesn't exactly fill the tape lazily).
 
Anonymous
In particular, your code must not terminate (or produce wrong output) early due to things like fixed-size integers (e.g. 64-bit) - I don't like this part. C/C++ could generate a stream up to 2^32-1 or 2^64-1, depending on 32- vs 64-bit, but can't go any further. It essentially excludes solutions that don't use bignum libraries (or have support built-in, like Python)
 
@Mego But this is exactly, what the current spec asks, right?
In C/C++ you'd be better off implementing a function instead then.
 
I should really learn a proper golfing language, I think I'm starting to hit the limits of Python golfing.
Which one is (relatively) easy to learn?
 
2:56 PM
Alright, thanks. I'll check it out.
 
^_^
 
Anonymous
@MartinBüttner I read "infinite" to mean "it should keep generating numbers for as long as possible"
 
(@MorganThrapp And I find it very refreshing to use a different paradigm, i.e. stack-based programming, from most "normal" languages.)
 
Yeah, I haven't done any stack based programming, so it should be interesting.
 
@Mego right, "as long as possible" being "until you run out of memory" ;)
 
Anonymous
2:58 PM
@MartinBüttner I think "hitting the word size limit" counts as a valid stopping condition also
 
the current spec doesn't mention an allowable word-size limit until specifically talking about the function-solutions
 
Anonymous
You are running out of memory, but it's in one word, rather than your whole machine
 
@Mego it sucks when you run out of memor
(word size=5)
 
Anonymous
@aditsu Yeah... Wait what were we talking about?
 
@MartinBüttner "If possible, output should consist solely of the Fibonacci number(s) using any of the integer representations mentioned in the input section." This applies only to functions, right?
 
3:04 PM
well the sentence after that is sort of an amendment for the sequence option, but I could clarify that
 
@Rainbolt Woah, pumpkins? I missed them D:
 
It's odd that the original question doesn't have a "simple" answer in Java, despite having a couple. I expected to see something like this:
int f(int n){return n<2?1:f(n-1)+f(n-2);}
 
Anonymous
Couldn't you shave off a byte by swapping the conditional and getting rid of the space?
 
Anonymous
Or does java get confused by return2?
 
@Mego normally, spaces can only be omitted if the number comes first (even in other languages)
 
3:06 PM
Yea, it wouldn't like that. You could if it was parenthesized already return(n...), but not worth wrapping it here.
 
because return2 is a valid identifier.
 
@BetaDecay You haven't missed anything. Look at the images to the left of the chat.
 
Anonymous
Oh right
 
Anonymous
I blame lack of coffee
 
Anonymous
Disregard
 
3:07 PM
return n<2? n : …
 
@Rainbolt Hmm...
 
@aditsu You could do it that way, but the spec allows for both. I'm using the f(6)=13 version.
 
oh ok, I didn't look at the spec
 
Anonymous
Or you could do a lambda for even shorter code
 
3:08 PM
So it's 1,1,2,3,..., but zero indexed.
 
Anonymous
Though Java 8 will probably be its own category
 
@BetaDecay What the... why are you missing so many images?
 
@Mego I could. I have a moral objection to the way java golfs do lambdas, so I don't. Call me picky ;)
 
@Geobits as Dennis pointed out yesterday, f(6)=8 is objectively better though and it wouldn't cost you any bytes ;)
 
@BetaDecay try a reload
 
3:09 PM
@Rainbolt v
 
@MartinBüttner Tighten up your draft spec then :P
 
Oh, right. I forgot my pumpkin was erotic.
 
@Geobits it does recommend f(6)=8 (now)
 
@BetaDecay @_@
 
-.-
 
Anonymous
3:11 PM
@Geobits Actually lambdas wouldn't work for the recursive solution, unless you wanted to make the answer much longer with a helper func
 
@MartinBüttner This is what I get for working from a draft ;)
 
@Geobits I feel like this isn't really going anywhere... maybe we do need a meta discussion about superseding old content...
 
Maybe. I'm not sure how I'd answer, or even what exactly is the right question to ask.
There seem to be multiple, related issues on this one. That's why it seems to me that it might just be easier to skip fibonacci in the "catalog" department.
 
Let me write it up. "I think we should tighten the spec on this old question and then repost it. What do you guys think?"
 
@Geobits cool, let's take cat then
 
3:14 PM
Instant death of your idea
 
@MartinBüttner IIRC, the cat question was much worse. You could probably get away with just locking that one as historical junk ;)
 
codegolf.stackexchange.com/q/31793/8478 this is such a horrible spec, but with our current duplicate policies it prevents us from posting a good cat challenge.
 
Wait, I have a better idea. Ask Calvin's Hobbies to repost it. That guy can put a fresh spin on pretty much anything.
 
And he has experience working with wild cats, I think.
 
@Geobits Now, the Fibonacci challenge is much better than that, but a) I think I like it more because Chris posted it and b) No matter who'd post it, if it was posted today, it would be closed or at least downvoted for being way too vague for a spec.
 
3:17 PM
@aditsu I've been meaning to ask: Is there a way to make the CJam interpreter jar into a Java library so I can call something like runCode(String code)?
 
@MartinBüttner I know, it's "unclear" or "too broad" at a minimum. And I get that it's such a canonical thing that a catalog would be cool, but why do we need to formalize it into one? Doing it for the sake of doing it seems pointless.
 
Over on Board and Card Games we close older questions as dupes of newer ones all the time. I have an issue with the people that do this intentionally, but I appreciate the times when it happens organically (the guy honestly didn't know one already existed, and just wrote a much better version of the same question).
 
@Geobits I suppose the question is, do we care about generating good/useful content (as pertains to the golfing community) or do we just care about having fun while solving challenges.
 
Anonymous
@GamrCorps You should just be able to add the jar to your classpath
 
@Mego Do you know of a specific method I could use for this purpose?
 
Anonymous
3:19 PM
@GamrCorps Let me do a little bit of investigation
 
@MartinBüttner IMO it's more: Is that question useless as it is, or does it have some value? I get that it's not up to our current standards, but where does that end?
 
@Rainbolt On a Q&A site it's usually easier to edit a bad question into good shape without invalidating answers though (which is why I get that you have an issue with reposting questions intentionally). Here on the other hand you can't just tighten up an old spec and we still don't close old questions as duplicates.
 
@Mego I looked and I couldn't find one, was thinking I might have to convert the code to a block an run it that way. But if you find one that would be great!
 
@Geobits You mean, if we did redo it now, we'd redo it again in 4 years?
 
@GamrCorps you can already use the jar file as a library
 
3:20 PM
@MartinBüttner No, more like how many of our old challenges are now up for grabs as catalogs if we do this one?
 
@aditsu is there a runCode(String)-like method?
 
@Geobits Oh probably a lot of them, but if we improve the general content quality of the site in the process I don't see anything wrong with it.
 
@GamrCorps the simplest is CJam.run(code, input) (static method, returns String with output)
 
Of course the question isn't "useless" as it stands, but it also doesn't serve as a good reference.
 
@aditsu I'll try that, thanks!
 
3:22 PM
Chat is loading extremely slowly for me
 
I am thinking of switching to this profile pic for Halloween :
 
@aditsu @Mego thanks guys! I got it working!
 
@MartinBüttner I'm torn. Like I said, the original idea about catalogs (which I agreed with) was that 1) they would be good references, and 2) these challenges don't already exist here for some reason. Or at least that's the impression I got. I'm on the fence about going through all our old questions and remaking them.
 
Anonymous
@GamrCorps Yay!
 
Anonymous
@Optimizer needs more pumpkin
 
3:25 PM
@Mego I am going for the spooky part of the theme
 
@Geobits 2) wasn't really a requirement I had in mind... it just happened to be the case for HW (which admittedly helped with the question being so well accepted).
 
@Optimizer maybe a darker background as well
 
@Optimizer That's not spooky though. It's almost cute.
 
@Geobits Its spooky because I am not just wearing Martin's coat.
 
Oh, I thought it was Martin wearing your skin.
 
3:27 PM
 
Anonymous
@aditsu that's terrifying... I love it
 
@Geobits either way, its murder
 
Still doesn't look spooky to me :P
@MartinBüttner Yea, it definitely helped ;)
 
well, yours is also not spooky
 
that's an actual halloween costume
 
3:28 PM
I didn't say I was going for spooky that I recall. You did:
3 mins ago, by Optimizer
@Mego I am going for the spooky part of the theme
I'm just going for a generic Halloween feel :)
 
@Geobits Well, I've got to head out... will need to think about this some more... (and wait for Chris to get back to me to clarify his intention of the spec anyway)
 
Good bye
BTW who's Chris?
 
@BetaDecay You must be new :P
2
 
The only Chris I can think of is myself...
 
3:33 PM
Ohhh CJY
haven't seen him for a while
 
Every time someone says that I hear 96 Quite Bitter Beings in my head
(Which, coincidentally, I first heard while playing Tony Hawk Pro Skater 2 or 3)
 
-1
Q: Visual Basic 2010 express

user46368i have to create a login whit vb.net. I want edit and create a file .txt to save my user name and password. Moreover i need to create a button to create randomly a password of 8 characters from assci table. How i do that?? Thank you?

0
Q: Energy levels of electrons

Thomas WEnergy levels of electrons Electrons are ordered into "shells". However, sometimes electrons get excited, for example by heat, and leave their shell to go to another! These electrons will go back at some point, but they cannot go back to their original shell without emitting energy in the form o...

 
@Martin Is "centre"a UK spelling of "center"?
 
Yep
 
It's the only spelling of centre
 
3:37 PM
Also a "fancy" way of spelling it in the US if someone wants to feel better than others :P
@BetaDecay -15 That is objectively untrue.
 
@Geobits Sulphur
FTW
 
0
A: Sandbox for Proposed Challenges

quartataBrew Golf me some beer Following up on the success of our recent "catalog" challenges (Hello World, FizzBuzz, primes) here's a 99 bottles of beer catalog (since apparently the other one is popularity-contest but not a regular code-golf one. So... here goes. Challenge Your challenge is to print...

Let's see how long it takes for the bot to post it
 
Damn, the contrast is too low on my avatar... How's it now?
 
I'd bring the orange down to a more "burnt" shade to bump the contrast.
The beta is hard to make out.
 
^
 
3:41 PM
 
Hmm
 
Probably better, but need to see it much smaller to be sure ;)
 
Maybe more like a gradient between that color and the previous orange
 
I would go with black instead
 
That might be nicer
@Rainbolt Ooh that might be nice too
 
3:42 PM
@Rainbolt I agree that black would be better. I thought he wanted to stay orange, but I guess not :)
 
Gothic vampire film
(First thing that floated through my head)
 
The other issue is that the blood is so... minor. At any low scale it doesn't register as blood at all (just a longer tail or odd font). The color scheme works, but overall it doesn't scream "Halloween" to me.
Looks fine big.
 
Maybe that'll be better with the contrast changed
Nah, the blood's hard to make out on my main profile with the lighter orange
Gtg
 
1
A: Sandbox for Proposed Challenges

quartataBrew Golf me some beer Following up on the success of our recent "catalog" challenges (Hello World, FizzBuzz, primes) here's a 99 bottles of beer catalog (since apparently the other one is popularity-contest but not a regular code-golf one. So... here goes. Challenge Your challenge is to print...

 
3:48 PM
Alright, so does this have any glaring issues?
 
Yeah. No one under 21 would be able to participate.
 
Aside from that...
I mean I guess we could make it root beer
But it wouldn't be "traditional"
 
Anonymous
 
Anonymous
Much spooky, very paint
 
Wow, such spoop
 
3:52 PM
For others like me (but lazier): spoop
 
@quartata You could add a disclaimer than users under the age of 21 cannot consume the beer.
@Rainbolt Well that is not what I meant at all.
Spooky -> spoopy (per a meme) -> spoop
 
Anonymous
@AlexA. I'll have you know there was nothing speedy about it... It took me way too long to get it looking half-decent
 
1 min ago, by Alex A.
@Rainbolt Well that is not what I meant at all.
 
Anonymous
 
Anonymous
3:56 PM
100x <s>better</s> different
 
@Rainbolt Holy smokes that is good
 

« first day (1726 days earlier)      last day (3132 days later) »