|
hello i would like to file an official grievance that a new thread was created in october that is explicitly non-spooky
|
# ¿ Oct 9, 2017 15:09 |
|
|
# ¿ Apr 29, 2024 05:11 |
|
cinci zoo sniper posted:i like fira code i also use this op (although lol @ the www ligature)
|
# ¿ Oct 9, 2017 20:44 |
|
Bloody posted:if theres one thing i want in a font its to make it even harder to distinguish (if x == 0) from (if x = 0) the ligature for == is significantly longer than the = character is; i've never once had a problem with this
|
# ¿ Oct 9, 2017 21:31 |
|
CRIP EATIN BREAD posted:with that said, the -> ligature is nice when working with lambdas it's super nice in c++, as is the 0x ligature when doing stuff in hex
|
# ¿ Oct 9, 2017 21:32 |
|
cinci zoo sniper posted:god i loving hate json it's really bad, op
|
# ¿ Oct 11, 2017 14:57 |
|
it's good to me, and cool, that c++ will happily compare the value of a pointer to '\0' without so much as a warning
|
# ¿ Oct 11, 2017 16:44 |
|
ha ha whoops
|
# ¿ Oct 11, 2017 16:54 |
|
Sapozhnik posted:some wunderkind on the c++ committee thought that "ptr == 0" looked more aesthetically pleasing than "ptr == NULL" i get that it's valid c but it's loving obnoxious that g++ won't even throw a warning for that one. i had a construct like this: code:
|
# ¿ Oct 11, 2017 17:17 |
|
LordSaturn posted:ah, my old nemesis
|
# ¿ Oct 11, 2017 18:51 |
|
VikingofRock posted:My g++ (7.2.0) will actually throw a hard error there: well mine doesn't, so there
|
# ¿ Oct 11, 2017 21:48 |
|
VikingofRock posted:update your software OP ah, here we go code:
|
# ¿ Oct 11, 2017 22:08 |
|
Zlodo posted:just use std::string i work in a c++03 hellworld, we don't have your fancy for-each loops (or auto, for that matter) fritz posted:why would you not do: i could do this in theory, but i need this to be as fast and lightweight as possible so i don't want to double-iterate the string if possible. also just as personal preference i usually try to avoid the default c-string manipulation methods because they're all full of demons and poo poo that i don't understand that will explode if i'm not careful
|
# ¿ Oct 12, 2017 15:14 |
|
Zlodo posted:then it's a c-string embedded in a serialized buffer that i'm parsing byte-by-byte
|
# ¿ Oct 12, 2017 16:48 |
|
fritz posted:how big are your strings / how tight is your time constraint that you don't want to do the second pass this is a core piece of our most fundamental software package that needs to be able to process huge amounts of laser data in real-time. they're not big strings, admittedly (usually, anyway). also it's working fine now so w/e
|
# ¿ Oct 12, 2017 17:01 |
|
'strip on panic' was my nickname in college
|
# ¿ Oct 12, 2017 22:16 |
|
HoboMan posted:
i know basically no javascript but my assumption here would be that process.env.NODE_ENV is not a string "prod" but the literal value prod, maybe stored as an enum or something
|
# ¿ Oct 17, 2017 16:02 |
|
HoboMan posted:i figured it out, there is a trailing whitespace more justification for my personal policy that if my boss ever asks me to write javascript i will shoot myself instead
|
# ¿ Oct 17, 2017 17:01 |
|
Doom Mathematic posted:Yeah, sensible programming languages trim whitespace from both ends of the string before performing comparisons...? a sensible programming language would've made it much easier to realize what was happening
|
# ¿ Oct 17, 2017 18:47 |
|
hey guys befunge was not a serious idea for a good language
|
# ¿ Oct 19, 2017 17:32 |
|
PierreTheMime posted:hey yospos, incredibly terrible programmer checking in the answer is always vim, comrade
|
# ¿ Oct 19, 2017 17:38 |
|
vim owns, y'all should use vim, a cool editor for people who gently caress
|
# ¿ Oct 19, 2017 18:13 |
|
JewKiller 3000 posted:vim is actually good if you are keyboard and text oriented, which many programmers are. sure there are fancy IDEs and i definitely use those too, sometimes that's what you need to get the job done, but vim-style modal editing really is very fluid once you get over the learning curve, and for some people that's worth it vim is extremely fast to use once you're over that learning curve, and you're always learning cool new things. also if you're willing to put in the effort to set up plugins (which i get can be a dealbreaker) you can even get nice features like autocomplete and source tree browsing and git integration and such vim unironically owns
|
# ¿ Oct 19, 2017 19:51 |
|
cinci zoo sniper posted:*palms sweating* :wq or :x? or maybe :q? folks like to joke about this but i have no idea what visual studio thinks the difference is between Build/Rebuild/Build All/Rebuild All
|
# ¿ Oct 19, 2017 20:17 |
|
|
# ¿ Apr 29, 2024 05:11 |
|
JawnV6 posted:im going to use twice as many vims got seven splits open across three instances of vim on two monitors right now
|
# ¿ Oct 19, 2017 21:39 |