Skip to main content

Timeline for Tips for golfing in <all languages>

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
Feb 20, 2015 at 2:41 history wiki removed Doorknob
Feb 18, 2014 at 14:11 comment added masterX244 in java when needing a array inside a function which has same type as one parameter you can save off a few bytes by putting that parameter as last and make it a vararg parameter; (used that to shave off some bytes on a function to find longest word in a sentence)
Mar 30, 2012 at 18:27 comment added ugoren I think it's quite specific to the C. Script languages don't need declarations, and in most compiled languages defining a variable isn't longer than defining a parameter.
Mar 27, 2012 at 22:09 comment added Griffin Well for example, in C, your main function is always passed the number of arguments supplied to the program (which is 1 - the program name - by 'default') so with main(i){... you now have a variable with the value of 1 without having to do any assignments. 2 chars saved there..
Mar 27, 2012 at 0:27 history answered Griffin CC BY-SA 3.0