HN user

faleidel

66 karma
Posts5
Comments34
View on HN

Angular is using rxJs which is a reactive programming framework, but I think it was an error to do so.

The angular project I am working on is now 5 years old and the parts of the application that are the least understood are the ones with more rxJs in it. We even have custom rxJs operators that nobody understand anymore...

The way we do things now is to transform everything we can into promises because it's more easy to work with.

With promises you have a few functions with which you can do everything. With rxJs you have dozens of function with specific use cases and most of them looks alike. It's too easy to not take the right one and new peoples in the project needs to learn a lot of things to understand the codebase.

I was interviewing some angular devs aand asked the question: what is the difference between a promise and an observable and 80% of the time the answer was "for observable you need to sunscribe to get the result"). That shows a clear lack of understand of rxJs.

Anybody had a better experience with angular and rxJs?

The Stack Monoid 6 years ago

Search for "monoid category" on google. A monoid is a mathematical object in cathegory theory.

While discoverability can be better with GUI's I find that googling things is always better for CLI tools. Most of my CLI search have a one or two lines of bash I can simply copy paste while solutions for GUI programms often involves lot's of screenshots of dropdowns to open and if the look of the application changed or the element's in the dropdown's are not the same it can be hard to follow.

Taking not's of how to do things or creating shorcuts will also always be better with CLI's since manipulation text is easy and always supported.

For me a relationship is a way to have support in your life.

After a break up, all the support a person has given you is still there. The effect of that person helping you in your life should have lasting inpact on you. It's a strange way to put it but see it as a tool. When you lose a tool nothing that was build with it will crumble. The house will stay up even if the hammer break.

We should do a web-to-mardown thing since so much websites are unreadable.

The funny thing is that chrome for cellphone already has something like that with the "make this website mobile friebdly".

Anyway, nice project!

I tried to add 1 to the first byte of a file, 2 to the second, 3 to the third... and see how it effect the compression rate.

On a small text file that could normally be compressed by 71% the modified file only got 16%.