893 karma · joined Oct 2, 2020 (6y ago) · 241 submissions
comment 5y ago · link · parent
I was proud last year when I got to day 18 with Python, but I'm setting the bar much lower this year. I don't have any experience with C/C++ (just C# and a bit of Go), so thinking more carefully about memory mgmt is new to me. But the functional aspects of Rust are pretty exciting.
152.
Advent of Code 2021(adventofcode.com ↗)
725 points · by ducharmdev · 5y ago · 264 comments
comment 5y ago · link · parent
I think it becomes problematic (or more magical) when these network/database/expensive calls are made willy nilly throughout an application, without a dedicated class or layer to aggregate these kinds of operations. If you have things architected correctly, it's not a big deal to trace these kinds of things throughout your app.
comment 5y ago · link · parent
Take LRU caches for example: it doesn't do us much good to devote that valuable memory space to information that isn't being recalled very often.
comment 5y ago · link · parent
comment 5y ago · link · parent
I think what's confusing to me about this and your previous point, is you mentioned this inability to access objective reality outside our own subjective experience, but now appeal to a shared human experience (i.e., there's a general human accomplishment we should all be working towards that goes beyond our subjective experience). I can understand one or the other, but it seems there's some tension between those 2 views.
comment 5y ago · link · parent
I used the VSCode vim extension too, which I believe eased me into it since I was already comfortable with VSCode.
I know the extensions are limited compared to straight vim, but IMO at a certain point you get diminishing returns with time spent learning your tools. Personally for me, getting proficient in normal, insert & visual mode was most worth it; I'm sure I'd benefit from learning how to do crazy macros, but didn't see a need to go beyond that.
comment 5y ago · link · parent
comment 5y ago · link · parent
With WASI too, the possibilities for interoperability between languages looks promising. I would check out the Wasmer runtime if you're curious about it.
comment 5y ago · link · parent
comment 5y ago · link · parent
https://learnsql.com/blog/sql-subquery-cte-difference/
You can think of CTEs as a way to save an intermediate query as a sort of temp variable/table that can be used in the final statement following `WITH something AS (...)`. They are great for flattening your queries and giving descriptive names to subqueries, and you can chain multiple WITHs together as well.
comment 5y ago · link · parent
It is kinda nice making reactive state really explicit like that; I like Svelte's approach for similar reasons.
comment 5y ago · link · parent
I used Vue 2 for some projects a year or two ago, and recently have been comparing React hooks & Vue's composition API. Composition is definitely better than mixins, but as a new React user, hooks are feeling more intuitive right off the bat. With Vue 3, I feel like I have to decide for every component whether to stick with the options API or use the setup method, or end up with some awkward in-between.
I was always a big fan of Vue though; I'd appreciate any insight you can give on the Vue 3 additions.
comment 5y ago · link · parent
Not sure if you've used the multiline console that Firefox has, but I could easily see some repl-driven development with that; I just wish the other browsers had it too.