This thread reminds me of this Penny Arcade comic:
MrMan
@MrMan
Best posts made by MrMan
Latest posts made by MrMan
-
RE: Oh I'm pissed..... is this the right forum???
-
RE: Search results for ${query}
Shitty Javascript is a dime a dozen these days, but this is still pretty bad. Here's some particularly retarded snippets:
function openWindow2(theURL,winName,features) { window.open(theURL,winName,features); } function randInt(min,max) { var div = (max - min) + 1 var randNum = Math.random() for (var i = 0; i <= div - 1; i++) { if (randNum >= i / div && randNum < (i+1) / div) {return i + min} } } function swapBanners() { var abc = randInt(1,3); //var bannerDiv = document.getElementById("Java_banner"); if (abc == 1) { document.write(Banner1); } if (abc == 2) { document.write(Banner2); } if (abc == 3) { document.write(Banner3); } }
-
RE: WTF Spammed
Link.
The captcha sucks, so this was inevitable. Alex probably expected it, though.
-
RE: See your network's product keys!
@ajg said:
Ugh... 1280x960 GIFs are evil...
It's only 466KB, which really isn't that big. But yeah, they should've used PNG.
-
RE: Can you fix these bugs asap
@Lingerance said:
@seaturnip said:
I use it because it is significantly easier to use than any other language I've used, the documentation is just there. Inlining is considered bad form, especially since smarty is available.@j6cubic said:
The real WTF is using inline PHP. Nothing good comes from a PHP file that doesn't start and end with the PHP tag.
Wait, I thought inlining was the whole point of PHP? Otherwise, why not use a real language?
I consider Python to be easier to learn than PHP, and I've been working with PHP a lot longer than I have with Python. It has a much better standard function library than PHP, seeing as PHP's function library is very poorly modularized and follows absolutely no standards with regards to function naming, return values, parameter ordering, etc. PHP's only saving grace in this regard is its fantastic online documentation, which unfortunately Python has yet to match (although Python's support for docstrings make an online manual much less of a necessity). Also, I find Python's syntax to be more intuitive than PHP's mismash of Perl, C, and Java, although that's more subjective.
Oh, and the closing tag (?>) for a PHP file is optional. It's actually better to leave it out for files that are included, because if you don't you'll run into problems if there's whitespace after the ?> and the file is included before headers are sent. Whitespace after the closing ?> causes PHP to send the headers for that page, and attempting to output any headers after that (by, say, calling session_start()) will cause a PHP error. This can be tricky to debug, and I say that from experience. Of course, if you use a sane language, you don't have to worry about such things. -
RE: Tv, so last century
You could do what several people here do (ender, Lingerance, Random822) and watch anime. Tons of variety there, and places like Netflix have a good selection. If you want to view current shows you'll have to use torrents or steaming video sites like stage6.com, which probably isn't feasible with a shitty internet connection. You're not missing out on much though, since IMO the only good shows this season are Clannad and Higurashi Kai.
-
RE: A = a;
@pitchingchris said:
I pray for your souls.
Praying is a pointless activity. Praying for non-existent things as "souls" is even more pointless.
Actually, scratch that, studies have shown that praying is detrimental. See this: http://www.nytimes.com/2006/03/31/health/31pray.html?pagewanted=2
-
RE: A = a;
Obviously the programmer is an Objectivist and is merely trying to apply Rand's (in)famous statement to programming.
On a related note, I bet Rand would approve of this thread.
-
RE: Is it too late to make money off of old people who are confused by the internet?
Man, you guys are really easy to troll. When faced with a thread like this, the best response (if you're not a mod) is to rate it a 1 and move on. Calling CPound a jerk is a waste of time, since I can guarantee you he doesn't care, and most likely finds it amusing.
-
RE: DreamWeaver Tips and tricks!!
The real WTF is that people still waste their time typing SGML comments at the beginning and end of code inside <script> tags. The reason that practice was started was to hide JS code from ridiculously old browsers (i.e. Netscape 3.0) that don't recognize the <script> tag. Pretty much nobody uses those browsers anymore, and I doubt even 1% of the people that continue the practice bother testing their sites in them.