Incblob

joined 2 years ago
[–] Incblob 3 points 3 weeks ago

It's fine. I rarely comment anywhere, and it didn't really bother me that much. I'm at home with corona (already feeling better), so I had the time to give a thorough answer.

[–] Incblob 2 points 3 weeks ago (2 children)

Did... Did someone on the Internet admit to not being 100% correct?!

What is happening right now? Is it the apocalypse? the end times?

Has great Cthulhu risen, neath the dark waves of the abyss to tear mind from-

Ok, a bit dramatic, but when was the last time you saw anyone give an inch in an online argument?

Anywho, thanks for the context, though I think the idea of python as a "scripting language" is a bit overblown.

[–] Incblob 1 points 3 weeks ago (4 children)

a) poetry came out 6 years ago, though UV is the new kid on the block, it's easier to complain about that if you want to.

b) so, you are fighting with silly tools, but don't want newer, hopefully better tools? If you aren't fighting with silly tools, then more options is bad? I guess it's a bit confusing for beginners?

c) how are you fighting with the tools? This is a genuine question, I don't remember the last time that the tooling caused a problem and I've been working professionally with python for the last 5 years, on both small and larger projects, first I used conda, and in the last few years poetry. In poetry, it's two commands to create a new environment, and install everything. The only time I had a problem was with an internal library that had misconfigured dependencies.

d) here's the rundown on the dependency tools:

  • Virtualenv is one of the oldest, from the python 2 times
  • venv is just a subset of Virtualenv that was integrated into the standard library to have venvs available without external tools
  • conda is not python specific, it also does R, Ruby, some DB stuff, etc... It tries for maximum compatibility with various systems. This is apparently very useful in bioinformatics which use very disparate tools.
  • Pipenv is an attempt to implement ruby-like dependencies. I don't know much about it, it's not used much.
  • flit is lightweight, for publishing packages only -poetry is what I am currently using. Simple toml based dependencies. Installs the packages wherever your want. Since it uses toml, it's compatible with other tools like dependi to check for updates. It's got a pretty good set of commands that you don't need to remember because init and update is what you need 90% of the time. Can also publish packages, and has separate dev/prod dependency groups.
  • uv is the new one, written in rust (of course) and very fast. Also installs python versions, meaning you no longer need a separate tool/docker images to manage your python versions. No multiple dependency groups yet. Aiming to become the only tool you need to do anything in python. Still <v1.0 and not feature complete.
  • pdm is more of a project manager, that allows for plug ins, scripts, and also no virtual envs if you want. Does a lot of things similar to poetry.

I mean, every one if these has a reason for existing, and is an improvement of the previous one (pdm started as a personal project, let people have their fun) . It's also a good few years between them, so it's not like they're spamming them.

[–] Incblob 1 points 3 weeks ago (6 children)

So... The proper way is... Global installs? What are you saying here?

Just use poetry or something, install the environment in your project directory and you're done. The versions of your dependencies are fixed, so are consistent across installs, and because it's sandbox you aren't polluting your system, and vice versa.

And if you're using a language that installs the dependencies localy, guess what? That's what you're already doing, only with less security.

[–] Incblob 2 points 3 weeks ago

So the code did have type hints, just not consistently. Sounds like bad code.

[–] Incblob 3 points 3 weeks ago

You, god, pretty much any Formatter and ide. Black Formatter: "All leading tabs are converted to spaces, but tabs inside text are preserved." Vscode has a command to convert between the two, and non-leading tabs are a simple replace/regex away from being converted. If you mean unorthodox spacing, if you have code with like 7 leading spaces, then that's a matter for a priest.

[–] Incblob 1 points 1 month ago
[–] Incblob 1 points 1 month ago (2 children)

May I ask why you don't use asterisk? That searches for the current word.

[–] Incblob 4 points 4 months ago* (last edited 4 months ago)

Here's an out of the box suggestion: Dina Remastered II. It's a pixel font, that since it has no curves, scales well on any screen. No sub-pixel nonsense.

[–] Incblob 3 points 5 months ago

I use syncthing without any problems.

[–] Incblob 1 points 5 months ago

I mean it's just the basic hocoro dip pen with a couple of nibs. But I did just order a 3d print of a tiny jar holder for the 2ml jars I keep my ink samples in. Might post that when it arrives.

[–] Incblob 1 points 5 months ago (2 children)

At the moment my hocoro dip pen so I can change inks every time :)

 

Hi there, I was wondering what size hole you need for a 5 way nav switch. For hand soldering that is. NOT for a pcb.

It doesn't seem to have a lip, and the official docs have it at 10*10mm, but that would just fall through.

Do I have to have individual holes for the contacts? Is it even possible to use outside of a pcb? Anyone have any ideas?

Thanks for the help.

view more: next ›