339 karma · joined January 26, 2017
const { status } = await send(`${capitalize(greeting)}!`)
console.log(status)
It does reduce the number of discrete operations to make the pipe example look more impressive, though.
Create an object with a subscribe method and whatever other methods make sense for updating its state. Svelte will treat it like one of its stores, and it will work with the $ syntax. It can be used with React via its `useSyncExternalStore` hook. It can be used with SolidJS via its `from` utility.
If you don't want to handle the set-up boilerplate, you could use another library like Effector or RxJS, but of course, that means another dependency. There is a gradual move to make something like this a part of the platform[1], but who knows when or if it will land.
However, there is an aspect of being in the right team and company at the right time. If I worked in a team as experienced and knowledgeable as me, my feedback would have less value. I could also easily imagine some managers making the number of reviews an empty metric that had to be tediously gamed, much like green squares on GitHub.
Is it more common than not that senior engineers aren't appropriately rewarded for investing time in code review? Probably, most companies are imperfect in one way or another.
https://www.reuters.com/world/europe/migration-drives-german...
Because the classes are shared to begin, there is less redundancy in the final CSS than using custom classes, perhaps with mixins to do standard flex or positioning patterns. So the resulting CSS file is typically relatively small and kept small by the dead code elimination. You can ship the entire CSS file to any page or on the initial page load for a SPA and not worry about code splitting your CSS, which can be troublesome in some builds.
Most children happily run around all day and rarely develop any issues. Adults have an unfortunate habit of becoming quite sedentary, losing any conditioning they had and then going out and running distances their body isn't prepared for. Then people will blame their shoes or even the activity itself when the most significant factor is doing too much too soon.
This interview with Daniel Lieberman[1], an evolutionary biologist out of Harvard, is a good read about the misconceptions associated with human activity and what studies of our historical behaviour can tell us about what is and isn't important in staying active.
https://news.harvard.edu/gazette/story/2021/01/daniel-lieber...
I see the benefit of it as a convenient breakfast or lunch. I like food too much to replace all my meals with it.
We spent so much time working on features and workflows to interact with clients rather than building the platform for our actual users, the valuers. We could have picked any CRM off the shelf, adopted its way of working, and saved ourselves a lot of time. There is no scenario in which the CRM subscription would have exceeded the cost of the developer's time to produce the cobbled-together half-baked solution we ended up with.
https://krausest.github.io/js-framework-benchmark/2023/table...
Those songs, along with Sgt. Peppers, Abbey Road and the few other albums that fit in our CD case are ingrained in my memories from that time. We'd rotate stuff in and out from year to year, but Bacharach and The Beatles always stayed in.
- Templating languages have been around for years, and for many, they feel like the right way to write markup. If someone has used Handlebars in the past, the templating constructs feel familiar. There is also the idea of keeping logic out of your views with the restricted feature set of your templating language. Finally, conditional logic is simply easier in a templating language vs JSX. This will be true until we get pattern matching or the do expression, ternaries, and boolean expressions are clunky. Solid added constructs for conditions and looping to JSX, mainly for performance, but it's much more ergonomic.
- People like the SFC pattern precisely because everything is separate. Your logic is separate from your markup, which is separate from your styling. For me, it feels like a throwback to the times of MVC when it was good and proper to separate your concerns that way. Some reject React out of hand because "there's no default solution for styling".
- The composition API in Vue 3 and Svelte's stores provide the same abstraction potential as hooks. Their reactive primitives aren't tied to the component lifecycle, which is a really nice benefit. It avoids a lot of the context performance pain that people can end up in.
Overall, I'm not really sold on SFCs. They inherently limit you to one component per file, a tradeoff I don't like. There are also the type and IDE support issues which will always be an uphill battle. Template languages are at least better than lashing everything in template strings which is becoming a thing now.