Skip to main content
13 events
when toggle format what by license comment
May 25, 2014 at 9:52 comment added user12205 Click on "edit" to see what I've done.
May 25, 2014 at 9:47 comment added Lou @Ace, what did you use to highlight the syntax?
May 24, 2014 at 15:56 history edited user12205 CC BY-SA 3.0
syntax highlighting
May 24, 2014 at 15:34 comment added Lou Thank you for the character counter link, though the tool calculates 219 characters for the current code, which is off your initial count. Do line returns and tabs make up one byte, or character?
May 24, 2014 at 15:32 comment added user12205 Online tools should be sufficient, and this seems to be giving a correct count. As for automatic spacing and indentation, Visual Studio should have some settings that allows you to turn it off (see here). Line returns and tabs all count as one each.
May 24, 2014 at 15:29 history edited Lou CC BY-SA 3.0
Code edit
May 24, 2014 at 15:27 comment added Lou Also, how do I count bytes in code? Sorry, I looked in Meta and the Help Centre but I couldn't find an answer.
May 24, 2014 at 15:24 comment added Lou Visual Studio 2012 religiously enforces spacing and indentation, even correcting it before beginning a debug - I don't see a way I can cut them out.
May 24, 2014 at 15:23 comment added Lou I used an online tool out of laziness, I may have to write a character-counting function instead. Do you count line returns and tabs as characters?
May 24, 2014 at 15:22 comment added user12205 So your first line may become something like Function U(I). Your function can then return integers 0 and 1 instead of false/true. Then your second line can be changed to U=1 and your Return False can be changed to U=0. Finally, I'm not sure whether it works but perhaps making IA a string instead of a char array can save you a lot of bytes.
May 24, 2014 at 15:17 comment added user12205 I counted 189 characters even without necessary whitespace. Please be aware that, unless explicitly stated in the question, we usually count necessary whitespaces in answers. However, you can reduce your source size by removing unnecessary whitespaces (spaces around assignment operators, indentations etc) and using one-character identifier names, e.g. U instead of Unique, i instead of IA etc. Also, I cannot test it now but I think you can skip the type definitions of your variables/function (i.e. using only Dim D(9),i()=I.ToString.ToCharArray)
May 24, 2014 at 14:55 review First posts
May 24, 2014 at 15:39
May 24, 2014 at 14:32 history answered Lou CC BY-SA 3.0