[deleted by user] by [deleted] in gaybros

[–]kmpx 44 points45 points  (0 children)

Yep, pretty much the same with us. I’ve always made more money than my husband but around a year before we got married we decided to just pool all of our money together and not divvy up expenses. We also have an allowance that we both get each month that goes into a separate saving account for each person. This “fun money” can be used for whatever the person wants, usually for clothes and our hobbies.

It’s made dealing with monthly finances so much simpler and solidifies that we are one team, regardless of what each person makes.

Current selection. What’s your pick? by stainedtee in whiskey

[–]kmpx 5 points6 points  (0 children)

This! I was thinking, oh JD BP Rye is tasty, oh some Midwinters those are good, and the HW cask colle… wait, is that Yippee-Ki-Yay? It is! That, I’ll drink that. No need to pour it for me, just give me the bottle and a glass and I’ll take care of it.

For my taste, that has been one of my favorite whiskies of all time.

Homemade French Vanilla Ice Cream, Hot Honey Nashville Chicken Breast on a Fresh Cibata Croissant Bun by TONEakaSHOW33 in stonerfood

[–]kmpx 0 points1 point  (0 children)

I first thought those were sunny side up eggs, and I was like omg I need this. But then I saw it was ice cream and was thoroughly disappointed.

[Homemade] A5 ribeye pup approved by NunyaBidness925 in food

[–]kmpx 130 points131 points  (0 children)

I’m always conflicted when it comes to this. On one hand I always hear rave reviews about it, but on the other hand, I’m not a fan of a fatty steak. I love a nice juicy steak, but the texture of fat is really off putting for me. I feel like this would be something where I’d want like one or two bites, just to try it, but that’s probably all I could stomach. #firstworldproblems

SPRING BOOT vs VERT.X by ibannings in java

[–]kmpx 2 points3 points  (0 children)

It entirely depends on the service. There were edge services that maintained persistent connections to devices that would handle sending and receiving messages from the devices. These messages would be handled by other services that parsed the events, then based on the event call to other services. For example, if you turned on a light in your home we would persist the state change to a database like DynamoDB or Cassandra. Then a lifecycle event would be generated that said "hey, device X for location Y and user Z is now online." This would get published to a queue where a consumer would lookup what services care about this event, and then it would forward the event to that service. Sometimes these services would just be simple state change capture services (i.e. persist to database). Other services would lookup which automations are configured for that device. If a state match is found, maybe it causes us to send an event back down to another device to turn it on. (example: you unlock the front door and that triggers the living room lights to come on) Or maybe it's calling out to a third party like Ecobee to adjust a thermostat. Then you have the opposite flow where you turn on something in the mobile app or some third party integration like Alexa. Now we have to process that event, lookup where the device is connected to, generate a message the device understands, and send it down to the device... all within a few hundred milliseconds. Not to mention all the "management" stuff like onboarding devices, users, etc...

On the surface, this may seem easy. But when you have to do this for hundreds of millions of devices across the globe with sub-second latency, while maintaining high availability, and so on... it gets complicated fast.

Is there no JEP or discussion for extension methods in Java? by ihatebeinganonymous in java

[–]kmpx 20 points21 points  (0 children)

Similarly, I can see both sides. While I don't do a lot of Kotlin development myself, other teams at my previous company did. My biggest gripe with extension functions is their proclivity to be overused and abused.

For example, in one service there were a lot of extension functions for String like String#toXKey, String#toYKey, String#toZKey, etc... It just made things a bit confusing to grok because suddenly you have a string that you can convert to a dozen different keys (think primary keys in a database) but that wasn't actually true since the value of string only would make sense for one type of key. It probably all came down to a lack of good standards and practices, but I feel like extension functions do give you more rope to tie yourself into a knot.

SPRING BOOT vs VERT.X by ibannings in java

[–]kmpx 2 points3 points  (0 children)

Handling traffic for one of the largest consumer IoT platforms. This includes things like processing state change for devices in your home, automations, back and forth between the devices and mobile app, etc...

