Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
trashburger
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
91.
▲
by
trashburger
3y ago
SpiderMonkey is still used in over 2% of the browser market share, and is used in non-Firefox applications too. I'd say it matters.
92.
▲
by
trashburger
3y ago
But it does! Even with the weird packages I have installed (ROCm) and a ton of accept_keywords unmasks, all I have to do is overnight updated twice a month. I haven't touched /etc/portage in months.
93.
▲
by
trashburger
3y ago
I don't quite see it that way. Spacemacs' motto sums it up best: "The best editor isn't Emacs or Vim, it's Emacs and Vim!" Mixing and matching the strengths of both editors results in a much better experience
94.
▲
by
trashburger
3y ago
Inheritance is usually not the solution; composition and delegation is. Unfortunately, the current landscape of popular languages have equated "object programming == inheritance" in people's minds. The fact that these languag
95.
▲
by
trashburger
3y ago
You nailed it. Object programming was never about the low-level details like inheritance; it was always about managing state and sharing behavior (just like function programming!). Object programming looks at things from the perspective of
96.
▲
by
trashburger
3y ago
I remember crawling Freenode as a teenager with nobody to talk to about programming, and discovering ##C. At the time I had a basic idea of programming languages but was still pretty much a beginner. I started asking why my argument printer
97.
▲
by
trashburger
3y ago
There's even a TempleOS comment buried in there (you need showdead enabled)!
98.
▲
by
trashburger
3y ago
My contributions to SerenityOS[0] helped me get my current job. My team lead (who was also my interviewer) was interested in what I did since I listed some of it in my CV, and I showed him some PRs I made and explained what went into each o
99.
▲
Programming Puzzles at CMU
(rentry.co)
1 points
by
trashburger
3y ago
|
0 comments
100.
▲
by
trashburger
3y ago
The really neat part about this is that it still uses the original SQLite files, so it will work retroactively once you add the configuration to your repo. Great article!
101.
▲
by
trashburger
3y ago
"Complies" is an overstatement. The independent repair program they released was so restrictive and missed so many key parts that it felt like intentional sabotage/poisoning of the well. "We helped independent repair sho
102.
▲
by
trashburger
3y ago
> I specified text: 2.1 (a number) instead of text: '2.1' (a string) - causing Stack to complain vigorously lol, not even Haskell can escape YAML being YAML.
103.
▲
by
trashburger
3y ago
From my (admittedly shallow) understanding, each "await" in an async function creates continuation points, is that correct? And then when the internally used Promise resolves or rejects, the function resumes from the continuation
104.
▲
by
trashburger
3y ago
When I don't know about the subject matter in a post, my first instinct is to research it myself for a bit to see if I can figure it out. I would recommend you to do the same.
105.
▲
by
trashburger
3y ago
What security vulnerabilities, exactly?
106.
▲
by
trashburger
3y ago
This is the version I remember hearing about too! It's very fitting.
107.
▲
by
trashburger
3y ago
I'm not sure how this is anymore inefficient than what a functional design would come up with. Is asking the objects about their behavior any more inefficient than dispatching yourself based on the characteristics of that object? >
108.
▲
SDL3 Filesystem API RFC
(github.com)
1 points
by
trashburger
3y ago
|
0 comments
109.
▲
by
trashburger
3y ago
Let's go point by point. > No, I disagree, because the right behavior is not determined by a single object but by a combination of factors Sure, and you can ask one or more of the objects involved about all of those factors! > Th
110.
▲
by
trashburger
3y ago
There is in fact associated behavior; it is just moved off the object in an effort to avoid the after-effects of many languages which implement "OOP". Behavior doesn't have to be part of the object directly, in fact I support
111.
▲
by
trashburger
3y ago
I believe this to be an artifact of our current paradigm of software development, which is based purely around static "batch processing" where the software can't be molded easily. (I didn't want it to come off as a plug,
112.
▲
by
trashburger
3y ago
Are you talking about the specific case in the expression problem article? It seems to mainly be a problem when an object's behavior can't be modified, either through the language faculties or through other means like a module sys
113.
▲
by
trashburger
3y ago
I'll respond in reverse order ;) > That is, what are you optimizing for? I'm optimizing for other programmers to easily be able to see how objects fit together and behave, and for them to be able to easily extend the system wit
114.
▲
by
trashburger
3y ago
Well, as my sibling comment says, you have just re-implemented dynamic dispatch in object programming ;). As a response to your edit, note that dynamic dispatch and immutability are not mutually exclusive; an object can have immutable state
115.
▲
by
trashburger
3y ago
Well, I am a very strong proponent of keeping the hierarchy open in all possible cases; the object should be the one that defines the behavior in all cases, and an object's behavior shouldn't be restricted just because it comes fr
116.
▲
by
trashburger
3y ago
Visibility as a concept is one I also disagree with :) I lump it together with the "OOP" classification in my original comment. I agree with you in this regard. The messages an object is able to respond to should not be restricted
117.
▲
by
trashburger
3y ago
I'm all for ADTs but the reasons the article gives are all wrong, and in fact I think it makes the code a lot worse as a result. Object programming doesn't mean "inheritance trees", that's just the (IMHO overly simp
118.
▲
by
trashburger
3y ago
Please don't donate to Mozilla, they have more than enough but refuse to accelerate Firefox development. https://lunduke.locals.com/post/4387539/firefox-money-invest...
119.
▲
by
trashburger
3y ago
Literally just don't sign CLAs. I made the mistake of signing a CLA for a piece of software which shortly after switched to a non-Free license, and will never ever sign a CLA again.
120.
▲
by
trashburger
3y ago
HLS is a way to serve a video in chunks over HTTP. It's how livestreams are implemented in most places. Twitter serves videos in HLS chunks, but Nitter doesn't want to proxy it to you because videos take a lot of bandwidth. In ord
More ›