• 0 Posts
  • 102 Comments
Joined 2 months ago
cake
Cake day: February 22nd, 2026

help-circle








  • I did some webdriver stuff for reasons I don’t remember anymore.

    I also made a simple Django app to track job applications.

    Unsolicited advice:

    • use type annotations. You’ll thank yourself later when your IDE tells you “hey this can be None are you sure you want to call .some_func() on it?”
    • use an ide. Don’t just raw dog it in notepad. You should have syntax highlighting, red squiggles for errors, the ability to go to definition.
    • learn to use a debugger. Pdb is built in and fine.
    • don’t write mega functions that do a thousand things. Split things up into smaller steps.
    • avoid side effects. You don’t want your “say_hello” function to also turn on the lights






  • jtrek@startrek.websitetomemes@lemmy.worldFuck
    link
    fedilink
    arrow-up
    41
    arrow-down
    1
    ·
    17 days ago

    At work, the team isn’t very good at python. They’re mostly SQL people. Which is fine. I’m happy to mentor and guide.

    The product lady said to me “can you write a guide on confluence about how to do python good?”

    I’m like, people write whole published books about that you gotta pay money for. I’m not going to bang out a couple paragraphs and code blocks and suddenly people are heavy weights.

    I wrote something anyway because I don’t want to further irritate the product lady.


  • jtrek@startrek.websitetoHumor@lemmy.worldRule-follower
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    17 days ago

    It’s because leadership is a heady cocktail of stupid and selfish.

    I really want to stress stupid. That means they draw bad conclusions from facts.

    Sometimes selfish is a factor. They have an obscure reason like “my share value goes up because we get a kickback from the city for staffing an office here”. They don’t care if it’s bad for everyone else or the company long term. They’ll get their money and then leave.




  • If you sell your game through Steam, you cannot have it cheaper anywhere else. Even DRM free version on your website. Even temporary sales.

    I don’t see anything about this in their docs. The closest is “You should use Steam Keys to sell your game on other stores in a similar way to how you sell your game on Steam. It is important that you don’t give Steam customers a worse deal than Steam Key purchasers.”

    That seems reasonable. If you’re selling DRM-free, you don’t generate steam keys, and valve has no stake in it.


  • jtrek@startrek.websitetomemes@lemmy.worldCourage
    link
    fedilink
    arrow-up
    2
    ·
    17 days ago

    I sincerely believe that being rich is bad some kinds of intelligence You don’t have to deal with problems. You just brute force your way through with money. You don’t have to practice restraint and delayed gratification. You can just buy the thing now.