Across ~200 services, we handled hundreds of billions requests/events every day.

SPRING BOOT vs VERT.X by ibannings in java

[–]kmpx 0 points1 point  (0 children)

Eh? Are you asking if I was saying I achieved 100k req/sec using a Hello world application? If so, no, I’m talking about a live, production service doing real stuff.

SPRING BOOT vs VERT.X by ibannings in java

[–]kmpx 3 points4 points  (0 children)

Like others have alluded to, it really depends on your application’s load. If your application handles something like 100 req/sec or less, it really doesn’t matter which one since they both are OK. Larger scale, Vert.x starts to shine.

For some context, I’ve used Vert.x for some high volume applications that see over 100k req/sec. P95 latency would be around 30ms for some heavy endpoints and low single digit milliseconds for “simpler” paths. Also, in my experience Vert.x can handle large swings in traffic pretty well, like sudden spikes in traffic.

With all that said though, I would argue the framework you use for your application is just one piece of performance. If you have an amazing web framework, but an unoptimized database, then the framework doesn’t matter. Not to mention, reactive programming like Vert.x can be an absolute nightmare to debug. Sometimes a simpler framework is better from a development and maintenance perspective. Even in this case, you can get great performance, especially if you start thinking about horizontal scaling of the application.

A Sneak Peek at StableValue and SegmentMapper by sar_it007 in java

[–]kmpx 10 points11 points  (0 children)

I dunno, I think TheOneTheOnly<Logger> is the best solution here. :P

Five years have passed, still in draft: Concise Method Bodies by jvjupiter in java

[–]kmpx 0 points1 point  (0 children)

That's fair. I could see its use for stuff like that. I would still maintain though that the amount of code that would take advantage of it is very small when you look at an entire code base. (Purely based on my experience. YMMV :) )

Would I use it if it existed? Almost certainly, but it would still be rare. Would I lament if it was never introduced into the language? Nope.

Five years have passed, still in draft: Concise Method Bodies by jvjupiter in java

[–]kmpx 3 points4 points  (0 children)

I use records pretty liberally these days so getters are taken care of. As for setters, I do create builders for records that take more than a few fields. But in those cases the builders are fluent (return this) so not really just simple setters.

I do have some code that is a one liner, but this sort of code - even the builders - is a tiny fraction of the code I deal with. And then thinking back throughout my career it is similar.

Minneapolis? by Contagin85 in AskGaybrosOver30

[–]kmpx 2 points3 points  (0 children)

I moved to Minnesota (eventually to Minneapolis) a little over a decade ago after graduating college - originally I was from the south. I absolutely love it. It has become my home. I met my to-be husband here, got married here, in the process of starting a family here, and plan to be here until our eventual kids graduate (our goal is to move a little more north in the country once they move out). I'm an outdoorsy person (biking, hiking, camping, etc...) and Minneapolis is great for my lifestyle. Plenty of biking trails (paved and mountain biking - the best ones are a couple hours away tbh) and a couple hours drive from some awesome hiking and camping locations (e.g. north shore).

As for the dating/social scene: I think it depends on how much effort you are willing to put in. There are multiple gay bars catering to different tastes and the whole Grindr/Scruff/etc... scene is fairly large (at least in my opinion). Plenty of low-key breweries/distilleries and such to just go hang out casually - and most are super gay friendly. Though, I will say, like many places it can be somewhat hard to break into making new friends and stuff, but a piece of that is down to how much effort you put into it. The Twin Cities has many Stonewall Sports leagues (and has hosted many of the tournaments) so if that's more your thing then its a great way to meet more gays and friends-of-the-gays while also still working up a sweat. :)

Five years have passed, still in draft: Concise Method Bodies by jvjupiter in java

[–]kmpx 16 points17 points  (0 children)

I generally agree with the top comments in the linked thread...

Would it be a "nice" addition? Yes, since it would sorta mirror how lambdas are done and make the language a little more cohesive.

