@anze3db@fosstodon.org
@anze3db@fosstodon.org avatar

anze3db

@anze3db@fosstodon.org

Writing Python :python:, Django :django: and surfing waves ๐Ÿ„โ€โ™‚๏ธ

Projects:
๐Ÿงช https://flakytest.dev tame your test suite flakiness
๐Ÿง‘โ€๐Ÿ’ป https://fedidevs.com find awesome devs across the fediverse
๐Ÿ’ป https://github.com/anze3db/django-tui a TUI for all your Django commands

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

anze3db, to random
@anze3db@fosstodon.org avatar

pip 24.1b1 was released yesterday and brings a lot of perf improvements!

It also drops support for EOLed Python 3.7 and legacy version specifiers so make sure you try it out on your workflows and give the pip team feedback if something broke!

python -m pip install pip==24.1b1

https://pip.pypa.io/en/latest/news/#b1-2024-05-06

kevinrenskers, to random
@kevinrenskers@hachyderm.io avatar

Something I really dislike on GitHub: when you add a new comment you have this really obvious button to insert an image, which I use all the time. But when you edit a comment, that button is gone and instead you have to use the small toolbar buttons. Why is this UI not consistent?

anze3db,
@anze3db@fosstodon.org avatar

@kevinrenskers Iโ€™ve never used this button as I always drag and drop or copy paste the image directly into the text area. Feels much faster than going through the dialog

anze3db, to random
@anze3db@fosstodon.org avatar

MS Docs: Using the Setup Assistant with modern authentication is considered modern authentication.

If using Setup Assistant with modern authentication wouldn't be considered modern authentication would it still be called Setup Assistant with modern authentication?

anze3db,
@anze3db@fosstodon.org avatar

@deshipu the way this all works Baroque Authentication would be a more fitting name.

anze3db, to random
@anze3db@fosstodon.org avatar

I am enjoying writing Golang, but I do miss some Python features ๐Ÿ˜…

Go's defer is cool, but Python's context managers are way more versatile because they can be placed anywhere.

I have learned that you can abuse Go's anon funcs to get a poor man's context manager:

image/png

anze3db, to random
@anze3db@fosstodon.org avatar

Iโ€™ve rewatched The Band of Brothers. It came out more than 20 years ago and itโ€™s still the best portrayal of WW2 that Iโ€™ve seen.

anze3db, to random
@anze3db@fosstodon.org avatar

When I started work on a Golang project I thought I was going to hate that you have to use multi return values for "raising" exceptions, but I have to admit that returning errors works surprisingly well. Maybe even better than raising exceptions since it's more difficult to skip.

anze3db,
@anze3db@fosstodon.org avatar

There is a huge flaw with Golang erorr handling though - you have to wrap the errors to get stack traces.

In my second week I had to track down a production error without a stack trace or a useful error message and it wasn't fun at all!

And it was an experienced Golang dev who forgot to add the wrap, so I'm guessing these sort of issues are very common?

anze3db,
@anze3db@fosstodon.org avatar

@preslavrachev interesting. To add stack traces we currently use the (archived?!) pkg/errors packageโ€™s Wrap method.

djangobrew, to random
@djangobrew@fosstodon.org avatar

Did you ever want to send us feedback about Django Brew? Well, now you have the chance on https://djangobrew.com! ๐Ÿ’ฌ

We will also accept coffee recommendations and the occasional compliment. ๐Ÿ˜†

Send Feedback link on https://djangobrew.com

anze3db,
@anze3db@fosstodon.org avatar

@djangobrew Clicking the send feedback link asks me to open an SMS application. Is the link correct?

anze3db,
@anze3db@fosstodon.org avatar

@djangobrew I canโ€™t remember when I last sent an SMS so it felt like a very odd thing to ask to me.

Anyway, I just wanted to say that the podcast is great! Please keep it up! ๐Ÿ’š

