9
ostream
16d

Sorry but who the FUCK designed this piece of crap?

Comments
  • 1
    post the link
  • 1
  • 0
    will look in it aftwr work
  • 2
    I think this is a super specific edge case for saving you 2-3 lines of code in the component class. The other way (or one of the other ways, IDK) of doing it is subscribing to the observable from the class, assigning the result to a prop, then pointing the template to that prop.
  • 0
    i possibly have released that information that you need
  • 0
    it has to be the first rant i made at devrant
  • 1
    @kamen doesn't matter, it's just bad design. Angular is entirely like that.
  • 2
    @kamen this is spot on, Angular senpai is never wrong
  • 3
    In what language would you want to create an alias while performing an assignment?

    The as keyword assigns a variable identity from a dereferenced value in a block scope. If something doesn't have children, nothing would use the alias.

    It's effectively the same expression as found in most sql dialects:
  • 0
  • 1
    I just realized that around 80% of angular hate rant comes from you, nothing wrong with that tho, that’s the point of devRant, I’m just curious why you keep using it?
  • 0
    If anyone wants to see why this syntax and stream-based angular in generally is actually useful and expressive, I feel compelled to post this:
    https://stackblitz.com/edit/...
  • 0
    The reason it doesn't work in the input binding, is that the whole idea of a block scoped alias makes no sense for an input binding.

    I don't understand why people hate on angular if they don't know the basics of the framework...
  • 0
    6?!!! I’m glad the number has gone down lately, we’re making progress.
  • 0
    @eptsousa because it's my job... I kinda like it
  • 0
    @SortOfTested ngrx can be cool. If only it could play nice with Material.
  • 0
    @craig939393 why is it block-scoped? I just want to use my observable alias in my template file, as it's clearer and shouldn't even be in the class file.

    Do you ask the user to UnDeRstAnD thE BasIcS of your program? No of course not, that's why we care about UX. Angular's developer experience is terrible.

    This morning I got a fucking segfault in the CLI.
  • 0
    @ostream
    I thoroughly explained why it's block scope, with concrete examples of every permutation. As is a block scope denotation in every language.

    Languages are not UX. They're discrete math.
  • 0
    And also by the way this is devrant, not devcompliments or devnice
  • 0
    @SortOfTested yeah ok you got a point
  • 0
    @SortOfTested and yet they're tools with a public and an application. You're having the same tunnel vision as an architect for whom buildings are abstract pieces of art, not something people are actually living / working into.

    And also, I don't have any issue with the language itself, Javascript have flaws but I'm at ease with it. You could say React is worst int hat regard with its insistance of doing things in a functional way, but yet everything feels easier and more logical, at least for me. How is that?
Add Comment