Well the extension I just proposed is a Microsoft proprietary one, so, unless there’s an alternative, VSCode it is.
Huh?
Well the extension I just proposed is a Microsoft proprietary one, so, unless there’s an alternative, VSCode it is.
It’s annoying to be the weird one that rewrites all the code on the files I touch because I bothered to press format. Then someone forgets to pull before changing the code and suddenly the merge is not fast forward and the conflict resolution is a mess. It’s not that big of a deal, for me a t least, but when i format the code it’s 3 other dumbasses that get conflicts, and sometimes I just can’t bother enough to fix their issues because I took care of formatting it once.
Nowadays I use an opinionated linter, format my stuff and call it a day.
Yeah, if something in my life frustrates me, be it coding or otherwise, I search for solutions online and complain to friends “offline”, If I ever thought of making content, it would be on solutions I found of things that frustrated me,. and I’m not even that old.
use something like vscode with ssh - remote to code in a real editor with proper linting, or code in a proper environment and then use a git repo to deploy to the pi, idk. If what you are doing is basically ssh-ing to the device and opening a console editor (a well set up vim does have linting, but anyway) it’s no wonder it is being hard to work on it.
It’s better to invest time investigating proper tools to work on than to bruteforce the work and then spend tons of time hotwiring everything. Hotwiring code is not the end of the world but if it reaches a point where the tools frustrate you, search for alternatives dammit.
Now imagine if it was an error on like 67, but on a different file anyway. The error message should tell you the call chain, and if it doesn’t (segfault aka fuck you) you need to debug and the debugger should tell you the call stack.
It’s not that confusing. There’s like 5 main different tools in total, what are you going to code if you can’t even set up the workspace? That’s much simpler than an installation that depends on cuda or spark, and those only require setting up environment variables after installation anyway.
As a programmer you’ll encounter several redundant libraries and tools in your life where each has an edge in some use cases and you’ll learn to use most to be able to adapt to the different projects you encounter, python’s package manager tools are simply one of those.
Sometimes I wish there was a community for more advanced users, where the concept of deciding on the best build tool chain per project is not a major hurdle. Venvs? Nbd. Pipenv? Nbd. Conda/mamba/micromamba? Nbd. Pure pip? Oh boy, I hope it a simple one, but I’ll manage. Maven? Fml, but sure. Npm? Sure. “Complex” git workflows, no problem.
Idk, that’s just setting up the work environment, if your brains get squeezed by that I’m not sure if you will then be able to the actually code whatever its being asked of you. Some people…
But yeah, this is a newbie space so I guess that we have to ignore some noise.
If you want min-max behaviours you need to use wrappers like pipenv or jump into conda/mamba. Pip offers basic functionality because there are more advanced tools that the community uses for the more advanced use cases.
It would be weird to have python2-pip installed if you don’t have python2 installed, pip should be python2-pip by default on most systems.
I… Dunno, are you suggesting that sometimes pip2 is the default and that that somehow mixes 2 and 3 modules? Pip 2 should install into python 2’s directory and pip 3 to python 3’s. The only times I have had messy python environments is when I mix pipenv, conda and/or pip, and when people install into the main python with specific versioning, use a virtual env for God’s sake, that’s what npm does.
take into account that your “words spoken” isn’t necessarily how other say it. For me, saying 15th of july of 2023 sounds way more natural in english.
ctrl+P > format.
Git explodes.
We got that in python too!
your_mom = "the best" if i_got_icecream() else "just good"
Edit: on a more serious note, I’m not sure if python’s syntax helps with readability, in the real world everyone indents or you won’t really keep your job, and I’ve read some really shitty python code anyway, indented or not.
If a c/++/js/whatever file is unreadable, grab your favourite flavour of autoformatter and run it to read the thing, but shitty naming won’t get fixed by that.
Iirc, when you try to connect to a device through the SSH-Remote extension it downloads whatever it needs in the device and you connect to it. I have not connected to a Pi yet, but in any other cloud based or local linux machine it has worked flawlessly so I don’t think it will be different. The terminal window also opens a ssh’d terminal, so you can do whatever you do locally, through the app.
I did a quick search and the first link stated “All you have to do is to install the Remote-SSH extension on VS Code” so I guess that yeah, it works just like any other linux device. As an addendum, the folder browser UI works as a sftp drag-and-drop window, you can drop local files and they will get transferred into the SSH’d device.