Better HN
topnewbestaskshowjobs
Log inSign up

spreiti

146 karma · joined Nov 23, 2010 (16y ago) · 50 submissions

Submissions

comment 1mo ago · link · parent

I am confused by your comment. Is it modern practice to vibe code everything these days instead of installing an app developed and maintained by a team? Do you expect everybody to be vibe coding their own software now?

comment 4mo ago · link · parent

https://youtube.com/@java?si=pN0ODGy-YLaaunIn

This is the official Java channel.

comment 10mo ago · link · parent

I have basically the same workflow. Planning mode has been the game changer for me. One thing I always wonder is how do people work in parallel? Do you work in different modules? Or maybe you split it between frontend and backend? Would love to hear your experience.

comment 11mo ago · link · parent

It is neither of these. It's an application that processes data and is not accessible outside of the companies network. Not everything is an app.

I described my workflow that has been a game changer for me, hoping it might be useful to another person because I have struggled to use LLMs for more than a Google replacement.

As an example, one task of the feature was to add metrics for observability when the new action was executed. Another when it failed.

My prompt: Create a new metric "foo.bar" in MyMetrics when MyService.action was successful and "foo.bar.failed" when it failed.

I review the plan and let it implement it.

As you can see it's a small task and after it is done I review the changes and commit them. Rinse and repeat.

I think the biggest issue is that people try to one shot big features or applications. But it is much more efficient to me to treat Copilot as a smart pair programming partner. There you also think about and implement one task after the other.

comment 11mo ago · link · parent

I cannot show it because the code belongs to my employer.

comment 11mo ago · link · parent

I use GitHub Copilot in Intellij with Claude Sonnet and the plan mode to implement complete features without me having to code anything.

I see it as a competent software developer but one that doesn't know the code base.

I will break down the tasks to the same size as if I was implementing it. But instead of doing it myself, I roughly describe the task on a technical level (and add relevant classes to the context) and it will ask me clarifying questions. After 2-3 rounds the plan usually looks good and I let it implement the task.

This method works exceptionally well and usually I don't have to change anything.

For me this method allows me to focus on the architecture and overall structure and delegate the plumbing to Copilot.

It is usually faster than if I had to implement it and the code is of good quality.

The game changer for me was plan mode. Before it, with agent mode it was hit or miss because it forced me to one shot the prompt or get inaccurate results.

comment 1y ago · link · parent

Since JDK 22 https://openjdk.org/jeps/454

comment 1y ago · link · parent

How much experience do you have working in Java? This statement really surprises me because Java has some of the best in class tools to debug and troubleshoot issues.

comment 2y ago · link · parent

Explain them the concepts of loot boxes and pay to win. My son, who was 8 at that time, understood quiet fast that these games don't require skill and are just trying to steal money from him. He doesn't like that and now avoids games that contain these dark patterns and has become quiet good at spotting them.

Also, buy a Nintendo console. It solves 99% of all problems. I haven't seen these dark patterns in any Nintendo title and personally I think it's the best gaming environment for kids.

comment 3y ago · link · parent

Looking forward to this JEP. This is, IMO, how Streams should have been implemented from the get go. All intermediate operations can now be expressed with Gatherers rather than having dedicated methods that can never cover all intermediate operations people come up with.

comment 3y ago · link · parent

In Intellij you can add breakpoints to when lambdas are executed [0]. You can also print logs instead of suspending the threads [1].

[0] https://www.jetbrains.com/help/idea/using-breakpoints.html#s...

[1] https://www.jetbrains.com/help/idea/using-breakpoints.html#l...

comment 3y ago · link · parent

I highly recommend you to watch this video by Brian Goetz if you want to learn more about this JEP.

https://youtu.be/pcg-E_qyMOI

comment 3y ago · link · parent

FYI: With Java 21 (2023/09/19) this is finally possible.

Relevant JEPs:

- 441: Pattern Matching for switch

- 440: Record Patterns

- 409: Sealed Classes

- 395: Records

It is kind of similar to Scalas version of pattern matching with case classes.

comment 3y ago · link · parent

We don't make bread. We just make bread from the previous day hot and crunchy again. It just takes a few minutes. We used to do this with the oven but that takes quite some time more.

comment 3y ago · link · parent

We got one in 2020 and we use it daily. Chicken, french fries, sausages, fish and bread is what we use it for most of the time. Some things like spring rolls are better fried with oil but overall we love it and it is a real time saver and of course less oil is used.

