Better HN
topnewbestaskshowjobs
Log inSign up

billmcneale

293 karma · joined Feb 25, 2010 (16y ago) · 289 submissions

Submissions

comment 1y ago · link · parent

> if (customer?.Profile is not null) >{ > // Null-coalescing (??) > customer.Profile.Avatar = request.Avatar ?? "./default-avatar.jpg"; >}

Isn't this over engineered? Why not allow the assignment but do nothing if any of the intermediate objects is null (that's how Kotlin does it).

comment 1y ago · link · parent

Why is Zig so inconsistent in its syntax?

We see:

    pub fn implBy
Camel case

    (impl_obj: anytype) 
Snake case

    v_setLevel
Mix of camel case and snake case

    anyopaque
whatever that is

comment 1y ago · link · parent

Yeah, hard to see how better this is than Gradle. If anything, it's worse by the mere fact this is Scala, but it's really so incredibly verbose to accomplish basic tasks such as upload to Sonatype.

comment 1y ago · link · parent

I am convinced!

Which god should I believe in, though? There are so many.

And what if I pick the wrong god?

comment 1y ago · link · parent

Not everyone has your luxury of being able to choose their tools.

comment 1y ago · link · parent

But the whole promise of monads is precisely that they are a type that can compose.

It basically allows you to pipe successive function calls returning different types by lifting these types into a monad.

Don't get me wrong, that promise is very powerful and in the rare few cases where it works, it unlocks beautiful composition, but the simple truth is that monads are really not that useful outside of Haskell (and I'd say, it's even questionable within).

comment 1y ago · link · parent

> That's why the pattern is so useful in the first place

How useful, really? Monads don't even universally compose, which is what most people sell the concept for.

comment 1y ago · link · parent

COM is exactly what OP was talking about.

Apps can expose endpoints that can be listed, and external processes can call these endpoints.

comment 1y ago · link · parent

Microsoft introduced this in Windows in 1993, it's called COM and is still in (heavy) use today.

It basically powers all inter communication in Windows.

comment 1y ago · link · parent

The question is not whether it can be done (of course it can) but rather, what is the more elegant approach.

There is plenty of evidence that OOP provides some flexible, extensible, and intuitive ways to design GUI libraries.

I have personal experience that OOP can be the better approach in other fields too (such as overriding a specific method of a larger structure).

comment 1y ago · link · parent

A lot of that verbiage is absurd exaggerations and most of these things never became true.

> Being in denial about this isn't an excuse for these problems.

I'm not in denial, I know exactly what Denuvo entails. Whenever I buy a game with Denuvo (which pretty much never happens any more), I know exactly what I'm giving away, and I'm doing so because I'm getting something in return.

Similar situation to someone dropping their business card in a jar at the exit of a restaurant with the hope they'll win a free meal. They give a bit of personal information because they think they'll receive more in return.

You don't get to take away the choice of customers to decide how to manage their information.

As long as everyone is free to make that choice, nobody is getting hurt and the market forces will ultimately land on an equilibrium, like we have today.

comment 1y ago · link · parent

> I don't believe that "whenever [I'm] playing and enjoying a game" it was "most likely" created thanks to Denuvo

I never made that claim, please reread what I wrote, but here is my point again.

When you play a game from a publisher, they were able to create it because their previous games sold well. Therefore, anything that allows games to sell well is a positive for the entire gaming community, creators and players.

Denuvo is an important part of this picture, but it's obviously not the only one.

> And then there are people like me who simply refuse to play any game which uses Denuvo. There are thousands of excellent games out there, why should I waste time on those which treat me as a thief?

That's great, and I do that as well. And this is one of the reasons why Denuvo is not anti-user: everyone has the choice to not support it.

comment 1y ago · link · parent

> Are you going to be OK with that just because it's some corpo doing it and not the government?

If I willingly let them in my home and I knew they were going to do that? I don't really have the option to complain, do I?

Your analogy doesn't make sense. People buy the game, Denuvo is clearly advertised on it. They have the option to not buy the game. Period. It's not overreach if I willingly accepted the reach.

> So to sum it up, DRM is always anti user in many senses.

How do you reconcile this claim with the fact that Denuvo games sell by the millions every month?

comment 1y ago · link · parent

> by its mere definition it's always aimed against the user, therefore it's always an anti-feature.

Describing it as "anti user" is theoretically correct but practically incorrect. It's true that it might prevent mods and possible future uses if the servers go down, but in practice, users don't care, as is demonstrated by the fact that games that contain Denuvo routinely sell in the millions and users have no idea it's even there, and they will never know.

Overreaching?

I don't know. Companies put out a product, you're free not to buy it if you don't like it. That's one of the reasons why I call this natural market forces.

