« first day (741 days earlier)      last day (4212 days later) » 

11:00 AM
@TonyTheLion monkey lion see, lion do
 
user142019
@TonyTheLion Then add SQL injection vulnerabilities on purpose! :D
 
user142019
 
@WTP'-- It's kinda nice to agree with something - prepared statements/stored procedures good.
 
user142019
But I usually use BSON or JSON since I always use MongoDB, CouchDB and Redis. :P
 
user142019
And you don’t need to compile anything for them.
 
user142019
11:02 AM
So prepared statements make no sense.
 
@thecoshman As far I can read he disagrees with a whole lot more than that :P
 
Though they could be described as 'a safer form of torture'.
 
user142019
db.posts.find({
    score: { $gt: 10 },
    tags: ['javascript', 'mongodb']
}); // Who needs SQL?
 
with regards to this "don't use getters and setters" I think it is worth saying, that these functions them selves are not bad. What is bad is when a 'private' variable in a class has a getter and a setter that effectively make the variable public. Generally speaking, you should only use getters/setters when you are doing some sort of processing.
As way of example, take 'cube' class. You might internally have a 'length' property, which you can simply keep public, and then have 'volume' getters and setters that calculate the correct value when used.
 
@KillianDS In he pub opposite the Nortel offices, late Fri afternoon, (all managers/developers pissed), one guy actualy said 'I love SQL'. The ensuing silence was deafening...
 
11:05 AM
@KillianDS there was other things yes, but the bulk of the rant seemed to targeted against something that is actually quite sensible given the constraints of shitty code base that is not compatible with exceptions.
any hoops
lunch time :D
 
Feb 29 at 2:01, by Mooing Duck
@RMartinhoFernandes my GF bought me a star and I have to name it and she's upset at me for not coming up with a name
^ it ended up fairly well - for now :)
 
user142019
@sehe dat is een ander soort sterretje. :P
 
Suggestief
 
user142019
PREPARED STATEMENTS <3
 
That's even after his then-fiance proved to be a hero with printers:
Aug 24 at 1:38, by Mooing Duck
fascinating. My fiance called me today and said the printer doesn't work. When I got home I immediately saw why. Did you know that USB plugs fit quite snugly into an ethernet port? It's only a hair looser than a USB slot, definitely tight enough to feel like the right hole.
 
11:06 AM
@thecoshman This day is getting worse. I agree - getters/setters only useful for the side-effects. If there are none, pointless.
 
Ell
aww man wine has failed me
 
@Ell at this hour? You should consider signing up for rehab
 
@sehe I've done that too. Also, RJ11 phone plugs fit nicely into RJ45 ethernet sockets.
 
Ell
@sehe haha good one :) I'm running notepad++ under wine :3
 
user142019
Database APIs for SQL databases should enforce using prepared statements.
 
11:08 AM
Should I feel bad for complaining about the job I've been given to do to my superior?
 
user142019
No.
 
user142019
Complaining is fun!
 
@MartinJames Oh, I know. I've tried the same. I'm pretty sure I'd notice when the printer magically refused to produce any evidence of my print job having been submitted
@Ell Why. Just. Why
 
user142019
@Ell Notepad++ is crap.
 
Ell
@sehe I like notepad++ :P
 
user142019
11:09 AM
Use Sublime Text 2 at least.
 
@TonyTheLion You should feel bad for not telling us
 
Ell
that is non free isn't it?
 
@Ell I don't dislike it. Use gvim/gedit though on linux
 
Ell
I like notepad++s regex features
 
user142019
All software is free.
 
Ell
11:10 AM
and gui
 
@sehe but I've told you already
 
user142019
@Ell Oh regex search and replace? Definitely TextWrangler.
 
@WTP'-- Sublime Text has no "find results" window, it sucks.
 
@TonyTheLion Oh. That. I was hoping something new >)
 
user142019
11:10 AM
@Abyx it has a command window and it lists results as you type.
 
same shit, different day
 
user142019
And it accounts for typos.
 
@WTP'-- all results?
 
Rejoice!
 
user142019
So “ofo” finds “foo”.
 
11:11 AM
whee, C intro class for systems programming >_>
 
user142019
@Abyx all results in all files in your project, AFAIK.
 
@WTP'-- Ungood IMO
@WTP'-- That's nice.
 
user142019
@sehe no, good.
 
@WTP'-- what kind of a lame feature is that :s
 
@WTP'-- No good, agreed
 
11:11 AM
if i want to find something I want to find exactly that
 
user142019
It also does that for autocompletion.
 
@WTP'-- zsh suggestions on misspelled commands, rather nice
@KillianDS Or I specify the degrees of lenience.
 
user142019
str_repal —> autocomplete shows str_replace.
 
