Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
epidemian
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
epidemian
5y ago
And also because it's not the only variable at play. Considering the variable "protection against the elements", one of the groups have cars as protection, while other have mere shoes or bikes. So different variables can be c
92.
▲
by
epidemian
5y ago
> Without those imports, how will people reading the code find the definitions? How will they track down the source code for all the methods being called? I think in dynamic languages like Ruby and Python, there are two very different ca
93.
▲
by
epidemian
5y ago
> Subways, trams and buses will also kill them, that's just as dangerous. Do you have any source for this? AFAIK it's not true. Trams and subways specifically kill way less people than cars, even though in many places they tran
94.
▲
by
epidemian
5y ago
I think this is missing the point of the article. Yes, you can implement a faster Python version, but notice also: * This faster version is reading all the file into memory (except comment lines). The article mentions the data being 150MB,
95.
▲
by
epidemian
5y ago
That's exactly the feeling that has most weighed down on me doing fully remote work: lack of connection. And i mean with people. Doing software, i find it easy to feel somewhat "connected" to the work i'm doing because o
96.
▲
by
epidemian
5y ago
> why offering for free what others have the right to monetize should be considered okay. Because having the possibility to monetize something doesn't make it inherently right to do so. People have monetized things that we would now
97.
▲
by
epidemian
5y ago
> But if the answer is "no", I cannot see how that justifies you getting a copy without paying. Where else in life is that a valid option? "I'd love to have a snickers bar, but I don't want to pay a dollar for it
98.
▲
by
epidemian
5y ago
Linking to 5 tvtropes pages —5 possibly-very-deep rabbit holes— on a generally nonworking day? Truly diabolic :D
99.
▲
by
epidemian
5y ago
I understood that he's been doing more clickbaity titles for the past year or two, but maybe i misunderstood. For the first video about the wind powered vehicle, yes i agree. It was more of a story and spectacle than any actual informa
100.
▲
by
epidemian
5y ago
Have you also found other videos by the author to be "10 minutes of tiddly little bits of information"? I think Veritasium makes some of the most valuable and informative videos out there. Definitely not the kind of channel that i
101.
▲
by
epidemian
5y ago
My guess is that you didn't try @skrishnamurthi suggestion: > Did you try the `sin(pi / 6)` example? You'll find that Pyret produces a rather interesting result that is also instructive. The result of this doesn't fee
102.
▲
by
epidemian
5y ago
I'm not sure if this comment was troll bait; i'm going to reply as if it weren't. > if they want to be xenophobic, what's the problem? One of the problems is that even if the majority of people within a country are xe
103.
▲
by
epidemian
5y ago
> Interestingly, Python does the same thing as JS in this case, even though it is typically quite strongly typed. [...] > Python outputs 0, it doesn't complain like the other two. yep, this is one of those Python weird bits. in P
104.
▲
by
epidemian
5y ago
you're right in both points technically, but if that means that somehow these things don't make JS "weird" for people to learn/program, then i disagree > that's a floating point problem. Plenty of languages
105.
▲
by
epidemian
5y ago
there's also this browser extension to always do that with reddit links, being logged in or not: https://addons.mozilla.org/en-US/firefox/addon/old-reddit-re...
106.
▲
by
epidemian
5y ago
JS have been heavily optimized by browser vendors, fueled by the intense competition on the browser space, and the huge resources invested by companies like Google. IIRC Firefox 3 was the first browser to have what we would call a modern JS
107.
▲
by
epidemian
6y ago
I wish things worked worked like that. That users could actually tell you exactly what would make their lives easier. Even more: that they would go ahead and implement those things themselves! Good software design encompasses listening to a
108.
▲
by
epidemian
6y ago
conversely, a screen recording does not allow for easy maintenance as this plugin does with its tours.
109.
▲
by
epidemian
6y ago
on one hand i agree with what you're saying. we humans have done terrible stuff like wars, genocides, famines, destruction of ecosystems, extinction of entire species, etc. and that's only the things we did more or less deliberate
110.
▲
by
epidemian
6y ago
There's an `import` statement with its custom syntax, which yes, does not allow anything else than a static string literal on the `from` part. But there's also an import() function, which is, well, just a function, so you can pass
111.
▲
by
epidemian
6y ago
I'm not entirely sure since i've never done this, but i think you can use the dynamic import() function[1] and await all the import promises: const plugins = await Promise.all(pluginModules.map(p => import(p))) [1] http
112.
▲
by
epidemian
6y ago
Ah, thanks for the elaborate answer. I think i see your point better now, and yes, it's definitely a more nuanced topic than just "is this OK or not?" I guess my personal gripe with most arguments against freedom of sexual or
113.
▲
by
epidemian
6y ago
> The big question that this viewpoint misses is what to do with fears that certain things "turn people gay" I think "the big question" some people still have is whether being gay is perfectly fine or not. If it is, t
114.
▲
by
epidemian
6y ago
With large codebases maintained by many people, sometimes it's difficult to "just" do things like that. It's a bit weird to think that no one within that large group of professional developers hasn't thought of doin
115.
▲
by
epidemian
6y ago
And damage does not scale linearly. I'd much rather have 50 200g rocks falling on my head than a single 10kg rock :)
116.
▲
by
epidemian
6y ago
I agree with you, but i dind't see the text you're quoting on the article. Was the article changed?
117.
▲
by
epidemian
6y ago
There's this talk, The Sould of Erlang and Elixir, that opened my eyes to what makes this platform great: https://youtu.be/JvBT4XBdoUE It's not so much about what Erlang, as a language, "offers that Go does n
118.
▲
by
epidemian
6y ago
Though i agree with with your general statement, i think the 1/10th the size figure is a bit disingenuous. At least the cases where i've gone from the unnecessary OO style to a simpler function/procedure based solution (in JS
119.
▲
by
epidemian
6y ago
Why do you consider Ruby to be inherently slow? I don't see why that would be the case. In fact, the performance improvements during the 2.x era seem to indicate the contrary: that Ruby can be faster.
120.
▲
by
epidemian
6y ago
Yeah, but the thing is that it's just unnecessary. isNaN() has been in the language forever. And in case you really need Number.isNaN() (because it's weird for isNaN('foo') to be true), it's been there for quite a l
More ›