Message from JavaScript discussions

November 2020

β€” Too many entry points will weaken the fortress

β€” 

It is a filter function where it accepts
valueInArray to compare
Operand - how to compare // ==, <, > etc
Value to compare with.

β€” So you do
[{a: 2}, {a: 3}, {a:4}].filter('a', 'gt', 3);
the return is: [{a:4}]

β€” Don't over-engineer things, or you'll fall into random trap🀀

β€” This can then be used for much complex objects

β€” That example is way too synthetic

β€” See you fixed min-max issue, good progress🀀

β€” I don't think it is over engineering... cos I will be using this function in so many places. The function is about 30 lines of code with the switch statement I showed above.
I cannot be writing it manually everywhere the whole thing
That's why I separated it into a function

Message permanent page

β€” I fixed a lot of things.

β€” That wasn't so important except for manual analysis.

β€” Everyone is using fancy js and then there is me that have to write shitty js because it have to work on ie11

Message permanent page

β€” Sometimes i wonder wat you guys are doing there.. coding or watching youtube.. second i bet