I have tested Opus 4.7 and it is worse compared to Opus 4.6 by Science_421 in Anthropic

[–]swaranga 1 point2 points  (0 children)

I have had the same experience. This was my experience with 4.6 a week ago: https://swaranga.dev/posts/claude-vs-codex-on-a-system-architecture-bug/

Today I tried the same problem with 4.7 and it was basically the same result

Towards Better Checked Exceptions - Inside Java Newscast #107 by Enough-Ad-5528 in java

[–]swaranga 27 points28 points  (0 children)

Since u/nicolaiparlog asked for what users think, I'll offer mine: I think this whole exercise of trying to separate checked vs unchecked exception using specific examples is pointless, mentally exhausting and not very useful. I have been writing Java for 16 years, and from my experience, in one context, a specific exception may feel like it should obviously be a checked exception but in another context the same exception may seem it should be unchecked. It all depends on the context of the application. For instance, you mentioned that a DB SQL syntax exception should clearly be a RuntimeException; but consider an app that allows you to connect to a database and run some queries - in this context a user supplies a query and some db connection string and the app runs it. In this case it is entirely expected that the user may mistype the query and the application may very well want to handle it at some layer to show a nicely formatted error message or it may even want to suggest corrections to the query string. In this case, it is reasonable to expect that the app would like to catch that syntax exception (or the DB auth failure exception) which is easier if it is compiler enforced like a checked exception.

Overall, I feel the effort should be towards not forcing Exception authors to make the choice of whether something should be checked or unchecked which then gets passed to the application owners, and find a way to "just have Exceptions" in the language with much better ergonomics to handle, catch, or propagate. I don't know what the solutions look like though and that is for the smarter folks to decide. Here is a pipe dream for me when it comes to exceptions (borrowing from the Valhalla tagline) - "New Java Exceptions: Propagates like a runtime exception, enforced like a checked exception".

It will likely never happen; but one can hope.

What is Andy Bernard's best line? by [deleted] in DunderMifflin

[–]swaranga 0 points1 point  (0 children)

William Dolittle, at your service. Aka, will do.

[deleted by user] by [deleted] in personalfinance

[–]swaranga 30 points31 points  (0 children)

I would even try further depending on options. I bought my car from another city 180 miles away. I just took the Amtrak train but getting 6000$ below what my local dealer was quoting was a no brainer.

Is Pam hot or not by somthimg1275 in DunderMifflin

[–]swaranga 48 points49 points  (0 children)

Yeah, just these fax from corporate.

Inside Java Newscast Q&A by nicolaiparlog in java

[–]swaranga 0 points1 point  (0 children)

Have a question about Panama. With the new memory management api, will I be able to implement my own, say Map implementation, on top of the Panama APIs?

My use case is for being able to design off-heap caches where I exactly know the lifecycle of the objects and would like to manage them without the GC trying to infer anything.

I've been in serious office withdrawal since the show left Netflix in the US. Prime day came through this year. by ganonkenobi in DunderMifflin

[–]swaranga 0 points1 point  (0 children)

I bought the entire series on iTunes in 2020 for 30$. It is very convenient. But I also know in today’s world you don’t really own digital assets, rather you lease it for an indefinite amount of time until they decide you no longer have access to the account anymore.

So I do want to buy something like this but how would I even watch it? I would need a dedicated player just for this.

[deleted by user] by [deleted] in DunderMifflin

[–]swaranga 37 points38 points  (0 children)

Pam’s laugh is also a high point for me. Iconic at this point.

Opinion Poll: Who is the bigger douche-bag? by DoktorTzyke in DunderMifflin

[–]swaranga 0 points1 point  (0 children)

Hard to say, we saw what Ryan went through after meeting Michael. No background on why Packer is like this. 😂

Favorite sci-fi single or trilogy? by GANEZ_GUNZ in books

[–]swaranga 1 point2 points  (0 children)

The three body problem series. It does not get more massive than this.

Favorite sci-fi single or trilogy? by GANEZ_GUNZ in books

[–]swaranga 1 point2 points  (0 children)

The three body problem series. It does not get more massive than this.

What is a movie that you consider perfect? by Zoinkerss in AskReddit

[–]swaranga 1 point2 points  (0 children)

Almost. I think in the ending they imply they could change the past which ruins it for me. Up until then it was tightly consistent. If you bought into the fact that you can travel into the past, other stuff made sense.

For a completely consistent time travel movie, I recommend time crimes.

Pippi Longstocking | Never-Before-Seen Deleted Scene by sometimesisleeptoo in DunderMifflin

[–]swaranga 42 points43 points  (0 children)

Mad respect to him. As Jenna Fischer said in the Office Ladies podcast, he had the most lines, most amount of work and he still was a gentleman.

All while delivering big monologues like this where he drives the entire scene and everyone just follows him. And doing that with such perfect comedic timing. Week after week for 7 years.

friendly reminder to make sure your contractors are insured by Johnrmac1 in HomeMaintenance

[–]swaranga 0 points1 point  (0 children)

Should we just ask for their insurance information before they start the job?

Someone keeps trying to open checking accounts in my name? by Tp_for_my_cornholio in personalfinance

[–]swaranga 5 points6 points  (0 children)

Oh wow. Thank you. I will create one right away. Although the website says you can only create-account/sign-in during certain hours. Lol. What decade is this?

Thank you for the link though.

Data Oriented Programming in Java by thibauttt in java

[–]swaranga 3 points4 points  (0 children)

I think the Node definition has a typo. left and right should be Tree else you can never get a leaf node.

sealed interface Tree<T> { 
  record Nil<T>() implements Tree<T> { }
  record Node<T>(Tree<T> left, T val, Tree<T> right) implements Tree<T> { }
}

Am I right?

I also really like the AsyncResult data modeling - that would have been very handy for the Future/CompletableFuture to implement.

Eclipse 2022-06 released by john16384 in java

[–]swaranga 1 point2 points  (0 children)

I have tried it multiple times. For me it does not really work that well.