anze3db, to random
@anze3db@fosstodon.org avatar

I've added filters to the https://fedidevs.com/conferences page! I still have to work on the design a bit because the current iteration looks a bit too busy, but it's a start!

anze3db,
@anze3db@fosstodon.org avatar

@domenkozar Will do, thanks!

anze3db, to random
@anze3db@fosstodon.org avatar

Can't wait for Django 5.1!

One of the changes that landed is a new template tag {% query_string %}. It's going to allow me to clean up A LOT of if/else code in my templates for building query strings on filters!

https://docs.djangoproject.com/en/dev/ref/templates/builtins/#std-templatetag-query_string

anze3db, to random
@anze3db@fosstodon.org avatar

Lazy afternoon with this guy

benjaoming, to random
@benjaoming@social.data.coop avatar

India must be an interesting case to discuss VAT, which I guess most countries fail to re-think.

Source: https://wise.com/in/vat/gst/india

anze3db,
@anze3db@fosstodon.org avatar

@adamchainz @benjaoming great to see that books are in the same bucket as food. It makes all the sense, healthy food for your brain!

anze3db, to random
@anze3db@fosstodon.org avatar

I didn't know Warren E. Buffet could write in Slovenian! How nice of him to write to me and offer 1_500_000 euros. I'm so lucky! ๐Ÿ˜‚

anze3db, to random
@anze3db@fosstodon.org avatar

When migrating to Tailwind I also struggled with spacing.

Example: I could never remember what I used between paragraphs on different pages. Was it "mt-4 mb-4" or was it "mt-6 mb-6"?

Because of this the spacing is a less consistent in the Tailwind version than picocss. ๐Ÿ˜•

anze3db,
@anze3db@fosstodon.org avatar

@webology @carlton I've learned a bunch from this thread and now I even have a new book to read, thank you both!

anze3db, to random
@anze3db@fosstodon.org avatar

One thing that bothered me when refactoring https://fedidevs.com from picocss to tailwind was that links have no styling in tailwind. If you forget to add the class="underline" to them you'll completely forget that they are there.

image/png

anze3db,
@anze3db@fosstodon.org avatar

@carlton oh, I didn't know about the Typography plugin (or plugins in general) so thanks for pointing me in the right direction.

I agree, for the designing your UI a bare style is a better base. My problem is that I don't really want to design my UI, I just want it to look decent with not too much copy pasting everywhere ๐Ÿ˜…

With typography and forms plugins I think this becomes manageable, so I just need to find a plugin for buttons and I my biggest annoyances will be solved!

anze3db,
@anze3db@fosstodon.org avatar

@carlton haha, yeah, I've already seen those kinds of replies. It still feels a lot of work to do yourself, because I tend to use a lot of different kinds of buttons (primary, secondary, outline, pill shaped, danger, etc), but I'll give it a go!

anze3db,
@anze3db@fosstodon.org avatar

@carlton I went with Flowbite instead of Daisy UI, but looking at it now I think Daisy might have been a better choice for me because it does have a bunch of helper classes like btn-primary. Oh well, I know for next time!

I like your idea for color aliases as well, thanks!

anze3db,
@anze3db@fosstodon.org avatar

@carlton Yes, Flowbite has pretty much everything I'd ever want, I was just avoiding apply until now since I was told that I shouldnโ€™t use it ๐Ÿ˜…

anze3db,
@anze3db@fosstodon.org avatar

@carlton Agree 100%. I wanted to give the no apply way a proper test before I fully formed my own opinion on it. Sometimes these kinds of ideas need time to sink in especially if they are against your way of doing things.

I do appreciate the utility-first approach - itโ€™s amazing for one-off things that my sites are full of, but for repeating things like the mentioned buttons it gets really old really fast.

anze3db,
@anze3db@fosstodon.org avatar

@webology @carlton I already have a few *-{modifier} classes in the codebase ๐Ÿ˜Ž

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