[-] FizzyOrange@programming.dev 9 points 4 months ago

pip is easily the worst thing about Python. But now that we have uv I would say the worst thing is the package/import system. I'm pretty sure only 1% of developers understand it, and it only really works properly if your Python code is a Python package.

If you treat Python as a scripting language and just scatter loose files around your project and run them directly, it doesn't work at all. Pain everywhere. Which is dumb as fuck because that's like 80% of how people use Python.

[-] FizzyOrange@programming.dev 9 points 4 months ago

I support the idea but is it really that important? It's just a name. Call it ECMAScript if you're worried. JavaScript if you aren't.

[-] FizzyOrange@programming.dev 9 points 5 months ago

I just use Rust for this. You can make the binaries fairly small if you put a bit of effort in. Plus it's not a niche language, and you get the benefit of a huge community. And your code is pretty much fast by default.

The only real downside is the compilation time, which is a lot better than it used to be but still isn't great.

[-] FizzyOrange@programming.dev 9 points 5 months ago

I dunno I would say Lisp syntax is probably the worst option. Or APL style.

[-] FizzyOrange@programming.dev 9 points 8 months ago
  • Free CI
  • Everyone else also uses GitHub

Wake me up when there's a competitor that can match that.

[-] FizzyOrange@programming.dev 9 points 10 months ago

I feel like the best option at the moment is egui. It's native. Works on the web too. Very easy to get up and running. The things I don't like about it:

  • I personally think the default style could do with improvement. Mainly it's way too cramped. There's a happy middle ground between no padding and bootstrap. I mean Win32/Qt/etc. got this basically right.
  • Immediate mode. Yeah it's easier, especially with Rust, but ... it's surely not how it's supposed to work.
  • The low level drawing API (like if you're making custom widgets) is surprisingly amateur. Not something I'd want to target if I'm spending a lot of time e.g. writing a custom map widget or git graph or something.

I also tried Slint. Like the author I think the license is pretty reasonable. But it is pretty involved to set up a project and since it compiles everything from source it can take a very long time for a clean build of hello world. It's like if you were using Qt but instead of a binary package the sources are just included in your app.

Also I have bad experiences from QML (Javascript 🤮, weird scoping rules, etc.) but hopefully they learnt from their experience.

Looking forward to the 2030 edition anyway!

[-] FizzyOrange@programming.dev 9 points 10 months ago

Ah yes phpBB those were the days. Wait, no they weren't. They sucked. Old forum software was one of the worst computing experiences I remember.

Want to download a custom Android ROM? Hope you like reading through this 120 page thread one page at a time. Oh and each message will be surrounded by a metric mile of profile pictures and signature.

RSS was pretty great though, I'll give you that.

[-] FizzyOrange@programming.dev 9 points 10 months ago

Yes, use them. One big advantage is if you hover something in an IDE it will show you the docstring.

If you're writing Python you should be using Pylint (or Ruff) and it has a lint to ensure you write them.

The exception I usually make is for class member variables because it's super weird that the docstring comes after the variable. I think that's very confusing for people reading the code so I normally just use comments instead.

[-] FizzyOrange@programming.dev 9 points 1 year ago

Dunno why you're being downvoted. It's very obviously deliberately chosen to make 12 year olds giggle.

[-] FizzyOrange@programming.dev 9 points 1 year ago

Almost everyone uses Cargo. I think the only people that don't are Google and Facebook who will probably be using Bazel or Buck2. I think you're a bit confused about what Cargo is.

[-] FizzyOrange@programming.dev 9 points 2 years ago

only access secrets from environment variables

I kind of think this is a bad idea because environment variables can be read from anywhere and aren't designed to be secret.

But I'm not sure what a better solution is tbh.

[-] FizzyOrange@programming.dev 9 points 2 years ago

If everyone had a magic lamp that told them whether performance was going to be an issue when they started a project then maybe it wouldn't matter. But in my experience people start Python projects with "performance doesn't matter", write 100k lines of code and then ask "ok it's too slow now, what do we do". To which the answer is "you fucked up, you shouldn't have used Python".

view more: ‹ prev next ›

FizzyOrange

joined 2 years ago