But really, whenever I see him answering a question with code and no further comment, usually one of the first answers I cannot help but think he's just doing that for gaining extra reps...
@flawr I don't know... I do the same all the time. 90% of the time, I find some improvement (sometimes substantial) after posting the answer, and rewriting one of those CJam explanation is a massive pain.
Because the whole system runs on rep, and you simply can't prevent people from trying to accumulate it. If you deleted fast answers, people would just leave.
I have been recently told to read an entire physics textbook by the new year (true story, unfortunately). I need your help to determine what chapters I should read each day. This is where you come in.
Input
Two dates, in any format. The second date will always be later than the first.
A list...
I just had a lesson in school about alkanes and figured it would probably make for a great code golf challenge! Don't worry, it isn't as complicated as it may look!
A Quick Rehash
(Please Note: To keep this brief, not all information is 100% accurate.)
Alkanes are strings of carbon and hydroge...
@Geobits I mean I am not actually suggesting deleting those answers, and I am not even downvoting them, I just usually want to see how others solve the problem.
If we're offering suggestions here, I have something that I need a suggestion for. As an English assignment, I need to write a short speech "which argues that [some thing] is better than [some other thing]". No topic restrictions, funny/sarcastic speeches welcome (often encouraged), and it is the world's most casual environment. What should I do?
@flawr I'm perfectly fluent in CJam, so for 9/10 CJam answers I don't need an explanation to understand them. I find MATLAB, Java and especially Brainfuck a lot harder to read, since I'm not fluent in any of those. Even with the quick overview you've included in the two answers, I still don't have the slightest clue what they do.
@Dennis As I said that is why I like explanations. You said you cannot read matlab and I say exactly the same about cjam. Thats why I think it would be nice to have some explanations even if people fluent in the language can read what it is doing.
I don't understand why it wouldn't be false (in most any language that uses that operator). C increments after the first, so it would be comparing 1 > 2
@feersum But still I get an impression of what is going on. If there is gibberish code (as golfed code usually is) but there is no hint of what is going on you could as well just write #Mylanguage, 999bytes without posting the code.
I see posting answers as showing off what you were able to do but at the same time providing something others can learn from. But if you have no idea what is going on, you cannot really learn from it.
In my opinion you do not have to explain every detail of the code, but just the rough idea.
@user2958652 Is it about this? If so, you should probably golf in a language you can test yourself. If you only have Maxima, just find something that works there and post it as such.
> You are alone in a room. You don't know how you got here or why, but what you do know is that you about to get attacked by a team of ninja samurai warriors, and you are running out of time. In front of you is a table, and on it lie two weapons. On the left is a two-handed sword, 58 inches total length, 4 pounds weight, 42 inch blade, steel. On the right is a ballpoint pen, 5 inches, 2 caliber, retractable, tungsten carbide and plastic. Which do you choose?
yeah, mixing mode types wasn't possible until recently
you could be really cheeky and say that file 1 and 4 are the same, so that you count the fourth file as 1 byte (for a non-arbitrary file name), but I'm not sure if that's going too far :P
This proposal is trying to close all of these loopholes with two policy changes.
Add 1 byte or character for each file after the first. This means that you can still split up your code into multiple files and even make the distribution into files significant for your program, but it's going to ...
Changeling (safe)
ShapeScript
ShapeScript is a naturally occurring programming language. Shape shifters (or Changelings, as they prefer to be called) can transform into a set of instructions that allows them to process data.
ShapeScript is a stack-based language with a relatively simple syntax...
Vitsy, 30 Bytes
Method shamelessly given by DanTheMan's solution.
Db/)[N;]Df1+/)[a-'a'+O;]d3*D{Z
Db/)[N;] If the number is less than 10, output its decimal representation and exit.
Df1+/)[a-'a'+O;] If the number is less than 16, output its hexadecimal repre...
Okay. Fixed. :D
I'm gonna be pwned by languages with greater than/less than support and hexadecimal output, but, eh.
@feersum since we almost never make use of the full 256 values in any programming language, I don't think that log 257/log 256 is worth the trouble of any more complicated rule.
@trichoplax hey, maybe too late but i thought if you add a bonus score to this challenge when number isnt converted to binary but since the bounty ended it doesnt matter
@MartinBüttner its wierd the world we live in where human words cant reach their meaning more than mechanical key words can do, i didnt understand sum-free challenge quiet well until i had been debugging your c code
but cant do much since, with couple of nice solutions there i dont think i can beat them