Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
plugnburn
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
1.
▲
by
plugnburn
10y ago
Except that most pastebins would at least make the text more readable than it is there. Especially on mobiles. Markdown with Strapdown inclusion, a pastebin, a CMS, bare Bootstrap... anything would be more readable than this.
2.
▲
by
plugnburn
10y ago
Speaking of React/Angular - they are obsessed because they never used 10-years-old computers and slow Internet connection and don't actually know how users feel when their weak machines are thrown all that stuff at. I'm not a
3.
▲
by
plugnburn
10y ago
Looked. So what? There's a difference between "ugly" and "invalid". Both cases are bad but the first one has much more impact on end users. Edit to answer "how is it invalid": is this not enough? http:&#x
4.
▲
by
plugnburn
10y ago
A wrapper over something like this... 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. Ho
5.
▲
by
plugnburn
10y ago
Why not use location.hash and URL shortener? That way no upload is needed.
6.
▲
by
plugnburn
10y ago
I personally had used WoSign several times: https://buy.wosign.com/free/ 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 disclo
7.
▲
Client-side code must remain client-side
(clientside.surge.sh)
3 points
by
plugnburn
10y ago
|
0 comments
8.
▲
by
plugnburn
10y ago
In JS we can rely on the Date.getDay prototype. Here's the ES6 flavour: weekDay = (dateObj) => ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturd
9.
▲
by
plugnburn
10y ago
14 lines in JS? O'rly? 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 !=
10.
▲
by
plugnburn
10y ago
> If something has had enough downvotes to go invisible it's nearly always because offensive, smartass, or spam. Why does someone has more right than me to decide what's offensive, smartass or spam? Either leave that to the adm
11.
▲
by
plugnburn
10y ago
So again, is this Hacker News or Karma-Jerkin-Conformist News? 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
12.
▲
by
plugnburn
10y ago
Upvoted just to keep the thread and go against "elitist" hivemind.
13.
▲
by
plugnburn
10y ago
I honestly think the entire idea of downvoting available only for selected users creates a mass conciousness manipulation tool. When some "authority" decides what's good and what's bad. Why can't I use the downvote
14.
▲
by
plugnburn
10y ago
Actually, there are several immutable FS-over-tinyURL projects. I have created some of them too. A real problem with Twitter is that you can get banned quickly for doing this.
15.
▲
by
plugnburn
10y ago
Why not just use anonymous gists in conjunction with RawGit CDN? Unique IDs, no way to change or delete (since the gists are anonymous), served right out-of-the-box with a proper content type from cdn.rawgit.com.
16.
▲
by
plugnburn
10y ago
See: isPositive = (x) => +x === x && x > 0 In which conditions does it return a wrong value? I haven't found any.
17.
▲
by
plugnburn
10y ago
Sure, because just writing isPositive = (x) => +x === x && x > 0 is boring. Need more requires to require the requires... Keep in mind though that absolutely not all JS programmers are like that. Not everyone wants t
18.
▲
by
plugnburn
10y ago
In Ukraine, Fidobank offers "Shtuka" (Штука, translated as "piece" or in jargon "thousand") debit cards that are attached to MoneXY account that is in turn attached to mobile number only. And since prepaid cell
19.
▲
by
plugnburn
10y ago
I may sound old but one can start with just backing up node_modules/ directory. If third party modules are hosted on GitHub, you can fork them.
20.
▲
by
plugnburn
10y ago
By the way, ES6 syntax (works in modern foxes and chromes): leftpad = (str, len, pd = ' ') => Array(len > str.length ? 1+len-str.length : 0).join(pd) + str WTF are you talking about? Making this into a module?!
21.
▲
by
plugnburn
10y ago
This. Any modern standrards-compliant implementation of JS (following ES5 and especially ES6/ES2015 standard) already has everything that a sane programmer would ever need.
22.
▲
by
plugnburn
10y ago
Have to put a little clarity over my "so sad yet so true". 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
23.
▲
by
plugnburn
10y ago
The advice is simple: Don't rely on third-party stuff you can implement yourself with no significant effort. And for stuff you can't, backup those modules.
24.
▲
by
plugnburn
10y ago
So sad yet so true. We haven't. React developers probably have.
25.
▲
by
plugnburn
10y ago
If you can really see beyond the algorithms, you should understand what I mean. Exploring a "spherical algorithm in the vacuum" begins being useless at some point. One should explore its properties when used in a real environment.
26.
▲
by
plugnburn
10y ago
"Used" is not quite a correct term here. It's the most common high-level runtime, yes. But what about the percent that writes in JS? Not in any of its derivatives like CoffeeScript, TypeScript, LiveScript, ClojureScript, El
27.
▲
by
plugnburn
10y ago
Don't speak for the entire world ("no one"), I personally know two guys that still use Symbian-powered smartphones and don't plan to change them to anything.
28.
▲
by
plugnburn
10y ago
> You literally just suggested using standardized encryption algorithms to protect your OTP key. I suggested using standardized (or non-standardized, but other than OTP) encryption algorithms for an initial key data distribution channel
29.
▲
by
plugnburn
10y ago
So is JS. But like I said, both implementations suck compared to actual coreutils.
30.
▲
by
plugnburn
10y ago
Ah, understood. I think neither of these beats actual coreutils and their support base (still under impression of Termux capabilities...), at least not yet.
More ›