« first day (1421 days earlier)      last day (3542 days later) » 

11:02 PM
@milleniumbug Not this shit again.
 
what do you guys think of this formatting style for c++11 constexpr functions? gist.github.com/nightcracker/9d14670d56bb7d181305
(I know c++14 makes this obsolete, but I'm not quite confident in migrating yet)
 
ugly
 
zch
why &1, why >> 1?
 
how would you format it?
 
11:06 PM
@zch do you mean opposed to % 2 and / 2 or are you interested in the workings of the actual algorithm?
 
no unnecessary parentheses etc
 
@nightcracker dem smiley faces
 
yay... my build of hexchat seems finally stable
 
zch
@nightcracker First one
 
@zch I blame it on my crypto background
 
11:09 PM
Here's another style: pastebin.com/RfkCbYng
 
@FoggyDay: You're a moron. Pointers, C programming and assembly are one of the least useful skills you could ever hope to have. — Puppy 4 mins ago
not again
@Puppy, Oh, I Lol'ed so hard. — user3397590 1 min ago
 
@nightcracker Does that mean you're an expert in writing unreadable code
6
 
@CatPlusPlus no, it means I think more in circuits than math where you can choose between the two
 
So that's yes
 
depends on your background
 
11:13 PM
@FoggyDay: You're a moron. Pointers, C programming and assembly are one of the least useful skills you could ever hope to have. — Puppy 7 mins ago
flagged
 
zch
@nightcracker depends on reader's background
 
I think in terms of abstract conversations between cats on the internet. In my mind, all coding constructs are cat videos.
 
210
A: Which is better option to use for dividing an integer number by 2?

Cat Plus PlusDoes the first one look like dividing? No. If you want to divide, use x / 2. Compiler can optimise it to use bit-shift if possible (it's called strength reduction), which makes it a useless micro-optimisation if you do it on your own.

hth
 
zch
It's more likely that reader will have trouble with reading bit operations than dividing
 
11:14 PM
@CatPlusPlus except I'm not dividing shit
I view the exponent as a bit-string, through which I cycle and constantly check the bottom bit
 
Good morning
 
hi
 
hihi
@CatPlusPlus also, perl is not one of my qualifications :d
 
11:30 PM
Ugh out of sync audio.
so frustrating
 
@Rapptz I hate that
 
me too
 
had one episode of something where every ad break the amount by which it was out of sync would grow...
by the end it was off by like 5 seconds
 
I like how VLC lets me fix it
but sometimes it doesn't work for me
 
still annoying to have to adjust it constantly :e
 
11:32 PM
yeah
 
Does anybody know to remove all files .gitignore should ignore but doesn't because it was already tracking them. I want to do git rm --cached on all the files but I think this will remove all of them form git...
 
try git clean
 
I think git rm -r --cached . and then git add . might solve it but lets see..
 
well
 
yep
 
Ell
11:49 PM
well that was shit
 
0
Q: C++: I do not understand type casting

Sir William of OrangeI'm a complete newb at programming and have had no experience of programming before. I bought a book called C++ Programming for the Absolute Beginner by Mark Lee (not advertising or anything) and at the end of Lesson 2 (which shows of variables and forgets to explain casting) they give you this g...

dat title
 
@LightnessRacesinOrbit it's honest
 

« first day (1421 days earlier)      last day (3542 days later) »