Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/28/2012 in all areas

  1. jdelaney, I had forgotten all about that! Glad I could help - even though I did not. M23
    1 point
  2. Valik

    Website Form Input

    Apparently Aipion got all butthurt over me saying his code was shit. Even though it is shit. Why is it shit? Because it uses Send(). Simple user interaction with the keyboard will break the script. There are much better ways of providing input to the elements on a page that the user cannot interrupt. It's ironic, really. I had just finished reading when I was directed towards the report directed at me. Kind of rings pretty damn true. For those curious, here's the report description: Let's pick this apart, shall we? When did I say "fuck you" or advocate saying that? When did I mention anything about garbage? I didn't. I said the code was shit. This is not opinion. This is not subjective. It can be very clearly demonstrated scientifically that the code is bad because it is easy to break the script's flow of execution. There are very simple alternatives that are an order of magnitude more reliable. Then, of course, there's the years of empirical data I have that proving that Send() is unreliable on a good day due to unforeseen events. But what do I know. You know what I don't find to be very nice? People who fail to read the rules. You did not read the rules and helped somebody do something that violates our rules. Then you got some sand in your vag and abused the report feature to report me. Me. A moderator. You reported a moderator. What are the others going to do? Ban me for telling you and the OP to read the rules because you broke them? Choo choo. Hear that? It's the logic train. You missed it. This would be incorrect. I can get away with what I want because of substantial contributions to this language and this community. My eccentricities are tolerated because in general I'm valuable to have around. You? What purpose do you serve? Well right now you are serving as fodder for me to shred which others will find entertaining. So you have that going for you I guess. /golfclap Anyway. You get a 7 day ban for your little report. My suggestion to you is accept the 7 day ban, don't PM me - or other mods - to bitch about it and don't try to evade it. Basically anything but being quiet will lead to your permanent removal from this forum. No, you won't evade the removal.
    1 point
  3. There's nothing wrong with ternaries if used correctly. I use them quite a bit (much to Jon's chagrin at one time) to initialize variables. They can lead to concise code. However, the code you show above - or the ternary equivalent - do a boolean test to return the result of that boolean test. So skip the extra lines of code. You don't need to test if something is true to return true. Just return the result of the test and you're done.
    1 point
×
×
  • Create New...