- 3 Posts
- 46 Comments
gigachad@sh.itjust.worksto
DACH - Deutschsprachige Community für Deutschland, Österreich, Schweiz@feddit.org•Fast jedes zweite Auto bleibt täglich ungenutzt
1·7 months agoDas bedeutet jetzt aber, dass die Bundesregierung dringend mehr Geld in die Infrastruktur für Autos investieren muss, richtig?
gigachad@sh.itjust.worksto
Technology@lemmy.world•Reddit users in the UK must now upload selfies to access NSFW subredditsEnglish
15·11 months agoWhy doubt, I mean they promised?
gigachad@sh.itjust.worksto
Python@programming.dev•did you moved from Pandas to Polars? why and how was your experience?
3·1 year agoNope. I am working with geodata so I need geopandas for my work. Sadly, there is no serious alternative until now. If, in the future, that will change, I am am absolutely on board giving polars a try.
Syntax highlighting in REPL as you type is big
pipcannot install some system dependencies your library might need. Windows is extra difficult sometimes, as the library might require some paths during installation, Linux is way easier for this kind of stuff. Either you use WSL, or you follow these instructions for Windows I found by googling https://github.com/luarocks/luarocks/blob/main/docs/installation_instructions_for_windows.mdI use Mint btw
gigachad@sh.itjust.worksto
Technology@lemmy.world•Python Performance: Why 'if not list' is 2x Faster Than Using len()English
1·1 year agoSir, I will make sure to never bother you with a PR and my terrible, terrible code ;)
gigachad@sh.itjust.worksto
Technology@lemmy.world•Python Performance: Why 'if not list' is 2x Faster Than Using len()English
3·1 year agoThis is what I would come up with:
try: if len(foo) == 0: ... except TypeError: ...There is no need to add a
Nonecheck, asfoobeingNoneshould be considered as a faulty input. Avoiding the possibility offoobeingNonefrom the beginning using static checks or testing is of course the preferred solution. But in reality we do not work in such optimal environments, at least I can say that from the perspective of data science, where often procedural, untested code is produced that runs only a few times. But I get your point and I think both paths are viable, but I am also okay with being in the wrong here,
gigachad@sh.itjust.worksto
Technology@lemmy.world•Python Performance: Why 'if not list' is 2x Faster Than Using len()English
1·1 year agoI am not saying it’s better, just that I don’t like the proposed way :) I would argue that being “pythonic” has even less value than the Zen, which I quoted because it’s true, not because it is some strict rule (which it isn’t anyway).
You could argue I also need to write that extra code for the
if notcase, as I explicitly have to check if it isNoneif my program somewhere further down expects only lists.Hunting for those sweet milliseconds is a popular game in the Python community ;) if this mechanism is that important for your program, you should definitely use it, I would do as well!
gigachad@sh.itjust.worksto
Technology@lemmy.world•Python Performance: Why 'if not list' is 2x Faster Than Using len()English
6·1 year agoBut
Nonehas nolenif not foo:-> foo could be an empty list or
None, it is ambiguous.len(foo)will lead to an exceptionTypeErroriffooisNone, I can cleanly catch that.It suggests I deal with a boolean when that is not the case. Explicit is better than implicit, and
if not footo check for an empty list may be pythonic, but it’s still implicit af
gigachad@sh.itjust.worksto
Technology@lemmy.world•Python Performance: Why 'if not list' is 2x Faster Than Using len()English
71·1 year agoI don’t like it very much, my variable could also be
Nonehere
gigachad@sh.itjust.worksto
Technology@lemmy.world•AI isn’t ready to replace human coders for debugging, researchers sayEnglish
12·1 year agoAbsolutely agree. I just use it for some simple stuff like “every nth row in a pandas dataframe slice a string from x to y if column z is True” or something like that. These logics take time to write, and GPT usually comes up with a right solution or one that doesn’t need a lot of modification.
But debugging or analyzing an error? No thanks
gigachad@sh.itjust.worksto
Technology@lemmy.world•Not just Switch 2: ESA warns Trump’s tariffs will hurt the entire game industryEnglish
24·1 year agoWhy is the European Space Agency speaking up to this topic
gigachad@sh.itjust.worksto
Python@programming.dev•Python 3.13.2 and 3.12.9 now available!
7·1 year agoWow, I hope you’re not connected to the web
gigachad@sh.itjust.worksto
Python@programming.dev•Yes, you should use a Python venv in a container like docker
41·1 year agoThis article is about Python venvs using Docker. That I wouldn’t want to pollute the base installation on my local machine should be clear.
But you can just create a venv and install everything in there, no need to create dozens of venvs if that’s what you want.
gigachad@sh.itjust.worksto
Python@programming.dev•Yes, you should use a Python venv in a container like docker
52·1 year agoI am not sure what you mean. Once you created a venv you can always reuse it.
gigachad@sh.itjust.worksto
Python@programming.dev•Yes, you should use a Python venv in a container like docker
21·1 year agoSoon, you won’t have a choice because major distros are adopting PEP 668. This will make pip install fail in the default system Python and show an error telling you to use a virtual environment.
Well, if this is true then why bother convincing people ;)
gigachad@sh.itjust.worksto
Python@programming.dev•Python 3.13, what didn't make the headlines
10·2 years agoWdym? It’s a text about the lesser known features and changes in Python 3.13.
gigachad@sh.itjust.worksto
Linux@lemmy.ml•Phoronix: Linus Torvalds Comments On The Russian Linux Maintainers Being Delisted
15·2 years agoRemoved by mod



Hier geht es nicht um Pornographie. Es geht darum die Personen, welche digitale sexuelle Gewalt ausüben strafrechtlich zu belangen. Deepfakes sind eine recht neue und extrem widerliche Art und Weise vor allem Frauen zu sexualisieren. Solche Videos von sich im Netz zu haben, ob echt oder unecht verletzt die eigene Würde. Davon profitiert in erster Linie der Täter, der seine eigene sexuelle Lust damit befriedigt. Da geht es nicht darum, dass irgendeine Plattform irgendwas verkauft.
Ich verstehe ehrlich gesagt nicht ganz worüber du redest. Wenn ich dich richtig verstehe, sagst du, wenn wir alle von uns gegenseitig sowas machen und das Netz damit fluten, ist das Problem gelöst?