|
Blue Footed Booby posted:I'm sure it 's like all languages in that you can take a sane subset of the language features and have something reasonable, but holy poo poo does it have some byzantine footguns. It's the closest I've seen to fantasy novels where wizards toy with forces they don't fully understand and end up eaten by demons or turned into owlbears. That's in fact a perfectly acceptable thing to happen if you invoke undefined behavior!
|
# ? Mar 3, 2021 18:05 |
|
|
# ? May 31, 2024 13:46 |
|
Blue Footed Booby posted:I'm sure it 's like all languages in that you can take a sane subset of the language features and have something reasonable, but holy poo poo does it have some byzantine footguns. It's the closest I've seen to fantasy novels where wizards toy with forces they don't fully understand and end up eaten by demons or turned into owlbears. This is the best summary of C++ programming I've seen. The language has evolved in the last decade to make it much easier to program without running into the footguns, but there's a lot of legacy that's going to make it hard to completely get rid of them.
|
# ? Mar 3, 2021 18:23 |
|
Xerophyte posted:Is the thing that if it were to be implicitly converted to the opposite integral/floating type then the converted type would be materialized as a bindable prvalue, and since implicit conversions can happen when needed that ends up being the only valid thing the compiler can do? Yep, that’s it exactly. You can’t pass an int l-value as an int &&, but you can convert it to float and pass it as a float &&.
|
# ? Mar 3, 2021 18:24 |
|
pokeyman posted:Bigger scandal imo is that you don't have to return from main when declaring it as returning an int. What is the point of that? Usually the answer to this would be "well it's what they accidentally implemented back in the 70s", but main implicitly returning 0 is actually something which originates in C++ and then was added to C later. The original reason is seemingly lost to time.
|
# ? Mar 3, 2021 18:56 |
|
CPColin posted:I'm so happy I never have any idea what's going on in the C++ horrors. Quick, someone post some perl!
|
# ? Mar 3, 2021 19:56 |
|
Foxfire_ posted:Quick, someone post some perl! Perl code:
|
# ? Mar 3, 2021 21:32 |
|
That's the most legible perl example I've ever seen, and my first reaction after going through all that was
|
# ? Mar 3, 2021 21:43 |
|
I wanted to No worries, there's a setting to raise the minimum log level... ok it's not a typed object, it's a key-value it can fetch from either environment variables or an IConfiguration object. Whatever, at least it provides constants for the keys... aaand it doesn't work, no matter which method I use. Ok, let's check out the source code to see how it's reading its configuration, I'm guessing they kept things pretty simple... FOURTEEN CLASSES, MULTIPLE INHERITANCE LEVELS AND TWO _THOUSAND_ loving LINES OF CODE just so it can read some ~thirty atomic parameters from extremely simple key-value objects Anyway, it goes balls deep into Microsoft's DI framework mentality with the result that I would have had to gently caress around hard with a custom ILoggerFactory in order to just properly set a minimum log level that only applied to the APM output. I said 'gently caress it' and just set a Serilog filter downstream.
|
# ? Mar 4, 2021 17:44 |
|
I feel like this is closest thing I've ever read to a humorous anecdote or joke in executable form. It somehow gets even more amusing as you read through it. That said, I've never been so happy to have not touched Perl in over a decade.
|
# ? Mar 4, 2021 21:18 |
|
NihilCredo posted:I wanted to Every loving elastic project is full of this garbage. I wanted to create a new *beat to log from an app that logs via a shared memory segment (a different wtf) and in order to create a new beat, you have to run a go app that scaffolds another go app, and the resulting repo is 90mb of semi-vendored bullshit that looks like you accidentally opened a junior devs first enterprise Java project. I’ve seen people reinvent java in go, but the beats take it to a new level.
|
# ? Mar 5, 2021 03:41 |
|
NecroBob posted:I feel like this is closest thing I've ever read to a humorous anecdote or joke in executable form. the only one of those I’ve ever seen anyone use is BEGIN
|
# ? Mar 5, 2021 13:55 |
|
Gaukler posted:I wanted to create a new *beat. want this to be like swatch time
|
# ? Mar 5, 2021 14:26 |
|
Soricidus posted:the only one of those I’ve ever seen anyone use is BEGIN I've used BEGIN and END in command line Perl scripts
|
# ? Mar 5, 2021 17:41 |
|
Munkeymon posted:I've used BEGIN and END in command line Perl scripts I can imagine using END but pretty much all the likely cases are covered by }{
|
# ? Mar 5, 2021 20:22 |
|
Whatever happened to perl that looked like !@(*#$$&^%!^)@#!$"&!@#*$&^@#*
|
# ? Mar 5, 2021 21:32 |
|
taqueso posted:Whatever happened to perl that looked like !@(*#$$&^%!^)@#!$"&!@#*$&^@#* Perl code:
|
# ? Mar 5, 2021 21:45 |
|
Hughmoris posted:That only won 2nd prize. Well yeah, there's still readable text. Backwards is nothing
|
# ? Mar 5, 2021 22:17 |
|
ohhh no https://twitter.com/racheltrue/status/1365461618977476610?s=21
|
# ? Mar 6, 2021 17:00 |
|
Smells like YAML
|
# ? Mar 6, 2021 17:20 |
|
Volte posted:Smells like YAML Someone commented that rather than get Apple to fix the problem it will probably be easier for her to change her last name, which is true in many ways.
|
# ? Mar 6, 2021 17:25 |
|
Xerophyte posted:Someone commented that rather than get Apple to fix the problem it will probably be easier for her to change her last name, which is true in many ways. Change her last name to a bool?
|
# ? Mar 6, 2021 17:29 |
|
Xerophyte posted:Someone commented that rather than get Apple to fix the problem it will probably be easier for her to change her last name, which is true in many ways. Rachel 1==1
|
# ? Mar 6, 2021 17:42 |
|
NtotheTC posted:Rachel 1==1 Rachel !False
|
# ? Mar 6, 2021 17:43 |
|
Protocol7 posted:Rachel !False Rachel nullptr
|
# ? Mar 6, 2021 17:44 |
|
Protocol7 posted:Rachel !False !!Rachel
|
# ? Mar 6, 2021 18:31 |
|
On the topic of name parsing horrors, I have a friend with "porn" in their last name and they have difficulty registering at a number of sites. Including government sites for important stuff. While I can understand social media filtering that out, a government site that never shows the name publicly checking against bad word filters just seems bizarre to me. One of the sites even required SSN to register so you'd think they'd just pull SSN data and use that or something, but instead no it just rejects the name. Volte posted:Smells like YAML I wouldn't bet against YAML, though. Can't believe a fragile, complicated DSL caught on as a configuration format for the simplest stuff. While I'm talking about things I can't believe, JSON not having comments or multiline strings... Khorne fucked around with this message at 18:58 on Mar 6, 2021 |
# ? Mar 6, 2021 18:48 |
|
Any programmer that doesn't cast name fields to strings deserves whatever happens to their poo poo. Double for key/value pairs in JSON objects.
|
# ? Mar 6, 2021 19:46 |
|
Khorne posted:I wouldn't bet against YAML, though. Can't believe a fragile, complicated DSL caught on as a configuration format for the simplest stuff. While I'm talking about things I can't believe, JSON not having comments or multiline strings... JSON5 seems like a solid option as a simple format with less annoyances. It adds unquoted keys, trailing commas, comments, multiline strings, and slightly more flexible numbers. No new types.
|
# ? Mar 6, 2021 19:58 |
|
DoomTrainPhD posted:Any programmer that doesn't cast name fields to strings deserves whatever happens to their poo poo. Any programmer that has separate fields for first name and last name deserves whatever happens to their poo poo. It's 2021 for crying out loud, really we should let go of this antiquated concept. People may have names, that's all, it's a string of zero or more characters. Done. There is no need to split poo poo up.
|
# ? Mar 6, 2021 20:00 |
|
Volguus posted:Any programmer that has separate fields for first name and last name deserves whatever happens to their poo poo. It's 2021 for crying out loud, really we should let go of this antiquated concept. People may have names, that's all, it's a string of zero or more characters. Done. There is no need to split poo poo up. Yeah, agreed. Except it's a string of 1 or more characters.
|
# ? Mar 6, 2021 20:08 |
|
The horse I've been through the desert on would beg to differ.
|
# ? Mar 6, 2021 20:11 |
Volguus posted:Any programmer that has separate fields for first name and last name deserves whatever happens to their poo poo. It's 2021 for crying out loud, really we should let go of this antiquated concept. People may have names, that's all, it's a string of zero or more characters. Done. There is no need to split poo poo up. hard to do when existing systems, both digital and institutional, expect first/last and it's impossible to programmatically split the name for that purpose without opening up a whole new can of worms
|
|
# ? Mar 6, 2021 20:27 |
|
Just burn everything and start anew. If it's something I've noticed is that the larger and more important a company/software the worse it is.
|
# ? Mar 6, 2021 20:31 |
|
Sistergodiva posted:Just burn everything and start anew. If it's something I've noticed is that the larger and more important a company/software the worse it is. Legacy code!
|
# ? Mar 6, 2021 20:34 |
|
Dross posted:Change her last name to a bool?
|
# ? Mar 6, 2021 20:41 |
|
Since I got my own domain name, I gotten in the habit of using something like account-<website-im-registering-to>@<my-domain>.com as a way to easily filter poo poo and to know if someone leaks my e-mail address and doesn't tell me, who the culprit was. I've ran into one or two websites that actually don't accept e-mail addresses with their own website name in it.
|
# ? Mar 6, 2021 20:49 |
|
Carbon dioxide posted:I've ran into one or two websites that actually don't accept e-mail addresses with their own website name in it. I have gotten banned from amazon for using amazon@ "includes an unapproved use of Amazon trademarked words, images, or reviews [...] An example of the above violation can be found here: amazon@domain"
|
# ? Mar 6, 2021 21:07 |
|
DoomTrainPhD posted:Any programmer that doesn't cast name fields to strings deserves whatever happens to their poo poo.
|
# ? Mar 6, 2021 21:26 |
|
DoomTrainPhD posted:Yeah, agreed. Except it's a string of 1 or more characters. Why non-empty? What's a valid reason for a person to have to have a name in a non-governmental system, not legal ID issuing program? It's not unique, it can change, it provides no useful information to anyone. A payment processor may require it and it can be asked at that time for that payment method, whatever that may be. It has no relation to the user of a particular account. If emails are being sent and the CEO requires for the email to start with "Dear XXX", then there can be a field that could ask how the person prefers to be addressed. It could be their name, if they have one, could be a nickname if they so prefer, it could be something completely different. Jazerus posted:hard to do when existing systems, both digital and institutional, expect first/last and it's impossible to programmatically split the name for that purpose without opening up a whole new can of worms That's true, when you have to interface with dinosaur era system, you do what you have to do. But way too often we see newly created applications that are stand alone and ask for first and last name even though they really shouldn't have a need for it.
|
# ? Mar 6, 2021 21:27 |
|
|
# ? May 31, 2024 13:46 |
|
For anyone who reads the comic strip thread in BSS now I'm just imagining Everett True's reaction to this. *Beats the poo poo out the iCloud manager* "Maybe next time you'll sanitize your inputs and stop inconveniencing customers with your incompetent programming!"
|
# ? Mar 6, 2021 22:11 |