user142019
@KillianDS it only does that in the quick find window. For more serious searching you’d use the search bar anyway.
 
@WTP'-- hahaha. Good
 
user142019
11:14 AM
Or just like
 
user142019
a plugin that’s specialized for searching.
 
user142019
But if you need to search your code base, your code base is bad and you should feel bad.
 
@WTP'-- haha, have you ever worked on a real multi-developer project?
 
user142019
Yes.
 
user142019
And the code base was terrible.
 
11:16 AM
even if your codebase is somewhat decent, find is something you'll need often.
 
user142019
About 10000 PHP files and everything was a complete mess.
 
user142019
Combine that with annoying coworkers who don’t give a shit about correct indentation and a consistent code style.
 
user142019
Who think they can write a string_contains_only_digits function in terms of converting to int.
 
user142019
Not accounting for the obvious non-digit minus sign at the beginning.
 
user142019
Or overflowing.
 
11:19 AM
There are overflows in PHP?
I thought they used some sort of bigint.
 
user142019
I don’t know the exact rules.
 
Why am I not surprised.
 
user142019
I think ints just get truncated.
 
user142019
Oh they convert to floating point.
 
11:21 AM
lol
 
user142019
And when the value is too big to fit in a float…
 
user142019
they become infinity. >.>
 
so I wanted and int and I can get a free floating point with it's overhead if I overflow my int
sounds like a plan
 
user142019
No, you wanted a boolean and you get NULL or NaN or something.
 
lol
what happened to type safety?
 
user142019
11:22 AM
function contains_only_digits($str) {
    return $str == (int)$str;
}
 
oh no, it's PHP
 
user142019
== implicitly converts strings to numbers.
 
user142019
And - is not a digit, so that function is FUBAR anyway. :P
 
@WTP'-- oh yea, because that's really logical.
 
user142019
And, obviously, "123.0" == 123 and . isn’t a digit either.
 
11:24 AM
lol
 
user142019
@TonyTheLion guess what. When you have a string "4327823478923498778932478943278942389742389423" in only takes the first few digits otherwise they won’t fit in an int.
 
user142019
Meaning that "0000000000000000000000000000001" == "0000000000000000000000000000000".
 
oh gawd
 
user142019
Which is especially awesome when comparing MD5 hashes of passwords. :D
 
user142019
11:25 AM
Suddenly, 10000% more collisions.
 
@WTP'-- , I still don't get it, does sublime text has a find results window like this - gyazo.com/c9532edbffc38144d3efbb3b04be7450 ?
 
user142019
@Abyx That doesn’t look like ST2 to me.
 
Are you by any chance referring to what's known as the 'zero-length swipe'? — sehe 16 secs ago
 
@WTP'-- it's notepad++
 
user142019
Ohh. Maybe, I don’t know.
 
user142019
11:26 AM
I know it has this:
 
user142019
 
user142019
But that’s not extensive; you can’t do regexes and stuff.
 
user142019
But there might be a plugin or something.
 
uhm.. a plugin. maybe
@WTP'-- I believe it won't work with a 10Mb+ file
 
user142019
Why would you have 10MB source files?
 
11:29 AM
why source files? just text files
 
@WTP'-- Who the heck represents MD5 hashes as base ten numbers?
 
user142019
@R.MartinhoFernandes hexadecimal.
 
It converts from hexadecimal too?
 
user142019
Yup.
 
11:30 AM
I have the MSVS to edit source files %) notepad++ is for text files - data, logs, etc
 
I see what you mean, but I like the fact that you don't consider source files as text files :)
 
@WTP'-- Wow. Crap worse than my own legacy stuff. That IS impressive!
 
user142019
BUT
 
user142019
It doesn’t convert from octal. :D
 
@R.MartinhoFernandes the set of text files includes source files.
 
11:32 AM
Then again, I don't have any legacy PHP, (or current PHP, for that matter:).
 
user142019
php > $foo = "0255" == "255" && 0255 != 255;
php > print($foo);
1
 
&& 0x255 != 255, so what?
 
@Abyx so compare to what happens before the &&
and claim that it is consistent :)
 
Ell
hmm terminal ballses up this National №
 
Inconsistent shit. Sounds like a medical condition. Avoid hot and spicy foods.
 
user142019
11:37 AM
A girl asked what I was doing. I said “chatting with a beautiful girl”. She says “who?” >.>
 
@jalf 0255 is in octal, right? the only thing is "0255" == "255", but it's well-known behavior
 
user142019
0255 is octal.
 
user142019
"0255" == "255" is stupid for two reasons: inconsistent with octalness and strings are not the same strings.
 
@Abyx it might be well-known, but how come "0255" is interpreted as an int, but not as an octal number?
 
user142019
Because guess what.
 
