That’s fair! Takes time to get used to. Modern editors make this easier by highlighting the current indent level, or can even make the top X lines of the current closure “stick” to the top of the editor for those really long blocks.
That’s fair! Takes time to get used to. Modern editors make this easier by highlighting the current indent level, or can even make the top X lines of the current closure “stick” to the top of the editor for those really long blocks.
Correct, I linked the source of the quote. My implication is the general idea is applicable here. Is python one of these languages where it is idiomatic to nest code deeply?
Flat is better than nested.
From the python I have seen and written, deep nesting is avoided.
Just curious, what about spaces made it hard? What language would have been easier? In curly brace languages, 99% of the time, a curly brace is followed by a line break and an indent. Python is similar except it’s typically a colon, line break, then indent.
What I have learned is: If the code is indented too deeply, it’s a code problem, not the language.
Torvalds infamously wrote:
“… if you need more than 3 levels of indentation, you’re screwed anyway, and should fix your program.”
Hold down j
and lmk how smooth it is 😅
I mean, it should be clear. Smooth and fast and snappy. If you don’t want that, use neovim like me :)
opens htop threateningly
The only reason coders’ computers work better than non-coders’ computers is coders know computers are schizophrenic little children with auto-immune diseases and we don’t beat them when they’re bad.
Well… said?
Oh look, a completely fallacious and divisive comment
Spoiler: they think the horsey is worth it
Idk I can think of a few others…
Edit: I take issue with the ridiculous editorialization in the title. MOST transparent? Of ALL TIME?? What about the Khmer Rouge? The Holocaust? Uighyrs? Not every fucked up atrocity has to be the most impressive of all time to warrant an article…
Interesting! I have built several projects entirely in TS or with react/next frontends and I enjoy the DX a lot now that I have the experience with the overwhelming breadth of options out there. It was very frustrating and overwhelming for me at first though. I found Dockerizing to help with consistency and finickiness.
Just curious, what are you missing most from asp.net core?
You guys are using typescript right? … right?
u just know some googler got promoted to management with this dogshit idea
edit: That’s how it works @google yall. Engineers craft some cool feature and get whisked away after and leave the project/feature abandoned
Tbf, it’s typically language servers and extensions causing cpu and memory footprints. If you were to open a dumb txt file, I doubt you’d encounter issues. The app itself is pretty light. I say this as a neovim user who has managed to make its memory footprint balloon _
React is fine too with the right tooling. Next.js, create-t3-app, vite etc. are all nice. I think svelte has fewer unfamiliar mental models and hurdles to initial development though. I tried vue years ago and found react made far more sense to me for some reason.
And you can hook in fzf to it to get a proper list of previous commands all fuzzy matched!! Oh-my-zsh just requires adding fzf
to your plugins list (:
I survived for years with just https://github.com/zsh-users/zsh-autosuggestions which is similarly great, but fills a slightly different role. Just start typing and you’ll see a faded preview of the most recent command matching & u ctrl+f to autocomplete it. Is gr8
e: clarified what zsh-autosuggest does
I absolutely cannot wait for Asahi linux. M1 hardware with linux 🤤
asyncio.run(easy_peasy())