5 ms·
I've been paying the rent/mortgage with Python since 2013: > In Python, everything must be indented with 4 spaces no > It’s literally impossible to have a co
by henning 5y ago
I've been paying the rent/mortgage with Python since 2013:
> In Python, everything must be indented with 4 spaces
no
> It’s literally impossible to have a consistent indentation
it's trivial
> as most programmers will agree, they often make the code harder to understand when reading someone else’s work
No, swapping things is easy to pattern match against once you know the language.
This is even dumber than complaining about Lisp parentheses.
- elementi 5y agoThanks for your feedback. We'll correct that thing about Python as soon as possible. However please agree with me that with an educational background of C/C++, learning Go was easier than learning Python.
- uuidgen 5y agoI used to be a C++ dev for 10 years. I tried to learn go after hearing about how great it is. IMO - it's a hot garbage practical joke made by googlers that became popular because it was made by googlers and then it was too late to tell its was a prank. It's a corrupt amalgam of "clever hacks" and "only one good way to do things - my way". Its concurrency is awful, and makes shooting oneselves in a foot easy. Effective go teaching you how to basically make mutex using channels is just a practical joke, right? As for C++ and libraries - Boost was and is a big one. Want HTTP? There's a full server implementation you can reuse easily https://www.boost.org/doc/libs/1_55_0/doc/html/boost_asio/examples/cpp11_examples.html https://www.boost.org/doc/libs/1_55_0/doc/html/boost_asio/ex...
- mxschumacher 5y agoGo's success in the cloud native infrastructure is really impressive - the language has enjoyed widespread adoption in many large engineering orgs. Having a hard time seeing where you're coming from when you talk about a "hot garbage practical joke"
- uuidgen 5y agoJavaScript is an awful language, we all can agree on that, right? But it has reached universal adoption, it's widespread from in-app scripts, through embedded devices, back-end services and front-end. I have the same opinion on Go - it's awful, it fails to deliver its promises, but it became popular because it was "a google thing". Google itself supports go internally, but it is nowhere near being ubiquitous or even recommended - I think that tells you something about it too.
- hughrr 5y agoIve been using python to pay the mortgage since about 1999. With respect to indentation, realistically it depends on how many morons you have to share the code with and how many broken ass misconfigured editors those morons are wielding. At least you can actually see everything with semantic value in Lisp! I really prefer writing Go now for a number of reasons if I’m honest which are too numerous to list here.
- mxschumacher 5y agoWith the widespread availability and use of code formatters like black, pre-commit hooks and ci/cd pipelines, complaining about indentation seems like a deeper problem in the engineering org. Files that are inconsistently formatted should never make it to code review, much less be merged.
- deleted 5y ago[deleted]
- zapnuk 5y agoExactly. I've used Python for 5+ years now and I can't remember indentation ever being a problem. Not even when I started out. And even if you somehow f-up the indentation. About every editor has a formatter that fixes it for you.