user142019
11:38 AM
@Abyx "FF" == "255"
 
user142019
Then why is "0255" == "255" also true?
 
@jalf Because PHP. What else?
 
@R.MartinhoFernandes that's kind of the point
 
user142019
Python is the best language ever after Haskell.
 
user142019
I like only very, very few things of PHP.
 
user142019
11:41 AM
PHP’s introspection is funny. Finding out if a function exists? There is a function to do that. Finding out if a class method exist? Sorry bro, you’ll need to create a Reflection object for that.
 
huh... interesting news
 
user142019
@thecoshman ?
 
I have a phone interview to do potentially for a job in England. On the face of it, great! on the other hand... I have not actually told my GF that I was actively looking for jobs, as I didn't think this would go so far...
This is going to be an interesting one to manage...
 
user142019
What kind of job?
 
"We have these 10,000 PHP scripts...."
 
user142019
11:49 AM
lol
 
@thecoshman didn't you live in england?
 
@thecoshman "Hey babe, I was planning to move back to England behind your back. You cool with that?"
 
user142019
@MartinJames instasuicide
 
@WTP'-- Ill I know at the moment is 'software engineer'
 
user142019
@thecoshman Cool.
 
11:49 AM
Cool?
 
@thecoshman Illyounois?
 
"It's a job." How's that cool? (note that he already has a job)
 
@R.MartinhoFernandes well... I have talked to her about the prospect of moving back to England
@KillianDS no, Ireland, though I am English
 
@thecoshman Not so much manage. Rather: decide
 
It's with a company that work on helping companies store vast amounts of data...
 
11:51 AM
I you have to manage your life decisions perhaps Java is the fair job tool for you :)
 
user142019
@sehe what? You’d use Java as a proxy?
 
@thecoshman Western Digital. Google. Echelon. Govt
 
user142019
Kingston.
 
@thecoshman Ah that makes sense :), though decision.
 
@sehe class LifeDecisionManager?
 
11:52 AM
@WTP'-- No, he's complaining about having to use Java at his current, supposedly, suckky job. Yet, he anticipated diffculty 'managing' his decision
 
user142019
@thecoshman go work at Google in London and tell us if Jon Skeet is relaxed.
 
@sehe manage is the word, when dealing with aspergians moving countries is not an easy thing to spring on people. Especialy when stressed with house renovations
 
@R.MartinhoFernandes Exactly what vision that conjured up
 
@thecoshman Oh, more SQL.
 
user142019
Aspergians? Gadverdamme.
 
user142019
11:53 AM
Ik haat asperges.
 
@thecoshman Aspergians - new info. Also, new use of that derived word?
@WTP'-- Asperger-patienten
 
I thought it was "aspies".
 
user142019
@sehe ah, programmers.
 
Asperger syndrome (AS), also known as Asperger's syndrome or Asperger disorder, is an autism spectrum disorder (ASD) that is characterized by significant difficulties in social interaction, alongside restricted and repetitive patterns of behavior and interests. It differs from other autism spectrum disorders by its relative preservation of linguistic and cognitive development. Although not required for diagnosis, physical clumsiness and atypical (peculiar, odd) use of language are frequently reported. The syndrome is named after the Austrian pediatrician Hans Asperger who, in 1944, stud...
 
@WTP'-- Zing
 
user142019
11:54 AM
On my job interview, my boss told me “everyone there had Asperger’s.”
 
oh it would be a fucking kid on for the cover photo wouldn't it!
 
Oh look how nice: someone upvoted my complete overkill answer at this noob question: stackoverflow.com/questions/13086116/…
@thecoshman The kid is not fucking. Or you have the strangest definition for that too
 
@sehe shut up
 
@thecoshman Your girlfriend is a kid?
 
May 15 at 21:49, by thecoshman
wanting to pee really badly, you might say you lust to use the toilet, but just pissing your self is not lust
 
user142019
11:55 AM
@sehe May 15 ಠ_ಠ.
 
@sehe o_0
 
@sehe For some, it is.
People are weird, man.
 
@WTP'-- 21:49 as well
 
user142019
@sehe idgaf.
 
@R.MartinhoFernandes the ape pointed that out
 
11:56 AM
was there cocaine in the salt today?
 
Who snorts salt?
 
user142019
@R.MartinhoFernandes Bender.
 
@R.MartinhoFernandes LOL
 
you get high by ingesting cocaine, just not as effectively as snorting
 
10
Q: When would you use template explicit instantiation?

Mark IngramI've just been reading about template explicit instantiation: template struct MyStruct<long>; It was described as "quite rare", so under what circumstances would it be useful?

 
user142019
11:58 AM
Het is hoog tijd om op te staan!
 
@WTP'-- hooooooog
 

« first day (741 days earlier)      last day (4212 days later) »