> So conceptually it's not any better than what fourth amendment is aimed to prevent.

That's a gross exaggeration. The Fourth amendment is about unreasonable searches by the government, I completely fail to see how willingly buying a digital product from non governmental organizations is connected to Fourth amendment in any rational way.

Again, at the end of the day, nobody forces you to buy that product, hence "natural market forces".

The fact that millions of these games are being bought every month tells me users don't feel that whatever flaws, perceived or real, Denuvo has matters less to them than playing these games.

comment 1y ago · link · parent

> it's an anti-user feature by definition.

That's an extremely naive take that shows some stark ignorance of the tech and market forces at work.

From a tech standpoint, Denuvo negatively impacting performance has been debunked many times over (see my previous post about that).

On the economical side, you need to realize that whenever you are playing and enjoying a game, it's most likely due to the fact that the previous games sold by that developer have been successful in making money, which was most likely made possible by Denuvo.

In other words, making piracy harder allows the next generation of games to be created.

comment 1y ago · link · parent

> Worth noting that denuvo causes a lot of hitching, massive load time increases and overall performance problems.

There is pretty much zero evidence that this is true and some credible evidence that it is untrue.

For example, plenty of games have had Denuvo removed after a few months by the publisher and showed zero improvement in performance.

This fake narrative is being pushed by software pirates bitter that Denuvo is being so effective at preventing them from stealing games.

comment 1y ago · link · parent

> If a function fails, then you need to handle its failure

And this is exactly where Go fails, because it allows you to completely ignore the error, which will lead to a crash.

I'm a bit baffled that you correctly identified that this is a requirement to produce robust software and yet, you like Go's error handling approach...

comment 1y ago · link · parent

These are some pretty arbitrary rules without much justification, quite reminiscent of the Clean Code fad.

comment 1y ago · link · parent

> dynamic language like Kotlin and Clojure,

Kotlin is not a dynamic language, it's statically typed, just like Java.

comment 1y ago · link · parent

> Our mission is to take this code and make it readable:

Anyone else finding some irony in the fact that the provided code is unreadable not because of its structure but because of the highlight colors?

comment 1y ago · link · parent

How is this different from creating a folder of links on my Bookmarks bar and selecting "Open all"?

comment 1y ago · link · parent

That's not assembly language, that's a less powerful version of C.

If you're going this route, you might as well learn LLVM.

comment 1y ago · link · parent

> they have proven already that other's interests do not matter for them

I disagree. Their interests matter greatly to them, they are just totally unequipped to understand who, and what, they are voting for.

comment 1y ago · link · parent

Yes, you gain testability.

If your global state contains something that runs in prod but should not run in a testing environment (e.g. a database connection), your global variable based code is now untestable.

Dependency Injection is popular for a very good reason.

comment 1y ago · link · parent

In 2025, sure. Back when that calculator came out, this kind of saving was probably worth it.

comment 1y ago · link · parent

Yes, exactly.

If you have

1 + (2 * 3 + (4 / 5))

The smallest key count with RPN is to start entering the deepest expression first:

4 ^ 5 / 2 ^ 3 * + 1 +

You can type it left to right but it takes more keys and is probably on par with standard paren arithmetic, which negates the RPN advantage

1 ^ 2 ^ 3 * 4 ^ 5 / + +

comment 1y ago · link · parent

The keyboard on this calculator has the number of keys reduced to the minimum by the use of only three function keys, including a combined "x÷" key.

Here, pressing "x÷" gives the multiplication function if "+=" is subsequently pressed to give the answer, and gives the division function if "-=" is subsequently pressed to give the answer, so:

4 x÷ 2 += gives the answer 8. 4 x÷ 2 -= gives the answer 2.

comment 1y ago · link · parent

I used to be in love with RPN and owned multiple HP calculators (HP-41, HP-15) but RPN is cheating by offloading effort on the user.

When you see a complicated, parenthesized expression, it's up to you to figure out the deepest expression, enter it first, and then work your way out.

Standard calculators require more keystrokes but they can be entered without much thought, left to right. And these days, you can also edit and modify your input, so it's hard to justify RPN.

comment 1y ago · link · parent

> Although ML people are just going to keep on misusing the word "tensor" to refer to a mere multidimensional array.

Could you elaborate on the difference?

I was under the impression that beyond the fact that arrays are a computer science concept and tensors are more of a math/physics concept, for all intents and purposes, they are isomorphic.

How is a tensor more than just a multidimensional array?

comment 1y ago · link · parent

tl;dr: OP was using a Lisp and they were looking for a different Lisp.

Probably the only reason why anyone would ever pick Common Lisp for a new project in 2025.

12345
10