-13 karma · joined Mar 4, 2016 (10y ago) · 159 submissions
You can downvote me as much as you can but you will still not be able to escape the truth.
The most interesting projects are the ones that can fit into a gist, so check them out: http://gist.github.com/plugnburn/
comment 10y ago · link · parent
I'm not against new concepts. Client-side rendering is awesome, reactivity is awesome. But I'm against all that bloatware. If a new concept can't be implemented without bloatware (hint: it can), we don't really need it.
But these things can and should be done in a different way. For example, all my JS stack (Z5 + DaBi) targets ES5 and is under 4 KB altogether. Yet it provides:
- DOM manipulation and auto-polyfilling some DOM essentials (only for the stuff that's really uncomfortable to do with native APIs - Q.js);
- reactive in-memory storage (with an ability to easily populate from external objects or remote requests - Zen.js);
- easy data-to-DOM and DOM-to-data binding (DaBi library);
- ability to easily build DOM and CSS styles from JS native constructs (XT.js and XS.js - never go through escaping hell again);
- client-side routing (R.js).
And while I agree that React/Angular are the bloatware (even jQuery is), I disagree that server-side rendering is any better and that throwing in another bloatware like ClojureScript would solve this issue. Like I had said in my article about client-side development (http://clientside.surge.sh/), go native or go home.
comment 10y ago · link · parent
Edit to answer "how is it invalid": is this not enough? http://validator.w3.org/check?uri=http%3A%2F%2Fnews.ycombina...
comment 10y ago · link · parent
git clone https://[repo]/[module].git node_modules/[module]
...and ability to provide dependency resolution along with custom runscripts?Yes, we can. Not a rocket science. How many paranoid freaks will actually switch to it - that is the question.
comment 10y ago · link · parent
Besides Chinese origin of this CA, haven't found any caveats so far.
Free is better than cheap (at least in a way you haven't to disclose any of your real data).
7.
Client-side code must remain client-side(clientside.surge.sh ↗)
3 points · by plugnburn · 10y ago · discuss
comment 10y ago · link · parent
Even with such a strict check of the padding character length (with an exception) and a period by default it's a four-liner at most.
leftPad = (str, len, pd = '.') => {
if(pd.length !== 1) throw 'Invalid input'
else return Array(len > str.length ? 1+len-str.length : 0).join(pd) + str
}comment 10y ago · link · parent
Why does someone has more right than me to decide what's offensive, smartass or spam? Either leave that to the administration, or give that to everyone.
> The problem with downvote for everyone, including sock puppet accounts, is it becomes Reddit: "I disagree, have a downvote"
YMMV but I'm experiencing absolutely the same here.
Btw, when I agree, I upvote. Why can't I downvote when I disagree?
comment 10y ago · link · parent
It seems that in order to "earn" that "ability" one has to praise Lisp, Rust and Haskell and publicly hate JS. Isn't that mass conciousness manipulation?
The selected few or a crowd thinking the same thought - what's the actual difference? The only difference is that in the second case all fresh and independent ideas get downvoted much faster.
Any karma-based resource suffers from this plague.
Ochlocracy at its worst.
comment 10y ago · link · parent
Why can't I use the downvote button? It either must be available to everyone, or not available at all.
And if you, HN founders, are afraid that newcomers can be smarter than you, then remove the ability to downvote altogether. Whoever dislikes a post, can just ignore it.
P.S. The entire user rating system here contradicts the resource name. Hackers do not believe in karma.
comment 10y ago · link · parent
comment 10y ago · link · parent
When the developers of such a serious library as React start to depend on a third-party one-function module made by some Dick-from-a-mountain (a russian idiom that means a random person who did nothing significant but tries to show out in all possible means), that means React developers are even more to blame than that Dick-from-a-mountain himself.
If you make any really popular piece of software, you absolutely must have a failover plan. No excuses for not having it.
But what's even sadder is that this issue had spawned a new wave of pseudo-elitist attacks on the entire JS dev community. Calm down guys, things like that could have happened for any language that has a widely-used centralized package system (Perl's CPAN, Python's pip, Ruby's gems etc).
Let me repeat that again: languages don't make software bad, people do. Just don't let such Dicks-from-a-mountain rule over your own modules with elementary stuff like leftpad, and you'll be safe.