I never use CRT routines in production code because: 1) Less efficient, 2) Possible additional bugs in the CRT layer, 3) Less control over ops than native, and 4) Even when a bug is my fault, it is harder to find with the extra CRT layer of crap on top.https://twitter.com/Jonathan_Blow/status/1417544504916135936 …
-
-
Replying to @cmuratori
I recently wrote the classic code that you read the file size using ftell and fseek and I was getting different results than the actual file size. When I read then entire file, fread returned the correct number of bytes. No multithreading involved...
2 replies 0 retweets 0 likes -
Replying to @LiontosGeorge
I mean it's ridiculous to begin with that there isn't a CRT function for "what is the size of this file". It's just a bad API - it should have be EOL'd a long time ago, but unfortunately there is no new alternative, so...
2 replies 0 retweets 3 likes
Replying to @cmuratori @LiontosGeorge
(And of course the C++ run time is absolutely horrific, as is the rest of the language, etc.)
1:26 PM - 20 Jul 2021
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.