Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zanethomas
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
zanethomas
2y ago
The difference in performance is negligible for all but the most demanding applications. In which case I would still use factory functions, but just be more careful.
2.
▲
by
zanethomas
2y ago
Fair points. I do use classes exposed by libraries. I don't like it but it beats the alternative. I really like the flexibility of factory functions, that is the main point of the article imo. COM/OLE ... that takes me back to the
3.
▲
by
zanethomas
2y ago
closures can encapsulate state and methods classes are syntactic sugar emulating classes is, imo, exactly the problem using factory functions which create and return an object, with variables passed to and created in the function, handles e
4.
▲
by
zanethomas
2y ago
Does it compile something like this into a c++ class? makeThing(options, usethistoo) { let foo = options.foo; let thistoo = usethistoo; return { functions... } }
5.
▲
by
zanethomas
2y ago
:) I started with 6800 machine language. Then c, smalltalk, scheme and etc. Rather than spend a lot of time and botch a comparison between classes and factory functions I'll link you to an article. He went further, introducing somethin
6.
▲
by
zanethomas
2y ago
I wonder why it seems natural to you? I'm guessing JS wasn't your first language and you didn't learn the power of composition instead of classes.
7.
▲
by
zanethomas
2y ago
Sure, but imo unless one is creating very many objects each with their own set of functions it's not really a significant issue. Sometimes programmers spend way too much time optimizing code which doesn't really need it. In my exp
8.
▲
by
zanethomas
2y ago
I know, right? Fortunately we can still aren't forced to use all the 'enhancements'.
9.
▲
by
zanethomas
2y ago
I don't understand the need for the ever-growing list of "enhancements" to JS. Take Class for example. Class is entirely unnecessary and, essentially, tries to turn JS into a class-oriented language from its core which is obj
10.
▲
by
zanethomas
2y ago
The web became trashed over a decade ago.
11.
▲
by
zanethomas
2y ago
The web became trashed over a decade ago.
12.
▲
by
zanethomas
2y ago
Because they chose it as a career and not because they love it?
13.
▲
by
zanethomas
3y ago
Hmmm, odd. I was under the impression they used cosine similarity based on page content. Once upon a time, based on that 'memory', I created a system to bin domain names into categories using cosine similarity. It worked surprisin
14.
▲
by
zanethomas
3y ago
Isn't that Google's original algorithm?
15.
▲
by
zanethomas
3y ago
Don't use it, don't care.
16.
▲
by
zanethomas
3y ago
I knew a woman who in 1970 was pulled over by the police in Altadena CA. They were particularly aggressive when it came to "hippies" and so she swallowed her entire cargo of LSD, which was, iirc, somewhere in the neighborhood of 2
17.
▲
by
zanethomas
3y ago
is the code on github? if not i'm not going to touch it :)
18.
▲
by
zanethomas
3y ago
strange that a constitutional amendment was required to ban alcohol, but none was required for other drugs
19.
▲
by
zanethomas
3y ago
Martial artists train to 'fight' within a constraining set of rules. In a real fight there are no rules.
20.
▲
by
zanethomas
3y ago
Most martial arts are worthless in a real street fight.
21.
▲
by
zanethomas
3y ago
I would be very unhappy with a suggestion to replace javascript. I like that I can mix functional, object-oriented, and procedural type code where each seems to be the best fit. If something else comes along, gains a lot of traction, and de
22.
▲
by
zanethomas
3y ago
I've only briefly looked at wasm and haven't used it at all so I can't recommend anything.
23.
▲
by
zanethomas
3y ago
I'm quite happy with javascript as it is but I understand you might prefer other languages. I haven't had occasion to use wasm but it seems that it provides the ability to run most (all?) languages in the browser. Here, for exampl
24.
▲
by
zanethomas
3y ago
In the early 90s I was working in downtown Seattle. The manager of the project I was on was married to a product manager at Microsoft. One morning he showed up with a beta copy of VB 3.0. There was a young, brilliant, programmer, James Shie
25.
▲
by
zanethomas
3y ago
This might be a previously unknown bit of NeXT and Windows history. While Windows 3 was in development I was in the next building working on os/2. (not bragging <g>) I spent a lot of time in a lab that had a lot of hardware. One
26.
▲
by
zanethomas
4y ago
Sounds like what you really want is c#.
27.
▲
by
zanethomas
4y ago
Elon seems to fail to recognize that he's well-down the slope Yoel et al were down.
28.
▲
by
zanethomas
4y ago
I'd like to thank everyone for the input received thus far and the future feeback to be received. It is very much appreciated and will be given very careful consideration!
29.
▲
Ask HN: How does an old timer find contract work
81 points
by
zanethomas
4y ago
|
46 comments
30.
▲
by
zanethomas
4y ago
I recently abandoned Apple, went with a frame.work laptop running Ubuntu.
More ›