|
pokeyman posted:that describes basically everything in programming Sure, but sometimes it's more obvious up front.
|
# ¿ May 12, 2019 22:26 |
|
|
# ¿ Apr 26, 2024 16:18 |
|
Sapozhnik posted:Outsider: I want to do Reasonable Task in Python "There should be one, and preferably only one, obvious way to do it."
|
# ¿ May 26, 2019 17:50 |
|
cinci zoo sniper posted:speaking of, let me repost something from accidental python thread I'm pretty sure a third of those are just Pokémon.
|
# ¿ May 26, 2019 19:11 |
|
mystes posted:In DB film noir, the client never really wants to know where the deadlock is. CRIP EATIN BREAD posted:It's the mutex! *slap* It's the query! *slap* It's the mutex! *slap* it's the query! *slap* It's the mutex AND the query!
|
# ¿ May 29, 2019 23:44 |
|
Soricidus posted:they aren’t enough Wasn't some tech startup actually selling those? I forget if it was a parody or not because satire is dead. E: https://panasonic.net/design/flf/works/wear-space/ Doom Mathematic fucked around with this message at 20:31 on Jun 4, 2019 |
# ¿ Jun 4, 2019 20:23 |
|
JSON numbers are arbitrary-precision finite floats.
|
# ¿ Jun 14, 2019 19:24 |
|
CRIP EATIN BREAD posted:HTTP has headers just make the content-type send the correct encoding and then don't worry about it. What encoding are the headers in?
|
# ¿ Jun 18, 2019 00:32 |
|
The Fool posted:I literally only identify people by their avatar.
|
# ¿ Jun 21, 2019 20:00 |
|
The only true value should be true and the only false value should be false. Everything else should be a compile-time type error.
|
# ¿ Jul 19, 2019 09:42 |
|
Finster Dexter posted:cjs: Without being a huge throbbing dick about it, how do I tell junior dev to "just loving google it" when I get slack messages like "how do I disable cors in .net core for local development??" "I don't know offhand. Try Google."
|
# ¿ Jul 29, 2019 19:55 |
|
Plorkyeran posted:it's sort of like the advice to make arrays one element bigger than you need to "fix" off-by-one errors Oof, when I read this in Code Complete it was like a jump scare. I had no idea this notion had actually been seen fit to print, versus just being some antique mailing list legend. Half of your off-by-one errors are now off-by-two errors. Half of your off-by-one errors are now working code, purely because two off-by-one errors are magically coincidentally canceling each other out. All of your working code is now riddled with off-by-one errors! The mind reels. I see it got removed for the second edition of the book, but wow.
|
# ¿ Aug 18, 2019 16:19 |
|
pseudorandom posted:Edit: Did javascript create the concept of an Off-By 0.000000000001 error? No, just popularized it.
|
# ¿ Aug 23, 2019 20:34 |
|
If it's all equally "important" then implicitly you can do the tasks in any order you prefer. I would start with the low-difficulty, high-value ones.
|
# ¿ Sep 8, 2019 21:33 |
|
There isn't a formal standard for how any part of a JSON document should be interpreted. Or an XML document, for that matter.
|
# ¿ Sep 15, 2019 22:28 |
|
JSON numbers are arbitrary-precision finite floats. It is admittedly kind of ridiculous how many parsers and serializers assume otherwise.
|
# ¿ Sep 16, 2019 18:23 |
|
Bloody posted:the complete specification of the json number is: Well, you can treat them otherwise if you like, but you'll lose information that way.
|
# ¿ Sep 17, 2019 19:50 |
|
Ciaphas posted:cjs: reading this makes me feel like i'm under attack This is the work of what's known as a three-star programmer.
|
# ¿ Sep 27, 2019 20:22 |
|
Blinkz0rz posted:clever solutions to any problem are terrible because they increase the cognitive load on everyone else who reads it afterwards And while we're at it, Mel Kaye was a terrible programmer.
|
# ¿ Sep 29, 2019 11:14 |
|
Adding everybody here to my .yosposignore file.gonadic io posted:one company I worked for hired contractors and then spent a lot of time pouring over every PR suggesting spacing and character changes. they were like "'we've not experienced this level of ... intensity in PRs before*. bikeshedding at its worst Yeah this is the real gain of automatic formatting tools. It just cuts straight through all of that garbage. It doesn't even really matter what the format is as long as we can just point to it as authoritative and move on with our lives.
|
# ¿ Oct 8, 2019 00:36 |
|
The most glaring problem with Clean Code is that Martin's code is just terrible.Java code:
|
# ¿ Nov 4, 2019 12:48 |
|
Blinkz0rz posted:another one of the product teams at my company that's pretty large has a "cloud stability" team that's a rotation and works on the technical debt of scaling their product in the cloud. it's not an easy rotation but a few of the folks i've talked to about it really like it I can see that working if the rotation is long enough. We had a system where it was like, a day. You spent most of the day trying to remember how any of it worked, and the rest of the day unable to even begin trying to understand any of the complex outstanding tickets. At the end of the day you were free to forget about it for another few months. It was not very effective. We have a permanent team for that job now.
|
# ¿ Nov 16, 2019 22:43 |
|
I don't know, last year they started small but towards the end the daily challenge was more like "read and implement this 10-page spec".
|
# ¿ Dec 2, 2019 22:58 |
|
CRIP EATIN BREAD posted:advent of code is for people who cant get jobs programming but want to feel what its like to maybe be a part of it It would be amazing if programming jobs were like Advent of Code. Tiny, fixed-sized, rigorously specified, closed problems with singular correct answers.
|
# ¿ Dec 4, 2019 10:38 |
|
Oneiros posted:can you imagine a manager ever giving a spec as well written as the typical advent of code problem? I mean, if you can provide a spec as detailed as the typical Advent of Code problem, you probably know the answer to the problem already and you're just testing. Taking a vaguely posed problem and translating it into specific parameters for programming is a big part of this job.
|
# ¿ Dec 4, 2019 19:56 |
|
A centbimeter is 1/128th of a meter.
|
# ¿ Dec 21, 2019 14:31 |
|
Nomnom Cookie posted:time is u64 milliseconds since TAI epoch
|
# ¿ Dec 29, 2019 01:40 |
|
Time is the number of whole solar days since midday Universal Time on Monday January 1, 4713 BCE minus 2,400,000.5.
|
# ¿ Dec 29, 2019 01:51 |
|
The Fool posted:it's ok, to get those salaries you have to live in the shittiest cities on earth Yeah, my question was going to be at what level of salary does the human feces in the street disappear?
|
# ¿ Jan 6, 2020 22:24 |
|
MrMoo posted:Ooh, pretty, $25,000 TV from LG: Oh nice, TVs finally support transparent PNGs.
|
# ¿ Jan 29, 2020 10:16 |
|
"2 Undecimber 2020"
|
# ¿ Feb 4, 2020 20:50 |
|
Achmed Jones posted:see also i18n for internationalization, a11y for accessibility, etc. The irony is that "a11y"'s obtuseness makes it relatively inaccessible compared to "accessibility".
|
# ¿ Feb 23, 2020 13:29 |
|
prisoner of waffles posted:YOSPOS, Oof. 'S a Probatably Odious Snipe.
|
# ¿ Feb 25, 2020 23:27 |
|
It is so much easier when all of those potential nitpicks are gone.
|
# ¿ Feb 27, 2020 00:46 |
|
RPATDO_LAMD posted:does it actually have special handling for that? If you are using a JSON schema then yes the extra key can (and should) cause an error.
|
# ¿ Mar 13, 2020 10:07 |
|
MononcQc posted:https://twitter.com/gergelyorosz/status/1247132806041546754 SOA??
|
# ¿ Apr 8, 2020 20:51 |
|
elite_garbage_man posted:what problem was xml designed to solve? I believe, SGML.
|
# ¿ Apr 10, 2020 22:17 |
|
CRIP EATIN BREAD posted:filebeat -> kafka -> custom java app -> sqs -> another custom java app -> new kafka cluster -> logstash -> sqs -> logstash -> elasticsearch That's a hell of an act. What do you call it?
|
# ¿ Apr 28, 2020 22:21 |
|
Sapozhnik posted:Use symbols if you really work with douchebags Hell with it, this is the terrible programming thread JavaScript code:
|
# ¿ May 4, 2020 23:53 |
|
Friends, this is the terrible programming thread. It is a safe space for terrible programmers*, programs* and programming languages* alike. * all of them
|
# ¿ May 10, 2020 12:37 |
|
|
# ¿ Apr 26, 2024 16:18 |
|
Actually, the syntax highlighting there did not work very well.
|
# ¿ May 10, 2020 21:05 |