Software development and computer stuff in general is my passion. I enjoy doing it as a hobby even after doing it at work. If I didn’t have to work for money, I would probably work on some open source software. In fact that’s kinda my dream / goal - achieve financial independence and work on open source as I please.
Very interesting experiment. Thanks for sharing! Maybe I’ll find some time to run the benchmarks on my Pixel 7 in the upcoming days.
I don’t see how this supports your point then. If “setting up proxy” means “packaging it to run on thousands user machines” then isn’t there obvious and huge potential for a disastrous fuckup?
Setting up proxy is not engineering.
Of course, but when indentation has a syntactic meaning the formatter often won’t be able to fix it.
Ente is as close as you can get to Google Photos with E2EE right now. I recently migrated there. The migration wasn’t painless and involved some scripting to handle albums and duplicates but the service itself is really good. Can recommend!
I really hope this happens. NFC payments are the only thing that keeps me from switching to GrapheneOS. Seeing how the situation with big tech unfolds, it’s not impossible that I will decide to give up this convenience though.
So I’m going to say what I always say when people complain about semantic whitespace: Your code should be properly indented anyway. If it’s not, it’s a bad code.
I’m not saying semantic whitespace is superior to brackets or parentheses. It’s clearly not. But it’s not terrible either.
As someone who codes in Python pretty much everyday for years, I NEVER see indentation errors. I didn’t see them back when I started either. Code without indentation is impossible to read for me anyway so it makes zero difference whether the whitespace has semantic meaning or not. It will be there either way.
I’m so excited for Cosmic!
The article is very interesting but the fake cursors are infuriating and make it nearly impossible to focus on the content. It’s a clever joke but without a way to disable it, the author is just sabotaging his own content.
I’ve been playing with NixOS in spare time for a few weeks now and I’m afraid I don’t have a very good news for you. It looks like the learning curve is just very steep. It took me quite a lot of time to get to the point where I have any idea what I’m doing. Some beginner friendly resources which helped me:
Misterio77 Nix starter configs and his own config.
In general, I recommend checking out people’s configs on GitHub. You can learn a lot by example.
Yup, that’s what I meant. I really don’t see why anyone wouldn’t use it nowadays.
The solution to this problem (and many others) is to use an IDE / editor which supports refactoring like that. Which is pretty much every IDE / editor unless you’re using some very obscure language I think.
When I receive a notification I don’t need to switch away from my editor to check it, I just glance to the left and continue with my work or react if needed. Constantly switching windows in front of me would be so much more distracting for me.
Also, being able to read docs and google stuff on a vertical monitor on the right, while still seeing the code in front of me is incredibly convenient. Again, I can’t imagine switching away from my editor to the docs and to the code again.
I need to be able to effortlessly switch attention between code, tests, logs, docs, notifications. If I can’t do that by just shifting my sight in the right direction, my brain doesn’t function.
It’s so interesting how different people are!
Anything less than that will completely ruin my workflow. I’m even trying to come up with a feasible way to fit a fourth one.
I mean, it would probably make sense to make this optional to accommodate as many preferences as possible. I, for one, prefer to get the human readable message right away instead of having to use another tool for it.
Well, I don’t mind being called stupid if it makes my debugging easier. For many people visual/ graphical representation is much easier to comprehend than a block of text.
E2E is their flagship feature and pretty much only selling point. I’m really not surprised they don’t allow to just disable it.
Huge thanks to Vaxry and all contributors, Hyprland is great!
Since you have all your
shutil.copytree
s andsys.path
manipulation at the top level of the test modules, they are executed the moment those modules are imported.unittest
likely imports all discovered test modules before actually executing the tests so the set up of both modules is executed in random order before the tests are run. The correct way to perform test setup is usingsetUp
andsetUpClass
methods ofunittest.TestCase
. Their counterpartstearDown
andtearDownClass
are used to clean up after tests. You probably will be able to get this to work somehow using those methods.However, I’m fairly certain that this entire question is an example of the XY problem and you should be approaching this whole thing differently. Copying the modules and their mock dependencies into a temporary directory and manipulating
sys.path
seems like an absolute nightmare and it will be a massive PITA even if you get it to a working state. I don’t know what problem exactly you’re trying to solve but I think you should really read up onunittest.mock
and even more importantly on dependency injection.