@hvdklauw@mastodon.social avatar

hvdklauw

@hvdklauw@mastodon.social

Dad of 2 girls, Python programmer, gamer, working at https://zupr.io. profile pic made by my daughter.

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

sabderemane, to django
@sabderemane@mastodon.social avatar

Django friends, there is a new page with all local events happening in all over the world here: https://www.djangoproject.com/community/local/ 💚

hvdklauw,
@hvdklauw@mastodon.social avatar

@sabderemane oops, bad gateway, did I catch it mid deployment?

hynek, to random
@hynek@mastodon.social avatar

Once again, I’m watching a discussion of ppl stipulating PyPA/Python core/Santa Claus to “just pick one packaging workflow tool and go with it” and once again I have to remind everyone that the main problem isn’t a grand conspiracy of someone not wanting to pick & make you suffer, but that due to Python complex history & broad audience, we’ve got many 90% solutions maintained by few people that solve the 90% important to them and that have no bandwidth/interest in fixing the last 10%. [1/2]

hvdklauw,
@hvdklauw@mastodon.social avatar
lzg, to random
@lzg@mastodon.social avatar

deleted_by_author

  • Loading...
  • hvdklauw,
    @hvdklauw@mastodon.social avatar

    @lzg I was once hired back at a company where I knew a lot of the why, but not of the how. The reason was that I sat in at a lot of the discussions/code reviews as an experienced python programmer but was actually working for another part of the company that got split off and sold.

    So I was a bit like the frozen caveman looking at how they misinterpreted a lot of things

    hynek, to random
    @hynek@mastodon.social avatar

    As someone who’s neither a fan of “Clean Code” nor of “A Philosophy of Software Design” I have come to really like Kent Beck’s “Tidy First?”.

    It doesn’t try to be an all-encompassing tome, but gives some easily digestible hyper-local advice. Things like guard clauses. I haven’t really learned anything from reading its short ~100 pages, but I think it’s a great resource for beginners and intermediates who want to improve their craft.

    https://www.goodreads.com/book/show/171691901

    hvdklauw,
    @hvdklauw@mastodon.social avatar

    @hynek I would, but the ebook (epub) costs waaaay too much, especially compared to the paperback, which makes no sense at all.

    hynek, (edited ) to random
    @hynek@mastodon.social avatar

    https://www.reddit.com/r/Python/s/dWAyL8KKiX is the most /r/python thing in a long time.

    Tons of confident opinions and all of them are historically wrong.

    No, I’m not gonna correct them, because some overly-confident jerk will either start arguing with me, straight-up downvote me, or both. 🧘‍♂️

    hvdklauw,
    @hvdklauw@mastodon.social avatar

    @hynek instead you might get some jerk that links this post in the Reddit thread, getting the same result, so what is the difference really ;-)

    hynek, to random
    @hynek@mastodon.social avatar

    This has been bothering me forever: does anyone know why in VS Code in Python the import Quick Fix doesn’t work in tests?

    Like: I write code with a symbol that isn’t imported yet. When I go on the squiggled symbol and press ⌘. in code within src/pkg_name, I always have to option Add “from X import Y”. If there’s multiple symbols with that name, I get them shown all.

    If I do the same within tests, I get nothing except “Ruff (F821): Disable for this line”

    Is this normal? Any leads?

    hvdklauw,
    @hvdklauw@mastodon.social avatar

    @hynek the tests are outside of the package root maybe, so it's not part of it. At least that's usually how packages are structured. /Tests/ and then a /src/ folder

    hvdklauw,
    @hvdklauw@mastodon.social avatar

    @hynek oh, that is weird. I wonder if they are excluded because tests aren't "code" ;-)

    GullumLuvl, to random
    @GullumLuvl@ecoevo.social avatar

    Solved Day 8 - Advent of Code 2023, but this one was really hard (part 2), or is it just me??

    https://adventofcode.com/2023/day/8

    hvdklauw,
    @hvdklauw@mastodon.social avatar

    @GullumLuvl nope, have a template that has some basic setup that can get the input for me, so the boilerplate it all done. I just have to read, copy the test data and the expected result and I'm off. Not that I in any way compete for the leaderboard, but this does allow me to quickly start programming.

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