Props design introduced is a major regression to this framework #4720
Replies: 3 comments
-
The architects introducing react constructs and javascript one liner whiz bang statements into these elite frameworks need to wake up
yes NgRX imposes a boiler plate JavaScript has its value but requires sensitive containment
the classes versus creators effort is a case in point D3.js is another that successfully implemented like javascript under the hood but contained it away from the developer REACT is not a framework to follow its as close to javascript as any other framework can get. These architectural features have already polluted elite frameworks creating endless issues and usage The architects who oversee these architectural decisions better get a clear handle on impact needs to wake up to what they are releasing its crippling what was originally ELITE Props was clearly a short cut and needs to be backed out someone has to see this normal NgRX development is now 75% ballooned effort to chasing and trying to synchronize javascript object properties well hey the react developer is comfortable doing all of that its their wheelhouse chasing after and managing arbitrary properties plopped onto objects sorry they can have it please wake up to this someone and bring NgRX back to what it was |
Beta Was this translation helpful? Give feedback.
-
I expect some flames by the pundits who Im very sorry have not impressed me take this construct for example there are better water tight ways to implement something as opposed to
but this construct has react written all over it then one may say how to fix? look at the original design of the Action it was released then the react developers had to shortcut the hell out of NgRX to accomodate the react community because of their habits to javascript and lack of object oriented design which are in fact unbreakable please refactor Props out of NgRX and secure the integrity of state properties and action properties appropriately NgRX needs a new action construct I recommend rolling back to the original one this sabotage (short cuts, lets make it better, lets integrate react) is now occurring in angular now too |
Beta Was this translation helpful? Give feedback.
-
Javascript is the wild wild west of the tech field react/javascript developers will choose a function or an object with plopped properties on it instead of a class the original actions construct for NgRX was class based and it was water tight even to the IDE refactoring algorithm I have seen the one liners react and javascript can accomplish great but in the end when this KIND of mentality finds its way into elite frameworks it cancels out success I am unable to get the success I previously have had with NgRX (released servers and apps publicly with ease and high velocity) due to this impact. The amount of time spent haggling and re-working code to accomodate is staggering. it wont take much to repair, unless the current implementation has grown so far & deep which it always happens to a refactor rightfully should be done by the hands of an experienced object oriented specialist |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Which @ngrx/* package(s) are the source of the bug?
effects, store, data
Minimal reproduction of the bug/regression with instructions
Whoever introduced Props into NgRX was clearly a react developer
which is in fact javascript developer
which is in fact a language unfit for commercial development
unless its used appropriately for object oriented design principles
JavaScript fails on all fronts
short cuts, one liner whiz bang javascript statements
compounded into one liners with 2-3 dependent things on the one line
compounded into multiple lines of short cuts and unmanageable lines of code all interdependent
dangerous Objects with arbitrary properties plopped onto them used at will
Promises cluttering up the language flow inducing async chaos pinning entire frameworks
async/await language flow chaos (observables are the norm and standard)
this list can go on
When i saw Props introduced into NgRX I knew this was trouble, they have a react developer who only knows javascript short cut habits now managing this beautiful framework.
PROBLEM
actions design is a disaster with zero to little forethought
now google AI search has a sizable blip on how to keep your actions properties in sync with state properties
https://www.google.com/search?q=how+to+synchronize+ngrx+state+key+with+action+props+angular&sca_esv=1c9383e2ef8f1e96&source=hp&ei=TG_PZ8uCF86Cm9cP--3z4Q0&iflsig=ACkRmUkAAAAAZ899XDL2bBGV3qiNnio7IwjjmMr94VFd&oq=how+to+synchronize+ngrx+state+key+with+action+props&gs_lp=Egdnd3Mtd2l6IjNob3cgdG8gc3luY2hyb25pemUgbmdyeCBzdGF0ZSBrZXkgd2l0aCBhY3Rpb24gcHJvcHMqAggBMgUQIRigATIFECEYoAEyBRAhGKABMgUQIRifBUiEcFAAWKtacAB4AJABApgB6QGgAewxqgEHMTguMzIuMbgBA8gBAPgBAZgCMaACtTDCAhEQLhiABBixAxjRAxiDARjHAcICDhAuGIAEGLEDGIMBGIoFwgILEAAYgAQYsQMYgwHCAg4QLhiABBixAxjRAxjHAcICCxAuGIAEGNEDGMcBwgIREC4YgAQYsQMY0QMYxwEYigXCAggQABiABBixA8ICBRAuGIAEwgIFEAAYgATCAgoQABiABBhGGPsBwgILEC4YgAQYsQMY1ALCAggQLhiABBjUAsICCBAuGIAEGLEDwgILEC4YgAQYsQMYgwHCAgUQABjvBcICCBAAGIAEGKIEwgIFECEYqwLCAggQABiiBBiJBZgDAJIHBzE2LjMyLjGgB53GAg&sclient=gws-wiz
this is as bad as it gets
entire codebases whacked and impacted
chasing after that single property
this did not exist with the original NgRX release
its a severe oversight and major regression
massive amounts of time are now spent chasing properties for sizable codebases to get them in SYNC because NgRX state mgt is failing now from this lapse in integrity
Props is bad
its javascript
it needs to be removed from this beautiful framework immediately
and if the architects cannot see that then all is lost
open source doesnt have to be like this
and when javascripters get their hands on things they begin to come apart
those habits are extremely difficult to break
Expected behavior
there should be zero effort to synchronize anything especially properties on state
this design couples the state with the action and its catastrophic
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
since version 7
Other information
re-factor
re-design
re-architect
actions
and get Props out of this framework
and reconsider the original action design that does NOT require the widespread synchronization of state properties and action properties
I would be willing to submit a PR to fix this issue
Beta Was this translation helpful? Give feedback.
All reactions