![](https://programming.dev/pictrs/image/e707b3cc-a832-4f90-9fda-c46c7c4b08a8.jpeg)
![](https://lemmy.ml/pictrs/image/u9kB0kgEaN.png)
I disagree. I think the default option should be what users expect, and users expect “copy” to do exactly that: copy without modifying the text.
I like programming and anime.
I manage the bot /u/mahoro@lemmy.ml
I disagree. I think the default option should be what users expect, and users expect “copy” to do exactly that: copy without modifying the text.
While it would be ideal to have all datetime fields in databases and other data stores be time zone aware, that is certainly not the case. Also, SQLite (and probably others) do not have great support for time zones and it’s recommended to store datetimes as UTC (typically unix timestamps).
Deprecating utcnow
was a good idea, but they should have replaced it with naive_utcnow
. Oh well.
I’ve turned off the bot for now.
Just because you can get part of your education remotely or through self-learning didn’t mean “anything can be learned online”.
And if you were hiring a math tutor for your kid, would you prefer a self-proclaimed expert from watching YouTube videos or would you want someone who got a degree from a credentialed university? And even if you don’t care, why are you surprised that others would be skeptical of the YouTube expert?
Remote learning can be fine for some things, and self learning through informal channels are also fine, but it’s not a full on replacement for formal education in all cases.
No sorry, that’s just fundamentally false. You can’t just learn titration techniques from watching a video. You can’t learn phlebotomy without an instructor watching you do it to a patient. Hell, you aren’t learning how to drive a car from playing a video game.
And I’m not sure where you are pulling the “if you are that powerful” from. You really have an ax to grind don’t you.
Ah yes, I’m sure the formal training received by doctors, nurses, lawyers, teachers, and engineers is just an over-hyped “education” that can all be replaced by online MOOCs.
There are real problems with education, especially with the costs, but “anything can be learned online” is the worst take I’ve heard in a long while.
I feel the opposite. We should have mandatory voting for all federal general elections. Treat it like jury duty or taxes - voting is a civic duty. You should be compelled to cast a ballot even if you leave it blank because you have no preference.
Of course, this can only workwith automatic voter registration and 100% mail-in ballots.
"I can read this Perl scrip"t should translate to “I’m lying”.
I’ve heard good things about hg
though I haven’t used it myself. Git has the biggest mindshare that I never bothered even checking. Might as well use it and move on.
Ehhh, I don’t quite agree with this. I’ve done the same thing where I used a timestamp field to replace a boolean. However, they are technically not the same thing. In databases, boolean fields can be nullable so you actually have 3-valued boolean logic: true
, false
, and null
. You can technically only replace a non-nullable field to a timestamp column because you are treating null
in timestamp as false
.
Two examples:
A table of generated documents for employees to sign. There’s a field where they need to agree to something, but it’s optional. You want to differentiate between employees who agreed, employees who disagreed, and employees who have yet to agree. You can’t change the column from is_agreed
to agreed_at
.
Adding a boolean column to an existing table. These columns need to either default to an value (which is fair) or be nullable.
Story time:
There was a long data pipeline that produced wrong results. The wrong results were subtle but reproducible. Each run was about an hour long in dev, and there was no intermediate data set. It takes some input, runs for an hour, and produces an output.
The code was inherited and was a bit of a mess. Instead of digging through the code, I re-ran the pipeline through from about 6 months ago when we knew there was know bug. It was about 100+ commits since that time.
Mind you, the bug could’ve been anywhere in the codebase as far as I was concerned.
Took about a day of git bisect
to narrow it down… to nothing. I found out that running code from the first commit from 6 months ago also produced incorrect data. Oops. That’s weird though because the code was running correctly back then.
A few days of debugging later, and I eventually found the culprit: a dependency package got bumped a couple weeks back. Some sort of esoteric parser had a bug but didn’t fail. It incorrectly parsed some data after the bump. Going back a version fixed the bug.
So yeah, git bisect
killed about a day of my time.
TIL about the squircle
The code in the community’s banner is in python 2. Can we get that changed?
A new community to request new communities instead of using the meta community. How very programmer of you.
Lots of people here lamenting about this. But the truth is that good code is easy to modify/delete.
Yes it can be an issue because the GPS doesn’t know where you are and thinks you are on an aboveground street. Freeway tunnels can have multiple exits too.