Echo JS 0.11.0


chris-l comments

chris-l 551 days ago. link 1 point
I kind of agree, but perhaps should be seen the opposite way.

So, instead of thinking about libui (or something similar) for only simple UI apps and electron for something more advanced, try to think about it more like using libui as default and only electron if something more complex is needed.

The way I see it, is that the difference between libui and electron, is that it is somehow the same as nativscript and phonegap, and offering a native experience can be considered a plus.
chris-l 592 days ago. link 2 points
The advises in this article are good, but the author is wrong in the sense that he actually is not really going against the rule of "premature optimizations".

Donald Knuth said: "We should forget about SMALL EFFICIENCIES, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%."
If the speed gains are as huge as a magnitude of 10x or more, then they don't really count as "small efficiencies".

I think Eric S Raymond explains it better here:

"From tortured code to incomprehensible data layouts, the results of obsessing about speed or memory or disk usage at the expense of transparency and simplicity are everywhere."

So, the rule is more about preventing writing hackish, non-KISS code that is faster than the simple, obvious code (code that is KISS), or at least until you realize there is a bottleneck you have to fix. Keep in mind that on languages like C, you can optimize writing code that is completely non-obvious, using knowledge of how the compiler works, etc.

So the author of this article is NOT giving a bad advice about writing hackish JavaScript code, but instead is about writing the code following good practices! Which is a very good advice!
chris-l 597 days ago. link 2 points
That Ted Cruz link still on the rss feed. Echojs is still advertising that site right now.
chris-l 598 days ago. link 2 points
Hey! I want to report that, at least at this moment, the rss feed is still showing that ted cruz spam link, even if the article was already deleted!
chris-l 599 days ago. link 4 points
The idea of a "report spam" link sounds interesting.
Perhaps, if the account that posted the alleged spam article was recently created and the article was reported by at least certain number of users (4 users or something), the article could be automatically hidden from view, until an admin manually approves it, or delete it. But instead, if the person has certain reputation, then, it will only be a flag for the admin to check, and will not be automatically hidden.

The idea would be to have the ability to hide the spam articles as fast as possible, but at the same time, prevent the possible abuse of the "report spam" link, to hide articles that some people could just don't like.

(That last part may sound weird since echojs is not a politics site, but remember how passionate some people get about things like the whole semicolons debate!)
chris-l 605 days ago. link 3 points
The rules of EchoJS say:

* No link to summaries, only link to original content
* No URL shortened links, only real links to pages

So, posting a link to a tweet that links to an article is wrong, the right thing is to directly link the article.
chris-l 607 days ago. link 3 points
Good for him! God bless them

...but is not JavaScript related content.