Out of all code debates, imperative vs declarative is as far from a stylistic debate as mathematically possible. They are literally inside-out from each other, and couldn't be more structurally different.
@eyeslasho
When a multiple exceeds 100% its shouldn't be represented as a percentage. It is dramatic and hinders understanding. Just say 6,000 times more.
But holy crap.
@JoshuaDWebster
@growing_daniel
I've stayed in 10+ Airbnbs now in 5+ states, and half of them were dirtier than the dirtiest hotel I've stayed in, despite all of them having cleanliness ratings of 4.5+/5.0. People hesitate to give accurate ratings because hosts are nice.
@OliLondonTV
This will be overturned. But the fact that it passed is an un-American abomination. Having opinions is a sacred, inalienable human right, whether or not it hurts feelings. The people supporting this have the emotional development of toddlers. Severe, volatile fragility.
Mostafa Ezzo is a pilot with Air Canada, flying their 787s.
That's the plane Air Canada flies to Tel Aviv.
They should probably keep him off of that route.
Just to be safe.
@growing_daniel
I'm glad GitHub protected our impressionable minds from the concept of mastery and master versions of things. Could you imagine going back to those cruel days? Luckily, nobody can question this naïve linguistic supremacy when it's in the service of self-righteous desperation.
@TegativeWasEpic
@spectatorindex
Would you rather SpaceX never donated their services, which cost them 100 million? Name a company that has given more.
@cookiebot4521
At least you recognize it as radical. Kids are their parents', first and foremost. It's not up to you to make decisions for them. There are ways of reporting abuse if you suspect it, but even public school can be quite abusive too and fail expensively at its intended purpose.
@dhh
@yukihiro_matz
I've only seen his opinion from people who either 1. Maintain libraries more often than they use libraries, or 2. Have never tried TypeScript for more than a day
@DavidZipper
This truck will hurt fewer pedestrians per mile driven than any other truck. Tesla has the best collision avoidance software out of any company.
@cleantechnica
@elonmusk
Most accidents occur in scenarios in which Autopilot current isn't available, don't they? I would like to see comparisons of just highway driving with and without autopilot
@angular
If anyone is annoyed at this and having a hard time understanding why Angular is exploring fine-grained reactivity other than
#RxJS
, I was in the same boat a few months ago. This article I wrote might help you understand why this is an important
I changed my mind. I still love
#RxJS
, but I also see an important place for signals in
#Angular
. At first I was angry at Angular for not just embracing RxJS more, then
@RyanCarniato
(who probably invented signals) changed my mind.
The frameworks have converged to similar primitives. React has custom hooks, SolidJS has custom signals, and I believe Svelte is working on composable reactivity. So what about Angular and Qwik?
@growing_daniel
I went around with a Japanese guy who had me saying stuff like "koneshiha" instead of konnichiwa and that made a lot of people laugh. It's easy to be a clown as a gaijin in Japan.
@TaraBull808
@elonmusk
This would be bad. What if you want to take a break from seeing someone's posts but don't want to hurt their feelings? Now they'll know you muted them.
It's mind-blowing how disconnected from users these decisions are.
Nobody gets _everything_ right.
@TheOnion
Satire account regains widespread popularity and relives glory days after targeting extremely niche audience that confuses conservatives for national socialists
@JamesEsses
Such a waste of human time, attention, emotion, etc... Could be replaced with 2 much more important lessons:
1. Accept the things about yourself that you cannot change.
2. Do the same for others.
You should learn RxJS for some scenarios, and when you know RxJS, promises are completely redundant.
The RxJS example could have looked like this:
course$ = this.coursesService.loadCourseById(id);
lessons$ = this.coursesService.loadAllCourseLessons(id);
That's it. In reactive
Thank you
@angular
for pushing TS on everyone back in 2016. That was the single best decision you ever made. I was skeptical, but it took only a few minutes to fall in love. It dramatically improved my development experience, as well as that of millions of other developers.
@JoshuaDWebster
@growing_daniel
I once spent 6 hours cleaning an Airbnb that was rated 4.8 in cleanliness by 20+ people. I took this pic of the bedding but every surface in the house was covered in hair.
After that I decided on this rule: hotels for stays < 7 days, Airbnbs for longer stays.
#Angular
developers should still use
#RxJS
. Signals are not good at what RxJS is good at: declarative async logic. The best way to conceptualize this change is like it's detaching the async pipe from templates. It will make using RxJS in Angular very nice.
#Angular
devs: What benefits do you ACTUALLY get from having component classes? I haven't seen any.
Inheritance? Very rare, can just call a function.
Implementing interfaces? I've only seen lifecycle methods, and it's boilerplate and less intellisense than calling hooks
The reason I changed my mind about signals is because RxJS is truly bad at synchronizing states efficiently and ergonomically. But there are other things for which it is currently the _only_ good tool.
Angular supporting developers who don't want to use RxJS feels like worse
The Angular team needs to see evidence that using RxJS in Angular could indeed be a much simpler experience than it has been. They're already making it easier, but it needs to be much easier.
To that end, I'm going to first write an article called RxJS: The Good Parts. After
@lorrgray80
@JossSheldon
@Stigkk
The only thing the Palestinians are owed is the complete annihilation of Hamas and the prevention of any future terrorist government from being formed for eternity.
Mark my words.
In a year or so most new
#Angular
projects will have one of these:
- Angular Query
- Something like Angular Query but in the framework itself
- Heavy use of RxJS
More people should already be using Angular Query!
I don't see a ton of content out there for it
@brandontroberts
RxJS or Angular Query
This has the problem RxJS' switchMap famously solves. Change the route multiple times and requests aren't canceled and results may be out of order.
todo$ = toObservable().pipe(switchMap(...
todo = toSignal(...
@EMundayAu
@dhh
@yukihiro_matz
Nope. Every single person I know who writes high quality JavaScript is using TypeScript now. Personally, have you used TypeScript on a typical project for a week or more?
@isabelleboemeke
Nuclear has a place for a few more years, but solar cost is decreasing 80% per decade. Nothing else will be competitive by 2035. Energy will be practically free because of the reactor in the sky.
If you're an
#Angular
developer
And you need data
And that data requires a parameter that changes
Use switchMap.
1. Avoid bugs by always having latest data
2. Cancel unused requests
3. Structure your code reactively
@Coach_BrettB
The ability to see things from other people's perspectives. It's the key to writing, speaking, negotiating, serving, and educating.
The key to that? The ability to let go of your own life, even if only in imagination and for short periods of time.
The web development industry almost entirely missed the point of Flux and unidirectionality. Most modern React, SolidJS, etc apps are MVC. Which isn't a problem for simple apps. But when features have to be complex, it helps to know the most fundamental lessons of the industry.
@cremieuxrecueil
The first statement was clearly written by somebody who doesn't understand loyalty the way most conservatives do. It is not anti-semitic.
@emanuelmaiberg
@NintendoAmerica
I think we should stop holding AI generators responsible for the stuff people are generating with them. They're already so nerfed
@berserksun
@elonmusk
@ExposingBiden
@MUSCkids
The adults encouraging this are worse than child molesters. History will despise them someday. Every psychologically healthy person today already does. The irreversible damage being doing is tragic.
How it started: An article about the value of
#RxJS
compatibility in frameworks like
#Qwik
, even if they have signals.
How it ended: A rant about
#Angular
's terrible RxJS support. I'm sorry, but I've wanted to say these things for a long time.
@eyeslasho
Nothing could have justified 10/7 and Israel has done more than required by international law to avoid civilian casualties, but the death of Gazan civilians is Hamas' precise aim. It's why they started a war they could not win.
Most Angular devs have no idea how simple RxJS can be. Angular's past integration was most of the challenge. Thinking reactively was the rest. The incredible thing is how many Angular developers love RxJS _despite_ these challenges. That's because it really is valuable.
@jennineak
Be better than this. Recognizing only one side's tragedies is only going to make the conflict worse. There are innocent Jews being physically attacked too.
Avoiding
#RxJS
in
#Angular
to make code easier for junior devs to understand is like avoiding breaking out functions. In the long run, it has the opposite effect. What's easier to understand, imperative spaghetti, or the separation of concerns only possible with reactivity?
This is exactly what I was afraid I'd see when I first heard that the Angular team was decoupling from RxJS. The code on the right is objectively worse, unless you're too lazy to try to understand the super cryptic operators like `takewhile` or `concat`.
Received an excellent PR to migrate from Observable to Signal for
#angulartetris
. 💯 However, I believe some areas should stick with the rxjs implementation. Check out the screenshots comparing both implementations for LogoComponent.
🔗 PR:
The Angular team has a job that I couldn't do. It is very intellectually demanding and requires a very strong computer science foundation.
They should not be held to the same standards as influencers in the community, who in theory specialize in helping the community digest what
I just released
#StateAdapt
1.0.0. It isn't perfect, but I've tested StateAdapt on 30+ projects and think it's good enough. Please give me feedback on the documentation. I will be creating more tutorials soon.
#Angular
#React
#Svelte
#SolidJS
@arankomatsuzaki
I switched to Bing for about 3 queries, after which I realized they must not have integrated it yet, because the results were garbage. I'll try again in a week or a month.
Tried
#Qwik
for 4 hours now. Mostly figured out how to write declarative async code. Amazing things are possible with this library. It's not what I expected. It's very, very similar to React. I wanted RxJS, but it's unnecessary in Qwik, like in React. Articles coming (eventually)
@Aero_Gante
@PeterGleick
Can you show me an example of a tweet that doesn't contain discrimination, from your perspective? It must be difficult to find.
@OliLondonTV
About 1.6% US adults are transgender or "nonbinary".
About 2-8% of transgender people have detransitioned.
If the general population should care about trans, then trans people needs to care about detransitioners. If natural puberty is a threat, puberty blockers are more so.
@housecor
Agree strongly with 2 and 3, but the only difference between
class="bg-red-500"
and
style="..."
is syntax and implementation. In a raw HTML and CSS context, this is bad code. Abstractions as CSS classes bring reusability and semantic representation to static HTML.
@ComicDaveSmith
I think he's wrong about literally all of that, but what he represents is extremely important: The ability to debate these things. Because either we have this debate, or something much worse will happen. There's no progress without the majority of the country being included.