Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
bitjedi7647y@Froot there was a cyclic dependency in my code and it took me hour to figure out... Because of that data becomes empty "{}"
-
bitjedi7647y@D--M sure its mine but Java makes me more careful by sensible errors. which javascript doesn't.. Although javascript is one of the highly robust language and cool as well.. but at error side it gives me some problem.
-
mundo0349797yI also think it sucks, it lets you do a lot a stupid stuff.
A lot of the es6 features feel like a hack made with duct tape to hide how much js sucks. -
Froot75567y@bitjedi Ah right I think I see what your problem was. I think what you meant is a reference not a dependency. Objects in JS are stored as references so if you assign an object to a new variable it's actually the same object in both variables. Change one and the other changes too. I agree, it sucks, I'd much more prefer if everything was immutable but if you take care how you write you're code it's alright.
Javascript Sucks !!!! Perfect Example of Karma is cyclic dependency in javascript.
undefined