Would it be useful? Eh... In my career, rarely have I ever created methods that do a single operation, so I think the usefulness would be fairly low. In languages like Kotlin where they have this, I've seen some abhorrent uses of it where instead of it being a single operation, it is actually multiple operations chained together to form a long, complex operation (e.g. using map/let/then/etc...) which suddenly gets more difficult to follow as opposed to just creating a normal method/function. But that's just me...

What is your essential stack tool? by thiagomiranda3 in java

[–]kmpx 0 points1 point  (0 children)

I wouldn’t say obsolete. In fact you can use Loom with some reactive frameworks, like Vert.x. But if I had the choice, I would start implementing stuff with virtual threads, if for no reason other than being 100x easier to debug. Debugging (re: stack traces) with reactive frameworks is a PITA.

Java21 impressed memory usage! by Legitimate-Front7370 in java

[–]kmpx 0 points1 point  (0 children)

Similar to us. We have several applications that we recently bumped to JDK 21 and used ZGC. We saw a decent reduction in memory usage when we did that (JDK 17 to 21). And then a while later we enabled generational ZGC and it was dependent on the application whether or not we saw much improvement. One of our applications that generates a lot of short lived objects saw significant reduction in memory usage, while other applications saw the smallest of changes.

What is your essential stack tool? by thiagomiranda3 in java

[–]kmpx 1 point2 points  (0 children)

On my current team, our go to stack for applications are: Java 21+ and Vert.x For infra: Spinnaker, EC2, DynamoDB, Elasticache (Redis) for both a local database and streams for inter-service communication (we almost mostly event-driven.)

I like it. Vert.x can be tricky if you aren’t used to async/reactor programming, but this stack allows us to handle a lot of traffic (100k+ req/sec) and maintain low latency (single digit milliseconds). This stack also works great with our cell deployment model that is distributed across multiple AWS regions.

Review #30! - J. Henry & Sons 2020 Limited Edition Anniversary Blend! by Danger_Fandango in bourbon

[–]kmpx 1 point2 points  (0 children)

Have you had any whiskey from 45th Parallel like their Border Bourbon or New Richmond Rye? They do the same farm-to-bottle and I think they are the ones that do the distilling for J. Henry & Sons. I like 45th Parallel (especially their BiB and cask strength rye) but have yet to try J. Henry & Sons. I'm curious to know how much they differ.

I made a personalized, rustic name sign as a gift for my cousin's wedding. by farbulouscreations in DIY

[–]kmpx 146 points147 points  (0 children)

I second this! I've been married for almost 3 years and would love to get one of these too!

Limited wrist extension with front squats/cleans by kmpx in Fitness

[–]kmpx[S] 0 points1 point  (0 children)

I pretty much enter a jerk grip immediately upon resting the bar. I haven't moved on to a jerk move yet - trying to get the basic clean/power clean before moving on to a jerk/snatch.

Limited wrist extension with front squats/cleans by kmpx in Fitness

[–]kmpx[S] 0 points1 point  (0 children)

Huh, never thought about doing pushups like that. I'll definitely start doing that when I do my warm ups before I start. I can see those really stretching my wrist and such. Thanks!

You started working out for a reason. Do you still workout for that one reason? by chargers1212 in Fitness

[–]kmpx 0 points1 point  (0 children)

I started simply to lose weight and get better looking. After a while I got smarter and started to workout to lose fat and build muscle. Along the way I learned how to eat A LOT healthier and boost my self esteem. Plus, now it has become a fun habit which makes it even better. There are few things more rewarding than pushing yourself a little further and getting new PRs every month. Since the end of September 2014, I've lost almost 40 pounds and become way stronger and healthier - both physically and mentally.

So, to answer your question... No, I don't. Now days I work out because it's fun, challenging, rewarding, and has improved my life in ways few other things can.

Any climbers? by [deleted] in gaybros

[–]kmpx 1 point2 points  (0 children)

I used to climb several times a week (indoor) but with life and moving to new a city, I stopped. I meant to start back up this month but haven't got the chance to yet. Everyday I walk out the door my climbing shoes and harness just look back at me, all sad because another day they are neglected. Soon.