4 ms·
I only recently started to wet my feet with Python (Micropython, actually) because I wanted to quickly prototype something on small ESP* uControllers, and speed
by squarefoot 2y ago
I only recently started to wet my feet with Python (Micropython, actually) because I wanted to quickly prototype something on small ESP* uControllers, and speed aside I liked it, but what got me angry was its dependence on tabs, I simply will never adapt to that.
I certainly lack the expertise to know what went wrong, but wasting a whole half hour to debug a ~25 lines piece of code that had no bugs and no visible errors or alignment problems, then started to work just by loading on a different editor then saving it back without changing a single char, was enough. I'll keep using it because there are not many alternatives among higher level than C languages, but as soon as something else will appear I'll be more than happy to jump ship. Are brackets, parentheses or "end" statements that bad?
- acdha 2y agoYou might want to use a programmer’s editor since almost anything in common use won’t have that problem - Python requires consistent indentation but not tabs. I’d also consider using Ruff or Black to format your code since it’ll make that problem either disappear or instantly obvious based on exactly how it happened.
- igouy 2y agoYou actually might be interested in: https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/toit-micropython.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- squarefoot 2y agoInteresting, never heard of it. Thanks!