Viewing profile — zanethomas
zanethomas
HN member- Joined
- Thu, Sep 25, 2014, 5:39 PM UTC
- HN karma
- 469
- Public activity
- 281 items
- HN profile
- View on Hacker News ↗
About zanethomas
Recent public activity
-
comment
Comment #41815685
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.
-
comment
Comment #41814994
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 …
-
comment
Comment #41814424
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, wit…
-
comment
Comment #41813865
Does it compile something like this into a c++ class? makeThing(options, usethistoo) { let foo = options.foo; let thistoo = usethistoo; return { functions... } }
-
comment
Comment #41812045
:) 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 y…
-
comment
Comment #41810158
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.
-
comment
Comment #41805366
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 optim…
-
comment
Comment #41804801
I know, right? Fortunately we can still aren't forced to use all the 'enhancements'.
-
comment
Comment #41804771
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…
-
comment
Comment #41784189
The web became trashed over a decade ago.
-
comment
Comment #41784187
The web became trashed over a decade ago.
-
comment
Comment #41105017
Because they chose it as a career and not because they love it?
-
comment
Comment #38509513
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 categ…
-
comment
Comment #38509403
Isn't that Google's original algorithm?
-
comment
Comment #38298814
Don't use it, don't care.
-
comment
Comment #37627854
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, w…
-
comment
Comment #36316918
is the code on github? if not i'm not going to touch it :)
-
comment
Comment #36259773
strange that a constitutional amendment was required to ban alcohol, but none was required for other drugs
-
comment
Comment #35520566
Martial artists train to 'fight' within a constraining set of rules. In a real fight there are no rules.
-
comment
Comment #35507008
Most martial arts are worthless in a real street fight.
-
comment
Comment #35253559
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…
-
comment
Comment #35253449
I've only briefly looked at wasm and haven't used it at all so I can't recommend anything.
-
comment
Comment #35252861
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…
-
comment
Comment #35239319
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 …
-
comment
Comment #35239164
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 ) I spent a lot of …