@jim@programming.dev
@jim@programming.dev avatar

jim

@jim@programming.dev

I like programming and anime.

I manage the bot /u/mahoro@lemmy.ml

This profile is from a federated server and may be incomplete. Browse more on the original instance.

jim,
@jim@programming.dev avatar

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.

jim,
@jim@programming.dev avatar

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.

jim,
@jim@programming.dev avatar

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.

jim,
@jim@programming.dev avatar

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.

jim,
@jim@programming.dev avatar

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.

jim,
@jim@programming.dev avatar

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.

Python: Struggling with typing module's callable type

I have encountered the typing module’s callable type in a Python book, and saw it tangentially referenced in a couple of videos, but I still don’t really grasp what it is for, when to choose to use it, and how it works. (The O’Reilly text I am mostly using is more of a desktop reference than a textbook.)...

jim,
@jim@programming.dev avatar

The first way to use it is with any type annotation: you just use it for documentation.


<span style="color:#323232;"># int annotation
</span><span style="color:#323232;">def add_1_to_number(x: int) -> int:
</span><span style="color:#323232;">    return x + 1
</span><span style="color:#323232;">
</span><span style="color:#323232;"># callable annotation
</span><span style="color:#323232;">def printer(x: int, func: Callable[[int], int]) -> None:
</span><span style="color:#323232;">    results = func(x)
</span><span style="color:#323232;">    print(f"Your results: {results}")
</span>

These type annotations can help document and make editors parse your code to make suggestions/auto-complete work better.

The second way to use it is by creating a callable. A callable is an abstract base class that requires you to implement the __call__ method. Your new callable can be called like any function.


<span style="color:#323232;">class Greeter(Callable):
</span><span style="color:#323232;">
</span><span style="color:#323232;">    def __init__(self, greeting: str):
</span><span style="color:#323232;">        self.greeting = greeting
</span><span style="color:#323232;">
</span><span style="color:#323232;">    def __call__(self, name: str):
</span><span style="color:#323232;">        print(f"{self.greeting}, {name}")
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">say_hello = Greeter("Hello") # say_hello looks like a function
</span><span style="color:#323232;">say_hello("jim")  # Hello, jim
</span>
jim,
@jim@programming.dev avatar

This and the last episode were kind of weak, to be honest. I think both of them could have been combined. The pacing was a bit too slow compared to the rest of the season.

jim,
@jim@programming.dev avatar

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.

jim,
@jim@programming.dev avatar

Hah that last page was great. Loved how easy they gave up helping the baka couple.

jim,
@jim@programming.dev avatar

Haha what a lovely chapter. Kind of fluff, but out of nowhere. I wonder what’s going to happen at graduation? Will the series end?

jim,
@jim@programming.dev avatar

Yep, this is the convention. Unfortunately, I’ve never been able to enforce it. Encouraging good git commit messages is probably the bottom of the things I can coach. I’d be happy if commits were properly squashed/rebased and that we all followed the same PR merge strategy.

jim,
@jim@programming.dev avatar

Wow, 25 years! In 1998, dial up was the standard way to connect to the internet from Home, AOL 4.0 debuted, and it wouldn’t be another six years until the Firefox browser was released.

Don’t be afraid to start something new. You never know where it might take you 25 years from now.

I love this quote!

jim,
@jim@programming.dev avatar

I think if there were a bunch of certificates, especially ones I haven’t heard of or a lot of low-level ones, I would suspect that you were using test dumps and trying to pad your resume.

I think if you had a cloud certificate and a respectable linux certificate, that would suffice as “enough”. Any lab-based certificate is also more valuable than just a paper one.

Is the CCNA certificate worth it for Software developers?

TLDR: I am not talking about the CCNA material (which is great for learning networking, albeit a bit too much detail for software devs), I am asking about the certificate itself, is it worth it to spend months preparing for the certificate, spending $300 on it, passing it and then putting it on your resume? Does it matter if I...

jim,
@jim@programming.dev avatar

In my opinion, no it’s not worth it. A CCNA and the related family of Cisco certifications really trains you to be a network engineer or work in ops in general. The certificate is not very valuable for a dev or devops role in general. The material itself goes over topics that are less valuable like spanning tree protocol. And it doesn’t much if anything beyond layer 4. DNS, load balancing, web protocols (HTTP, etc) are all more valuable topics to learn.

Now, the material that you’re learning isn’t wasteful, necessarily, but devops positions are not generally configuring routers and switches day-to-day, so I don’t view this as something valuable for software engineers even in devops roles.

Some of the topics that I find valuable - general TCP/IP in general and some of the routing protocols (namely BGP is the big one) - but the other stuff just requires passing knowledge that it exists and not much else. I would pick up a networking book and go over the topics in there instead of configuring switches and vlans.

SUSE Preserves Choice in Enterprise Linux by Forking RHEL with a $10+ Million Investment | SUSE (www.suse.com)

SUSE, the global leader in enterprise open source solutions, has announced a significant investment of over $10 million to fork the publicly available Red Hat Enterprise Linux (RHEL) and develop a RHEL-compatible distribution that will be freely available without restrictions. This move is aimed at preserving choice and...

jim,
@jim@programming.dev avatar

Rocky Linux have said that they can rebuild using publicly available sources in UBI containers and cloud images.

rockylinux.org/news/keeping-open-source-open/

Though reading the article, I don’t know if SUSE is simply rebuilding or forking. In any case, it’s cool to see SUSE committed to open source principles.

jim,
@jim@programming.dev avatar

I think Tumblr’s brand just got ruined. They were known for their nsfw material and now they don’t know what else to do with their lack of users.

jim,
@jim@programming.dev avatar

"I can read this Perl scrip"t should translate to “I’m lying”.

jim,
@jim@programming.dev avatar

Fairly substantial price increase. I will admit a major draw of this small truck was the affordability. I think some trims are up as much as $2k. Wonder what kind of effect this will have on demand and the order banks.

I mean, these trucks were on back order for a long time, which suggests that demand was way higher than supply. Yes, affordability was a major draw, but I’m not at all surprised at the price hikes here.

I’m hoping other manufacturers see this and come out with their own compact trucks. There are rumors Toyota is working on one, for instance.

jim,
@jim@programming.dev avatar

Oh nice. The Splinter in the Sky sounds interesting. Comes out tomorrow.

In this debut sci-fi tale, “a young tea expert is taken as a political prisoner and recruited to spy on government officials—a role that may empower her to win back her nation’s independence.”

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • tacticalgear
  • magazineikmin
  • thenastyranch
  • Youngstown
  • mdbf
  • rosin
  • slotface
  • InstantRegret
  • khanakhh
  • Durango
  • kavyap
  • osvaldo12
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • ngwrru68w68
  • everett
  • tester
  • ethstaker
  • cisconetworking
  • cubers
  • modclub
  • provamag3
  • anitta
  • normalnudes
  • Leos
  • lostlight
  • All magazines