Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
imagist
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
331.
▲
by
imagist
10y ago
It's fairly easy to create a div which behaves the same way as a HTML input field, and there are other ways. Ultimately I think you'd have to not fire key events, period.
332.
▲
by
imagist
10y ago
> npm verifies the SSL cert on its connection to the registry. pip does the same thing. Neither verifies signatures on the packages, or anything else. The top result from Google: https://pypi.python.org/security > Bot
333.
▲
by
imagist
10y ago
JavaScript is missing some fundamental cryptographic primitives that make it impossible to write secure software with JS, most notably it lacks any cryptographically secure random number generator. Additionally, package installs are insecur
334.
▲
by
imagist
10y ago
More to the point, outlawing burglary works and outlawing drugs doesn't, de facto. The "why" is interesting academically, but hardly matters from a policy perspective.
335.
▲
by
imagist
10y ago
> None of this is different in any other language, including C. Really? Because NPM is the only dependency system I know of that doesn't verify packages in any way. > If you run a C app that uses outside libraries, or a Python a
336.
▲
by
imagist
10y ago
> 1. Hitting refresh doesn't break everything. It resets your current state to the default. I default to the url combined with locally stored state, so you will lose text in an input field, but not much else. Really? 1. Go to your w
337.
▲
by
imagist
10y ago
It sounds like a poor design. Webpages don't work offline. All the user has to do to break everything is hit "refresh". What your business users wanted was an app, and you gave them a webpage instead. I also don't unders
338.
▲
by
imagist
10y ago
> I phrased it that way to be polite, Unless you were just outright lying, not having ever deployed Node in production isn't just being polite, it's literally admitting you have no practical knowledge of the technology you'
339.
▲
by
imagist
10y ago
> In my experience, having to write the same code twice in two different languages is a hell of a lot more work both from a creation and maintenance perspective than just writing it once. I haven't really had to deal with many of th
340.
▲
by
imagist
10y ago
> I'm guessing you've never written a universal/isomorphic single-page application? You guessed wrong. > If you try to write one without Node.js, you're going to be writing a lot of the same code twice - once in Ja
341.
▲
by
imagist
10y ago
I'd argue that this points to a poor design. If something is static enough to be crawled by a search engine, then it doesn't make sense to be generating it dynamically every time on the client side. It's static, generate it s
342.
▲
by
imagist
10y ago
> I am not really familiar with how to deploy Node in production, having never done so, Maybe don't form uneducated opinions on things you don't have any experience with, then.
343.
▲
by
imagist
10y ago
To add to my other comment: the technical criticisms of Node have already been stated and were widely known. So if you're going to argue that using Node in a server environment is a technically sound choice, it's up to you now to
344.
▲
by
imagist
10y ago
sigh I'm afraid to hear your answer, but I'm going to ask anyway: what would compel you to output the same template on both the client and server sides?
345.
▲
by
imagist
10y ago
Again, why not just stick to the technical merits here? Why accuse Node critics of trend-chasing? I'm not a trend-chaser. Python has been around since 1991 and is my language of choice for most things. I like Elixir, but I wouldn'
346.
▲
by
imagist
10y ago
> he biggest advantage of Node.js is that you can reuse the same code on the client and server, and thus it's ideal for creating universal single-page web apps. Being able to reuse the same code on the client and server is a massive
347.
▲
by
imagist
10y ago
> If you have production-ready actor-model libraries for all the random things I might want to connect to, great, but I'm not currently aware of such things existing. If you have production-ready event loop libraries for all the ran
348.
▲
by
imagist
10y ago
> The hyperbole in every criticism of Node must be there for a reason. I think it is more a reflection on the state of mind of the critic rather than the language. "It's telling that none of the posts defending Node.js are talk
349.
▲
by
imagist
10y ago
It lacks a coherent type system, its threading model is awful, and its security is fundamentally broken. Your move.
350.
▲
by
imagist
10y ago
Global event loops are fundamentally a bad abstraction for a parallel (not just concurrent) system. It makes sense to leverage existing mental models in a lot of cases, but when you're moving to a new platform, you have to learn some n
351.
▲
by
imagist
10y ago
> A single, standard event loop that literally every library in the ecosystem uses so you don't have to worry about it. Using an event loop with all the other threading models available out there is like bringing a knife to a gunfig
352.
▲
by
imagist
10y ago
Passport JS is horrible. Sure it's easy to use, but it's not secure, which is kind of the entire point. There are other libraries that are interesting, but that's more a function of necessity than of it being a good thing--pe
353.
▲
by
imagist
10y ago
No, a technical counterargument could be valid if Node had any technical merit. I'm claiming that no valid technical counterargument exists. If you disagree, it should be very easy for you to present a valid technical counterargument
354.
▲
by
imagist
10y ago
It's telling that none of the posts defending Node.js are talking about it's technical merits. They're all saying: 1. Attacks on people--you're being too negative, you're saying this to feel superior. 2. Choosing No
355.
▲
by
imagist
13y ago
Just go for the hug; why do you want to create distance? Also, why would guys be any different?
356.
▲
by
imagist
13y ago
This sounds a lot like the co-operative model.
357.
▲
by
imagist
13y ago
Everybody is different. I tried a lot of different workout routines and while I would enjoy and make quick gains from each one, I would eventually stop making gains and get bored, and stop. For years I thought that if I could motivate mysel