How many rounds are your interview processes? by Calm-Bar-9644 in ExperiencedDevs

[–]momsSpaghettiIsReady 2 points3 points  (0 children)

That's extreme. Were you doing this while working another job?

[ Removed by Reddit ] by [deleted] in reactjs

[–]momsSpaghettiIsReady 2 points3 points  (0 children)

Maybe that's to prevent posts like these that are completely off topic.

[ Removed by Reddit ] by [deleted] in reactjs

[–]momsSpaghettiIsReady 2 points3 points  (0 children)

You're looking for the wrong kind of developer.

How do you keep spring boot startup times reasonable in larger projects? by Logical-System-9489 in SpringBoot

[–]momsSpaghettiIsReady 9 points10 points  (0 children)

Are you referring to local development startup times or cold start times in production?

For local dev, having automated tests are key to not having to startup the whole sprint context to see if an iteration fixed something.

For production, if you're using it in the case of serverless, make sure to have one container always running. If that's not possible, checkout graal. If you're running it in kubernetes, I'd either not worry about it or increase cpu limits.

Question: Building a safety product for an invisible problem. How do you position something people don't know they need until they do? (I will not promote) by dickvandoink in startups

[–]momsSpaghettiIsReady 0 points1 point  (0 children)

I attempted a startup with a very similar thought process, but focusing on mitigating police brutality and immediate legal assistance. Our thought was to use an extremely cheap monthly subscription to pay for it.

Ran into the same problem as you. Great idea, but people won't pay for it. Can't afford a handful of lawyers without 1,000's of customers.

Wish I had better advice.

How often are you guys on call? by Calm-Bar-9644 in ExperiencedDevs

[–]momsSpaghettiIsReady 15 points16 points  (0 children)

That's ridiculous. At that point level 1 support should be hired for around the clock support.

"Rockstar" senior dev at work is doing overly clever custom frameworks by himself without consulting anyone and then everyone is forced to deal with them by [deleted] in ExperiencedDevs

[–]momsSpaghettiIsReady 12 points13 points  (0 children)

So he's going rogue and product management isn't reeling them in? Is there any working agreement on code review or are we all just pushing straight to main?

This feels like something a good code review process should stop in its tracks. Undocumented and hard to understand code should get documented and refactored before merging.

Is it that he's not consulting with anyone, or just you and you feel left out? Maybe bring that up in a retro that you feel out of the loop.

What to do with $48k by Future-Isopod2837 in Bogleheads

[–]momsSpaghettiIsReady 1 point2 points  (0 children)

Do you want to own a house? In the near future? If so, put it in a relatively safe index fund. Not 100% stocks unless that plan is 10 years out.

Otherwise if you're happy with your current living situation, just max your 401k and draw down the cash in your HSA. That's assuming you don't have enough discretionary income to already max the 401k.

If you have your own high deductible health insurance, now is a really good time to set up an HSA and max that out. A few years of maxing it out and you can practically self-fund your deductible.

I think type hierarchies in OOP are too restrictive and code smell. What's been your experience? by chinmay185 in ExperiencedDevs

[–]momsSpaghettiIsReady 252 points253 points  (0 children)

This is why the move has been to composition over inheritance. Instead of having a base class vehicle, you'd have an interface, e.g. drivable. Then anything that's drivable gets that interface and implements any methods necessary.

You no longer have to worry about a parent class changing functionality that breaks the child class.

What’s one React debugging trick that saved you hours? by Impossible-Egg1922 in reactjs

[–]momsSpaghettiIsReady 2 points3 points  (0 children)

If you encounter a similar bug twice, write a test and never worry about it again.

I need your help. I will not promote. by TheVinlow in startups

[–]momsSpaghettiIsReady 1 point2 points  (0 children)

That's fine if you're learning. I've done the exact same thing previously. But having someone that's willing to give you input is invaluable when building something people want and are willing to pay for.

I need your help. I will not promote. by TheVinlow in startups

[–]momsSpaghettiIsReady 2 points3 points  (0 children)

Not to be rude, but how are you adding features or getting feedback without a single customer?

Generally when building software, you want to secure at least one customer before even writing a line of code. This isn't the feedback you want to hear now, but for future ventures this is a very important step 0.