comment 3y ago · link · parent

This a 1000 times. People like to hate on Java but when there are problems to diagnose on production systems it is second to none.

But from my experience most people don't know these tools even exist so the only thing they do is restarting and guessing where the problem might be if it persists.

comment 5y ago · link · parent

I am in a similar situation (17+ years as developer) and I recently found joy in ethical hacking. I feel like a young kid again discovering new things on a daily basis after work.

comment 6y ago · link · parent

While not directly a resource, I found writing agents for the JVM (java.lang.instrument agents and JVMTI agents) to be quite enlightening and rewarding. Depending on what you want to do you'll have to deal with bytecode transformation/instrumentation, JVM events, JNI and many other things. For example, have you ever thought about how a java debugger (JPDA, JDI, JDWP) works or a tool such as OverOps (Takipi)?

comment 6y ago · link · parent

I'm 16 years into my career. I still like programming but I wouldn't say that I love it like I used to. At the beginning I would discover and learn new things on a daily basis but now, after 16 years, it's usually more of the same and this is what killed the love for programming for me. I have become a mercenary. And that's ok, because I have a family and more important things than coding for fun.

But every now and then I discover something new and this is when I get excited again. This is what keep the little coder flame burning that is still left within me.

So I try to find something new every month or two that get's me excited again. Doesn't take much time and is very rewarding.

comment 6y ago · link · parent

It will be refunded with the refund reason "Goodwill".

(I work as a Software Developer at SBB and work on the system that does the refund process)

comment 7y ago · link · parent

If you want to take it to the water it is usually recommended that the watch has 10bar (100m) water resistance.

The Breitling Navitimer 01 would tick many of your boxes (Chronograph, (Logscale)Bezel, Date) and is an iconic watch. However you can't swim with it.

Another iconic chronograph is the Zenith El Primero with the tri color dial. It is also WR to 100m.

Then there is the Omega Speedmaster "Man on the Moon" Chronograph.

Tudor also has a few nice watches: Black Bay Chrono, Black Bay Heritage, Black Bay 58, Black Bay GMT, Pelagos.

If you want a fine Quartz watch have a look at Grand Seiko and Citizen Chronomaster. These are High Accuracy Quartz (HAQ) watches which means +/- 5-10 seconds a year depending on the model.

For more classic looking watches have a look at Jaeger LeCoultre. I especially like their Masters collection.

comment 7y ago · link · parent

Yes, but depending on what you are looking for that might not be a bad thing. It usually means that the technology is mature to a certain degree.

comment 7y ago · link · parent

I apply the same strategy and focus on job listings from government related jobs/projects.

comment 7y ago · link · parent

Everything except the notifications has been available in watches such as the Citizen Satellite Wave and Seiko Astron lineup.

There are E-Straps from Montblanc that can notify you among other things.

There are also the "HOROLOGICAL SMARTWATCH" and "HYBRID MANUFACTURE" from Frederique Constant that could be interesting to you.

comment 8y ago · link · parent

A practical implementation of a slide rule can be found on watches such as the Breitling Navitimer. I like to use it for quick currency conversions when traveling.

comment 8y ago · link · parent

And to add to that: Transaction handling will be vastly different in most cases between local calls and network calls.

comment 8y ago · link · parent

> But microservices are also about coupling: just have a self-contained service that does one thing.

What stops you from creating a module inside a monolith with an interface that provides a self-contained service that does one thing?

comment 8y ago · link · parent

Not a use case per se but, I think it could be useful in combination with Progressive Web Apps (which can work without an internet connection) to control bluetooth devices without installing an App.

comment 8y ago · link · parent

I like it that way. Keeps my rate high while doing trivial CRUD applications.

On a serious note, I still think Java has one if not the best ecosystem of any language. Fast JVM, lots of high quality Open Source libraries/frameworks, tooling (IDEs, monitoring, debugging) and if you have a problem you probably are not the first one and usually find an answer.

comment 8y ago · link · parent

A personal anecdote from me and my wife.

The weekend before they found them my wife told me that a monk who was praying for them at the cave said that a ghost[1] was hiding them from the eyes of the divers until Monday[2]. They shouldn't be worried about the children and their coach as the ghost would take care of them. To my surprise they found them on that Monday.

[1] https://www.nytimes.com/aponline/2018/06/27/world/asia/ap-as... [2] I don't have a source as my wife was just scrolling through her Facebook feed

12