« first day (758 days earlier)      last day (4190 days later) » 

11:00 PM
Wow. I seriously just wrote the phrase 'internet delivery mechanisms' for a history paper. Wtf.
 
lool
 
._.
 
Bloody friggin hell.
Singletons? Globals? SQL injection? People, those are not the real problems.

I can't believe there are programmers out there who do not properly indent their code.
 
@Christian True that. What do you think about this one:
 
Unbelievable.
 
11:04 PM
"IndentationError" -> Python is indentation — PeeHaa 9 hours ago
 
@PeeHaa :D Now you're just abusing my rants. Shut it. lol
 
:P
And gone it is
 
Seriously though, I may not be a big teacher, but I've coached CS students of all ages, from secondary, technical school to university.
It's unbelievable how they do not know how to debug their own code and always do indentation wrong.
The common excuse seems to be "I'll do it last" ... but really, that's just stupid.
And we're fussing about singletons and statics.
 
It is fucking stupid indeed :P
Some people just need to be slapped to come back to reality
 
@PeeHaa Good idea. /slaps @Gordon
^ Man, I love how PDO secures my queries: $pdo->query("SELECT * FROM `a` WHERE `b`='$b'");
 
11:12 PM
That's what you'll find mostly on SO. true, but sad
 
@PeeHaa At least it's entertaining.
Maybe our sql library motto should change "don't use sql, at all"
 
People will screw up no matter the technology used
 
American Musical Genius Patrice Wilson strikes again.
@PeeHaa But if you use MongoDB, you can't have SQL injection vulnerabilities
I kid you not, I have seen that argument made for Mongo.
 
:D Not to mention it's webscale
 
@Lusitanian What's that? I just burned my eyes watching a few seconds of that horror movie.
 
11:18 PM
@Christian The guy responsible for the hit song "Friday"...
 
It's an American thing, most countries don't like bad music.
 
@Lusitanian Should I like bad music? O.o
 
@PeeHaa It is indeed.
@Christian No :P
 
@Lusitanian You're a disturbed little kid ;-)
2
 
11:19 PM
@PeeHaa ...............
 
@PeeHaa That wasn't my star, I swear.
 
-.-
 
Today at the office we got really bored. Dunno where I got the idea, we changed Windows 7 default font to comic sans for a colleague that was away.
 
it wasn't even comic sans day!
 
@PeeHaa Well, we also considering cleaning up his fonts directory.
 
11:22 PM
hehe
 
But I figured I'd rather not taste his fury :D
 
Comic Sans. Ew. Don't.
That's so immoral.
 
Even more immoral than that is to hide my food as a prank.
 
True......
 
Now if you really want to stay out of trouble, don't touch my food.
Ever.
 
11:25 PM
I tend to feel the same way.
 
Where are you guys from again? Big city anyone? I'm kind of missing a big pizza right now. With some delicious cookie dough.
 
Netherlands::Rotterdam
 
USA, and near a semi-big city.
 
@PeeHaa That ought to be....interesting.
Europe::Malta::Nowhere
 
var_dump($this->countries->find('Malta')->isMemberOfEU()); // bool(true)
 
11:31 PM
Lol it's even on pr0gramm now: pr0gramm.com/#newest*/82848/2012/11/ffhwu
wow. MD. well done. Really fine job you did there
 
404
 
http://pr0gramm.com/#newest/*/82848/2012/11/ffhwu
 
what is pr0gramm
other than an apparent image dump wasteland
 
Nothing. That;s about it :D
 
@DaveRandom hiya
 
That's all I have to say
 
already have done
was epic
 
11:36 PM
 
Right, that's it, I'm starting an A51 proposal for steak.SE
 
I just got downvoted because someone thinks Iterators are not memory efficient
@PeeHaa can you imagine that
 
11:39 PM
@Baba They aren't. They are sanity efficient though.
 
@PeeHaa Lessons in why you shouldn't use Facebook
 
If you search my name, you find one terrible youtube video and something saying I was born in 1893
 
@DaveRandom not when you are dealing with very large arrays from external source
@DaveRandom or just explain more
 
@Baba In general iterator objects use quite a bit more memory (I'm pretty sure I'm right in saying) than for ex. for loops etc, simply because of the nature of what they do and the flexibility they give you. But for the same reasons they make your code a lot cleaner and more readable.
As is often the case in PHP, $readability++; $efficiency--;
...but the performance losses vs. the readability gains are so negligible that you take the performance hit and you don't think any more about it.
In short when it come to iterators, dving because of efficiency is wrong.
 
11:46 PM
@DaveRandom um, depending on what you're iterating over; an iterator can be significantly more efficient
 
@DaveRandom .. i'll do some benchmark
 
@Baba is most certainly right [referring to very large arrays from an external source]
 
@Lusitanian In general ;-)
 
Heh fine
 
@Lusitanian i did not loop especially with CSV .... 2,000,000 .. extending Iterators was faster
 
11:48 PM
I know there are cases where that is not true, but more often than not that is the case
@Baba Yeh, in that case, an iterator is probably more efficient
but also...
while ($line = fgetcsv($fp))
^^ only ever one line in memory at a time
 
@DaveRandom true .. that was also very fast but have seen cases where iterators are faster
hold on
 
Typical example RecursiveIteratorIterator
 
Important point: foreach is based on black magic and satanic rituals, and most of the time it is the wrong answer if efficiency is your goal. In fact, a lot of the time when people use foreach, they are asking the wrong question. Obviously this is probably not true when you start to introduce non-contiguous and/or string keys.
 
11:54 PM
@PeeHaa oh, ok sorry
 
@Baba Depends what you are iterating, but probably yes.
 
@Michael Sorry I'm currently in the process of going to bed
 
@DaveRandom so basically most times it has to do with implementation
@PeeHaa have a wonderful night rest
 
later all
 
@Baba Just like pretty much everything ;-)
 
11:55 PM
@Baba tnx
 
@PeeHaa Nighty night
 
@DaveRandom 100% true
 
Can someone please help me with my question, it involves parsing/decoding some nested JSON i really need some help, I'm currently stuck stackoverflow.com/questions/13353525/…
 
@DaveRandom .... nice one thanks
 

« first day (758 days earlier)      last day (4190 days later) »