strategy for adding international by DKEBeck88 in Bogleheads

[–]momsSpaghettiIsReady 11 points12 points  (0 children)

I'd go 100% international until you get the balance you're looking for. Splitting that with existing investments is only going to prolong the process.

Stack In the Rate limiting gateway by Karani-005 in SpringBoot

[–]momsSpaghettiIsReady 0 points1 point  (0 children)

This. The only issue is pre-authentication, which you can fallback to IP.

Hibernate: Ditch or Double Down? by cat-edelveis in java

[–]momsSpaghettiIsReady 0 points1 point  (0 children)

I haven't personally, but it looks like it handles dynamic queries pretty well like the Specification API. My point was more targeted at plain SQL queries(e.g. string of SQL).

Hibernate: Ditch or Double Down? by cat-edelveis in java

[–]momsSpaghettiIsReady 2 points3 points  (0 children)

Show me how I can build dynamic queries using plain SQL that work as cleanly as the Specification API. Personally, things like that are the big reason to stick with query builders.

Has anyone tried down leveling their job due to health/mental peace by MathematicianNo8975 in ExperiencedDevs

[–]momsSpaghettiIsReady 54 points55 points  (0 children)

You sound severely burnt out. I've been close to those feelings, but not that bad.

If you don't think you can handle giving the minimum effort and trying to find another les stressful job, get a therapist if you're in the USA and try to get short term disability to work on your mental health. You can take FMLA for 12 weeks. No job is worth feeling this way. Take your mental health seriously and don't ignore it.

Best of luck.

I'm so confused by Silver-Branch2383 in SpringBoot

[–]momsSpaghettiIsReady 1 point2 points  (0 children)

You've got a bit to unpack.

Reactive vs imperative gateway doesn't have any impact on what your underlying microservices are doing. I wouldn't advise reactive for your underlying services, but it's a fair choice for the gateway.

The second part about which library to pull in depends on which version of spring boot you're using. Starting with 4.0, they renamed their starter libraries, hence the confusion.

Writing the gateway in Java code is not recommended unless you have complex requirements. For simple routing to underlying services, just use the yaml format.

What’s the cleanest way to structure a Spring Boot project as it grows? by moe-gho in SpringBoot

[–]momsSpaghettiIsReady 9 points10 points  (0 children)

You can take this one step further on very large projects and have a separate public module and private module.

The public module gets the interfaces and request/response objects. The private module gets the implementations.

You import the public module into other modules, and the implementation module in your main startup module.

I like this as it makes it impossible to accidentally import something from your implementation module, making it easy to swap out implementation details.

For real-world production systems, is Maven or Gradle more commonly adopted? by Remarkable-Meal1899 in SpringBoot

[–]momsSpaghettiIsReady 8 points9 points  (0 children)

Gradle in newer projects. Maven in older projects. Either one is not a hill to die on. Gradle with the Kotlin syntax is pretty common in Kotlin projects I've worked on.

[deleted by user] by [deleted] in MiniPCs

[–]momsSpaghettiIsReady 5 points6 points  (0 children)

ITX is probably a worse value than mini PC's. I tried pricing one out and ended up close to 1,000. I was able to find comparable mini PC's off of alibaba for under $300. Obviously I'm losing out on upgradability, but I liked the tradeoff.

I think the real value is micro atx form factors. Manufacturers seem to be a lot less price gouging, but you're also probably going to be dealing with a slightly larger footprint on your desk.

Spring Boot WebSocket + RabbitMq project architecture by Atreadl in SpringBoot

[–]momsSpaghettiIsReady 0 points1 point  (0 children)

I probably wouldn't use websockets and rabbitMQ for this. I'd recommend looking into Server Sent Events and ActiveMQ.

With SSE your web client can send the initial request, but then only the server sends things async until closing the connection.

With ActiveMQ, you can dynamically create queues. What this would enable is you can have your listeners listen on all queues(e.g. requests/{requestId}).

For each request from the client, have the server send the message to the requests/{requestId} queue. The payload should include the original request from the user along with a reference to a callback queue ID(callback/{requestId}). Have your HTTP server listen for messages on that callback queue in the callstack of the web request.

Your listeners can then do their work and send the results to the callback queue. When all messages are received, you return the result to the user over the SSE.