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.
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.”
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?
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?
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
Anything under like 100ms load is instant to the user, especially a page load. It’s a balancing act of developer experience vs performance. To split hairs over milliseconds seems inconsequential to me. I mean, PHP requires $ before variables! That’s the real controversy :p
Double digit milliseconds sounds slow to you?
Optional parens on function calls, implicit returns, curly brace procs with args in vertical bars 🙃
I don’t know that’s a fair anology. Vim does what a IDE can do without almost any setup with LazyVim and Lunar Vim and a bunch other prebaked setups. Instead of writing your vscode config in JSON or using a GUI, you can use lua. It’s more like turning car into a track car or something where you’re already a mechanic
asyncio.run(easy_peasy())