|
Krankenstyle posted:work sucks I know
|
# ? Apr 17, 2020 17:30 |
|
|
# ? Dec 3, 2024 14:13 |
|
CPColin posted:I know say it ain't so
|
# ? Apr 17, 2020 17:40 |
|
DELETE CASCADE posted:say it ain't so i will not go turn ur monitor on carry that printer home
|
# ? Apr 17, 2020 18:43 |
|
Powerful Two-Hander posted:i will not go
|
# ? Apr 17, 2020 19:29 |
|
ratbert90 posted:But the wages sure have stagnated over the last 10 years! i mean not for figgielands touchers
|
# ? Apr 18, 2020 00:59 |
|
ratbert90 posted:But the wages sure have stagnated over the last 10 years! Theres a difference between being stagnat at the top of a mountain vs in a ditch at the bottom though.
|
# ? Apr 18, 2020 10:22 |
|
i made a thing that sends files to an external file hosting service for our client. we agreed that i upload the files to a specific directory and their process takes the files from that directory and moves them to "<numeric id>/Lahetetyt". at some point my code scans every <numeric id>/Lahetetyt directory and reassigns the files in our database to the new path. this has been in production use for almost a year and afaik, it has worked fine. we got an email saying that it doesn't work. turns out there were a couple of problems: the file paths are saved in a (mysql) table where the default collation makes a, ä ann å equal and there was at least 2 files that had identical file names except the first one used an "å" and the second used an "a" (my guess is that they tried to upload the one with å first and maybe it didn't work, so they renamed the file and uploaded it again). so i had to fix the collation issues there. the second problem was that at some point the client had changed their file processing so that it moves the files to "<numeric id>/Lähetetyt" instead of "<numeric id>/Lahetetyt". this was only a problem because my code has the Lahetetyt directory hardcoded, it does not actually scan the <numeric id> directories for subdirectories. "Lähetetyt" is of course the correct way of writing the word (it means "sent"), so maybe their coder mistakenly wrote the word correctly during some maintenance. anyway, this has been today's episode of "fun with diacritics".
|
# ? Apr 18, 2020 11:37 |
|
c tp s: holy crap, the comma is a no-poo poo operator in C, not just a separator doin this almost two decades and I had never seen or heard of that
|
# ? Apr 21, 2020 18:06 |
|
Ciaphas posted:c tp s: holy crap, the comma is a no-poo poo operator in C, not just a separator wow. some of the examples on this page are pure to me https://en.wikipedia.org/wiki/Comma_operator
|
# ? Apr 21, 2020 18:18 |
|
Ciaphas posted:c tp s: holy crap, the comma is a no-poo poo operator in C, not just a separator Now try to convince yourself that this is actually serving a useful purpose.
|
# ? Apr 21, 2020 18:18 |
|
Ciaphas posted:c tp s: holy crap, the comma is a no-poo poo operator in C, not just a separator https://www.amazon.com/Expert-Programming-Peter-van-Linden/dp/0131774298 this book will teach you things about C you never wanted to know
|
# ? Apr 21, 2020 18:20 |
|
ultrafilter posted:Now try to convince yourself that this is actually serving a useful purpose. i have never successfully done this with any software i have written
|
# ? Apr 21, 2020 18:23 |
|
ultrafilter posted:Now try to convince yourself that this is actually serving a useful purpose. 1/1000 time its handy inside some ternary when the explicit statement would be less understandable also macros
|
# ? Apr 21, 2020 18:23 |
|
ultrafilter posted:Now try to convince yourself that this is actually serving a useful purpose. lol i'm under no fuckin illusions about that, because here's why i had to look it up guess what, it's unnecessary pointer math dipshittery are you surprised C code:
|
# ? Apr 21, 2020 19:11 |
|
c++20 finally took the step of deprecating operator, inside subscript expressions in the hopes that a[1, 2] will someday be able to do something sensible instead
|
# ? Apr 21, 2020 19:16 |
|
feels like comma came before someone figured out #define do { ... } while (0) also gcc and clang have ({ ... }) which is kinda useful
|
# ? Apr 21, 2020 19:17 |
|
Plorkyeran posted:c++20 finally took the step of deprecating operator, inside subscript expressions in the hopes that a[1, 2] will someday be able to do something sensible instead
|
# ? Apr 21, 2020 19:18 |
|
pokeyman posted:feels like comma came before someone figured out statement expressions are fantastic
|
# ? Apr 21, 2020 19:23 |
|
matti posted:1/1000 time its handy inside some ternary when the explicit statement would be less understandable ocasionally it's useful in some kind of for loop if you want to e.g. keep a low-index and a high-index that you want to update at the same time. K&R loved these sort of doing-way-too-much-in-the-loop-condition constructs. But it's usually way more readable to just rewrite it as a while loop and do all the special crap on separate lines. code:
code:
|
# ? Apr 22, 2020 02:37 |
|
i completely forgot about for (;; loops they have little special parse context i do tend to prefer goto
|
# ? Apr 22, 2020 03:20 |
|
quote:
|
# ? Apr 22, 2020 04:02 |
|
matti posted:i completely forgot about for (;; loops terrible programming: i do tend to prefer goto
|
# ? Apr 22, 2020 07:20 |
|
Ciaphas posted:c tp s: holy crap, the comma is a no-poo poo operator in C, not just a separator forget you ever learned so otherwise you might start thinking about operator,() in C++ having dealt with a codebase where it was used, this is not a place of honor
|
# ? Apr 22, 2020 08:07 |
|
also the comma operator in C—ignoring the C++ operator as overridden—is basically just Lisp progn
|
# ? Apr 22, 2020 08:10 |
|
Ciaphas posted:lol i'm under no fuckin illusions about that, because here's why i had to look it up but it’s actually advance pointer, read two bytes from where pointer was
|
# ? Apr 22, 2020 08:14 |
|
The comma operator on its own is ok I guess? Being useful is rare, but there are some places for it. But did you know that you can overload it?
|
# ? Apr 22, 2020 08:33 |
|
bike shedding: why do operator definitions in c++ omit a space between the keyword "operator" and the actual operator symbol?
|
# ? Apr 22, 2020 08:42 |
|
It does not matter in the grammar, do what you want
|
# ? Apr 22, 2020 09:04 |
|
it’s their last shred of sanity begging for help
|
# ? Apr 22, 2020 09:19 |
|
NihilCredo posted:bike shedding: why do operator definitions in c++ omit a space between the keyword "operator" and the actual operator symbol? maybe they want to invent whitespace operators? (tabs and spaces are different operators, and vertical tab is a secret operator that enables nudality in mortal kombat if your sega genesis is connected to your pc)
|
# ? Apr 22, 2020 09:36 |
|
Shinku ABOOKEN posted:maybe they want to invent whitespace operators? (tabs and spaces are different operators, and vertical tab is a secret operator that enables nudality in mortal kombat if your sega genesis is connected to your pc) what about U+2029 PARAGRAPH SEPARATOR
|
# ? Apr 22, 2020 12:17 |
|
TheFluff posted:what about U+2029 PARAGRAPH SEPARATOR operatorᐸᐳ
|
# ? Apr 22, 2020 12:22 |
|
operator{}() begins the song that ends the world
|
# ? Apr 22, 2020 12:27 |
|
Ciaphas posted:operator{}() begins the song that ends the world IO! IO! Cthulhu f'operator{}()'gn!
|
# ? Apr 22, 2020 12:34 |
|
I sign papers on Friday for my new job and I am having an incredibly hard time even pretending to care at my current job.
|
# ? Apr 22, 2020 16:36 |
|
ratbert90 posted:I sign papers on Friday for my new job and I am having an incredibly hard time even pretending to care at my current job.
|
# ? Apr 22, 2020 16:51 |
|
ratbert90 posted:I sign papers on Friday for my new job and I am having an incredibly hard time even pretending to care at my current job. same except im not going anywhere
|
# ? Apr 22, 2020 17:08 |
|
Cold on a Cob posted:same except im not going anywhere Time to for you as well!
|
# ? Apr 22, 2020 17:23 |
|
ratbert90 posted:Time to for you as well! nah i'm actually happy with my job right now, i just can't focus at all new project starting soon, this should help
|
# ? Apr 22, 2020 18:06 |
|
|
# ? Dec 3, 2024 14:13 |
|
eschaton posted:but it’s actually advance pointer, read two bytes from where pointer was i think it's even worse. won't this advance the pointer by 2*sizeof(*p)?
|
# ? Apr 22, 2020 18:17 |