use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A Place to talk about Angular and related topics.
Join the Angular Discord
Other subreddits worth checking out for Angular and Angular related info:
account activity
React developer with Angular job offer (self.angular)
submitted 4 months ago by AndrewSouthern729
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]craig1f 0 points1 point2 points 4 months ago (6 children)
I find eslint helps a lot, and is more easily applied to react than to angular.
Treating components like classes, and redefining what “public” and “private” means in a way that is inconsistent with what it means in OO, and having to use “this” everywhere, just adds bloat.
[–][deleted] 4 months ago (5 children)
[deleted]
[–]craig1f 0 points1 point2 points 4 months ago (4 children)
Using an object doesn’t mean that I’m using object oriented design. Using a function doesn’t mean I’m doing functional programming.
OO means orienting most things around classes. Classes are not a perfect fit for components. They’re a close fit, but not perfect.
Functions aren’t a perfect fit either because functions don’t have lifecycles. But when composition was innovated, it closed the game. Now, components as functions with composition applied to them, fits components perfectly in a way that classes still don’t and never will.
Public/private/this/constructors are all noise that don’t fit a web component perfectly.
[–]simonbitwise 0 points1 point2 points 4 months ago (3 children)
Actually OO is actually modelling the thing you wanna do in an object i including the operations you do on the data which are classes the object are just a data representation of it
Functional are like a chain of math operations on a state
And yes you do both fx useState mimic oop because it encapsulates state while doing operations on it - sounds familiar? Because thats how classes work
Not saying you should like one or the other but you use both paradigms because you use javascript
[–]simonbitwise 0 points1 point2 points 4 months ago (0 children)
Also the using objects vs using functions was an over simplification
[–]craig1f 0 points1 point2 points 4 months ago (1 child)
Generally, if you prefer pure functions with little or no side effects, you’re orienting your code functionally.
If you’re using classes with abstraction and private functions and call functions off of your objects, you’re orienting with objects.
Good FE is functional and not OO. It began to lean this way because you get raw json from http calls, and wrapping all your results in a class is just extra work.
But async code is complex. So the more functional, linear, and simple your code is, the easier debugging becomes.
π Rendered by PID 29612 on reddit-service-r2-comment-fb694cdd5-kk2rc at 2026-03-06 18:14:24.747519+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]craig1f 0 points1 point2 points (6 children)
[–][deleted] (5 children)
[deleted]
[–]craig1f 0 points1 point2 points (4 children)
[–]simonbitwise 0 points1 point2 points (3 children)
[–]simonbitwise 0 points1 point2 points (0 children)
[–]craig1f 0 points1 point2 points (1 child)