2015 Oct 15
Thu: |
13:43 |
< | wellick | | > |
both work, right? |
13:44 |
< | m0shbear | | > |
,scanf |
13:44 |
< | candide | @ | > |
scanf is a function that can be unsafe and unproductive - "It's nearly impossible to do decent error recovery with scanf; usually it's far easier to read entire lines (with fgets or the like), then interpret them, either using sscanf or some other techniques." - See http://www.eskimo.com/~scs/C-faq/q12.20.html |
13:44 |
< | m0shbear | | > |
wellick: ^ |
13:45 |
< | m0shbear | | > |
scanf is evil and getchar is plain wrong unless you're absolutely sure the number is one digit *and* you do -'0' on the resulting character to turn it into a useful number |
13:45 |
< | lens | | > |
scanf comes recommended by K&R early on :| |
2015 Oct 23
Fri: |
06:22 |
< | fluter | | > |
efdot: so what? |
06:22 |
< | cousteau | | > |
efdot, if only there were a flag for compilers to take care of optimization details... |
06:22 |
< | fluter | | > |
pre-mature optimization is evil to all problems. |
06:22 |
< | efdot | | > |
fluter: so it matters for me, 500ms or 400ms |
2015 Oct 27
Tue: |
19:25 |
< | AkashicLegend | | > |
which has higher priority |
19:25 |
< | AkashicLegend | | > |
local variable or global variable with same name being called within a function |
19:25 |
< | doppel | | > |
i would revise that dogma to something like "unrestrained use of globals is evil" |
19:25 |
< | AkashicLegend | | > |
I forgot. |
2016 Mar 03
Thu: |
18:02 |
< | piou | | > |
cden: right, but it's not as if you'd need to dive into it everyday |
18:02 |
< | Norrin | | > |
i heard the API was deliberately obfuscated in order to prevent integration. |
18:03 |
< | Norrin | | > |
because, ya know. money is evil |
18:03 |
< | piou | | > |
Norrin: that's right but it should be replaced in its historical context |
2016 Mar 07
Mon: |
10:18 |
< | spidernet | | > |
At the moment I feel pretty good with starting a tmux session with everything I need inside. |
10:18 |
< | chzyhndx | | > |
I maybe don't need to have an irc client inside my text editor |
10:18 |
< | jayp | | > |
I was never a Vim user so evil mode didnt make sense for me |
10:18 |
< | spidernet | | > |
well said enkeyz_ :D |
2016 Mar 08
Tue: |
16:53 |
< | dulir | | > |
because s == 0 |
16:54 |
< | rob`` | | > |
,atoi |
16:54 |
< | candide | @ | > |
atoi is evil. It does no overflow checking, handles unsigned numbers poorly, and handles strings containing trailing characters (like ``123abc'') poorly. Use strtol() instead. |
16:54 |
< | dulir | | > |
rob'' i tried to use that |
2016 Mar 14
Mon: |
09:09 |
< | Arch-TK | | > |
"There's a bug!" "no there's not" "but there is" "no there's not" "man, just fix this bug" "it was fixed two versions ago" "but you said there was no bug" "no I didn't" |
09:09 |
< | Superlokkus | | > |
,atoi |
09:09 |
< | candide | @ | > |
atoi is evil. It does no overflow checking, handles unsigned numbers poorly, and handles strings containing trailing characters (like ``123abc'') poorly. Use strtol() instead. |
09:09 |
< | pthreat | | > |
Arch-TK: dude every bug is a feature |
2016 Mar 24
Thu: |
20:03 |
< | marchelzo | | > |
if I could binary search, it could be done in O(log n) time |
20:03 |
< | marchelzo | | > |
when the garbage collector* |
20:03 |
< | edk | | > |
Maxdamantus: what if converting a pointer to an integer can give one of N results (at random), which are collapsed back into the same pointer on conversion to a pointer |
20:03 |
< | Maxdamantus | | > |
edk: I'm not saying you should derive an integer from the pointer |
20:04 |
< | marchelzo | | > |
edk: that implementation would be evil |
20:04 |
< | edk | | > |
oh. well then you'd need to know something about the value |
2016 Apr 04
Mon: |
17:03 |
< | twkm | | > |
(some groups feel more than 1 is a mortal sin) |
17:04 -!- lukoko is now known as callMeBaby |
17:04 |
< | knusbaum | | > |
Do they get together with the "goto is evil" people? |
17:05 |
< | mrocha | | > |
Every thursday, we begin by chanting to our all-mighty god Dijkstra |
2016 Apr 05
Tue: |
19:22 |
< | Phanes- | | > |
edk, can i get more details on why atoi() is bad? |
19:22 |
< | edk | | > |
,atoi Phanes- |
19:23 |
< | candide | @ | > |
Phanes-: atoi is evil. It does no overflow checking, handles unsigned numbers poorly, and handles strings containing trailing characters (like ``123abc'') poorly. Use strtol() instead. |
19:23 |
< | o11c | | > |
even strtou?ll? has some nasty sides |
2016 Apr 25
Mon: |
14:21 |
< | badcar | | > |
num_items is variable |
14:21 |
< | kate | | > |
don't cast calloc. or use calloc |
14:21 |
< | megaTherion | | > |
kate: calloc is evil? :( |
14:21 |
< | FRIGN | | > |
kate: haha, don't get me started with sandy |
2016 Apr 29
Fri: |
08:02 -!- mode/##c [+b *!~denis@*.tambov.ru] by candide |
08:03 -!- mode/##c [-b *!~denis@*.tambov.ru] by candide |
08:03 |
< | denk | | > |
huh, so evil bot... |
08:06 |
< | dokma | | > |
denk: it's a bunch of copy paste, I haven't tested any of it atm. My problem is that it stops and waits at accept() but doesn't continue when I telnet at 3325. |
2016 Jun 01
Wed: |
18:42 |
< | holdsworth | | > |
okra_ / Saparok: I thought that rfopen assigns to itself the address of fopen and that fopen is reallocated for some reason |
18:42 |
< | ac1dh0n3ycl0ud | | > |
learningpapa_: and viruses are making your computer sick if you get contaminated by them |
18:42 |
< | learningpapa_ | | > |
Need an epi pen handy for that type of risk taking |
18:42 |
< | Saparok | | > |
reallocated how? |