July 20, 201312 yr Root Admin comment_140474 So, iv spent some time on the train last night working on making the messaging system a bit better, and found this function :DWarning, swearing:[spoiler][/spoiler] Report
July 20, 201312 yr Root Admin comment_140476 :))))) you should see the comments in romanian sometimes. Report
July 20, 201312 yr comment_140496 and then there's the people that do this sort of thing for commenting //************************************************ //* paragraph about the funtion below this block * //* the paragraph is even brokren up into lines * //* to make it easier to read * //************************************************ for(int i=0;i<array.length;i++) //go through each elemtn of the array You can never have too many comments! edit: i like the semicolon at the end of the comment chew :P Edited July 20, 201312 yr by Rophs Report
July 20, 201312 yr Author Root Admin comment_140497 yeah you can have too many comments. No the paragraph style you comment isnt bad, its very useful when used properly If you are explaining the basics of the language in a comment, you are giving the code to too new people, unless you are teaching them Report
July 20, 201312 yr comment_140501 To me the worst is that javascript lets you return different argument types. -________- Sure you can treat strings as booleans but still... Report
July 20, 201312 yr Author Root Admin comment_140502 To me the worst is that javascript lets you return different argument types. -________- Sure you can treat strings as booleans but still...I see no issues with a non strictly typed language :D I like it. Just some of PHP's quirks catches people unaware if they dont know what they are doing :D Report
July 20, 201312 yr comment_140503 See the problem is it makes building large applications just that much more time consuming. You have to go and look at the function they defined, see what they return, see if they throw errors, make sure you handle all the edge cases... etc. Whereas in a strictly typed language, you know what it returns, what it throws without ever having to read the code. And sure comments help, but it still adds at least an extra few minutes to development. They should make it optional in javascript to add a return type to functions. But I doubt that'll ever happen. Report
July 21, 201312 yr Root Admin comment_140510 chew..it would be nice to make a top of worst code ever in md, on sections, like for example #1:user class #2:navigation process ..etc. Can't include combat here because it was so terrible that Randril had to rewrite it...that would have won the worst code top for sure i am actually serious about this, will be fun to know your opinion. Too bad I didn't ask r for the same, to compare ps, i think items will win :p ps2: could be a contest if you present the main sections and ask people to bet Report
July 21, 201312 yr Author Root Admin comment_140525 See the problem is it makes building large applications just that much more time consuming. You have to go and look at the function they defined, see what they return, see if they throw errors, make sure you handle all the edge cases... etc. Whereas in a strictly typed language, you know what it returns, what it throws without ever having to read the code. And sure comments help, but it still adds at least an extra few minutes to development. They should make it optional in javascript to add a return type to functions. But I doubt that'll ever happen. PHPDoc :) chew..it would be nice to make a top of worst code ever in md, on sections, like for example #1:user class #2:navigation process ..etc. Can't include combat here because it was so terrible that Randril had to rewrite it...that would have won the worst code top for sure i am actually serious about this, will be fun to know your opinion. Too bad I didn't ask r for the same, to compare ps, i think items will win :P ps2: could be a contest if you present the main sections and ask people to bet items are very hacky, most of them are good examples of copy and paste coding :P Although i did find a nice if/elseif/else statement in confirm strategy, that had the same comment, in romanian saying along the lines of they in an immunity zone, no attacks. For every single if statement, because you copied it and never removed/made the comment correct :P Report
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.