Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Longwelwind
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
Longwelwind
7y ago
In the JS community, it means a library that can run client-side (in the browser) or server-side (in NodeJS).
62.
▲
by
Longwelwind
7y ago
I'm not sure this is the issue you are referencing, but you can use multi-stage Docker image builds to avoid bundling the JDK in the final Docker image: FROM openjdk:jdk AS build COPY . . RUN mvn package FROM openjdk:jre
63.
▲
Show HN: Majority, a quiz game where the majority always wins
(majority.longwelwind.net)
1 points
by
Longwelwind
8y ago
|
0 comments
64.
▲
by
Longwelwind
8y ago
If I have this: <div v-for="item in items"> <span>...</span> </div> The refactoring tools must know that the "items" inside the "v-for" refers to a property of the
65.
▲
by
Longwelwind
8y ago
If your project grows big, you will at some point need to use a state management library like VueX which has similar concepts than Redux, so I'm not sure this argument holds. My biggest problem with Vue is the template syntax. Since JS
66.
▲
by
Longwelwind
8y ago
Your guide is the first thing I open in my browser every time I need to code an algorithm in a hexagonal space. Thanks a lot for the amazing work!
67.
▲
by
Longwelwind
9y ago
Can someone explain to me why someone would choose Redux over something like MobX ? I feel like implements an action for each modification of state (or group of modifications) requires a lot of boilerplate code. In MobX, you treat your data
68.
▲
by
Longwelwind
9y ago
You could argue that: * Bitcoin reached the price of 10k 2 months ago, at the end of November. The Bitcoin has only lost "one month" of its price, for the moment. * There has been a dip in the price of Bitcoin every January for th
69.
▲
by
Longwelwind
9y ago
Yes, of course ! https://jsfiddle.net/0wc0vjw2/1/
70.
▲
by
Longwelwind
9y ago
GP formatted it wrong, you could write the JSX example like this: return ( <ul> {numbers.map((num, i) => ( <li key={i}> {num} </li> ))} </ul> ) Whic
71.
▲
by
Longwelwind
9y ago
During the learning phase of the SVM, you try to find an hyperplane that maximizes the margin. The decision function of an SVM can be written as: f(x) = sign(sum alpha_sv y_sv k(x, sv)) Where sum represents the sum over all support v
72.
▲
by
Longwelwind
9y ago
In the decision function of an SVM, you compute the scalar products of the support vectors (points that are on the margin of your hyperplane, or more precisely, the points that constrain your hyperplane) and your new sample point: x· sv
73.
▲
by
Longwelwind
9y ago
I don't know if you are more familiar with matrix notation phi(x) = [x1, x2, x1² + x2²] phi(x)· phi(y) = [x1, x2, x1² + x2²]*[y1, y2, y1² + y2²] phi(x)· phi(y) = x1 y1 + x2 y2 + (x1² + x2²)(y1² + y²)
74.
▲
by
Longwelwind
9y ago
Machine learning (and more specifically here, supervised learning) is about predicting a specific attribute of a new sample, based on the attributes of the samples that you've acquired. For example, if you have access to the database
75.
▲
by
Longwelwind
10y ago
Typescript with React is necessary for me. I feel like it highly increases my productivity when coding, and it makes it easy to refactor the code. Plus you can do some cool things like Component inheritance. I've never tried Flow, but
76.
▲
by
Longwelwind
10y ago
You can use Rice's theorem[1], which is a generalized version of the Halting problem. I don't believe this proves that programming can't be automated, though. Humans too aren't able to prove completely that what they wri
77.
▲
by
Longwelwind
10y ago
React managed to make HTML "statically typed". If I make a typo in the name of a component or the name of an attribute used in a HTML tag property, Typescript will catch it. Since Vue & Angular uses template strings, TS can&#x
78.
▲
by
Longwelwind
10y ago
I believe it will be: def very_long_function_name( arg_one, arg_two, arg_three, arg_four ): It's consistent and doesn't require spaces so it lets you use tabs to let the reader choose i
79.
▲
by
Longwelwind
10y ago
Maybe it is me, but I feel like mapped types and keyof are terrible features, and using them would be a sign of a bad design/architecture. In general, I don't think using a string that represents a static symbol (such as the name
80.
▲
by
Longwelwind
10y ago
Why not ? I only see advantages for static typing for a small cost of time: you prevent most of Type Error from happening, you get automatic auto-completion, refactoring errors are easier to catch and feel safer. Either way, you need to spe
81.
▲
by
Longwelwind
10y ago
What kind of trade-offs ? Genuinely interested, I know the basics of the torrent protocol, and I don't understand why the torrent protocol wouldn't work for streaming... I mean, you would just need to request the packets in order
82.
▲
by
Longwelwind
10y ago
>Two, wikipedia refers to E(X) and E(Y) as the means, not the expected value. This gets even more confusing because, at the beginning of the Wikipedia article, it used brackets (E[X]), and now it's using parenthesis (E(X)). Is that
83.
▲
by
Longwelwind
10y ago
Thanks, I didn't know that Ember did more than just fetching the value. About time wasted, I feel like in the long run, you gain more time by writing statically analyzable code. If you make a typo in the string, you would have to build
84.
▲
by
Longwelwind
10y ago
Over-reliance on strings is a pattern that I've seen a lot in the Javascript environment. For example: var arr = [{ value: 'a' }, { value: 'a' }, { value: 'b' }, { value: 'b' }]; arr.uniqBy
85.
▲
by
Longwelwind
10y ago
I'm not sure it should be considered as a reason for anything. The most important point of the article, imo, is: If a function is only called from a single place, consider inlining it. You should consider inlining your function,
86.
▲
by
Longwelwind
10y ago
I believe "module" in classic Javascript already corresponds to a "self-contained" Javascript file.
87.
▲
by
Longwelwind
10y ago
I don't know why we want so hard to bring these jobs back (the same way we always try to keep the metallurgic industry in Europe). These jobs are becoming obsolete, and delocalizing to countries with lower labor costs is only a step be
88.
▲
by
Longwelwind
10y ago
Try to work with Javascript's arrays, it's a nightmare. Fun fact: let list = new Array(5); list.forEach(() => { console.log("foo"); }) Will display nothing, if you want to properly initialize an array with a
89.
▲
by
Longwelwind
10y ago
I find it more comfortable to make a GUI using HTML/CSS, but I wish I could use a more modern and more reliable language than Javascript. Is there an equivalent to this but with Python or C# ?
90.
▲
by
Longwelwind
10y ago
>curl -L https://bit.ly/janus-bootstrap | bash I don't know for "curl | bash", but using an URL shortener there doesn't seem like a good idea.
More ›