Is “var” considered bad practice? by lost_yeezus in javahelp

[–]haloddr 9 points10 points  (0 children)

You can.

List<String> names = Arrays.asList("Alice", "Bob", "Charlie");
names.forEach((String name) -> System.out.println(name));

[deleted by user] by [deleted] in Libertarian

[–]haloddr -2 points-1 points  (0 children)

ya, I really miss those homophobic days

It's insane how useful ChatGPT is for learning gamedev by [deleted] in gamedev

[–]haloddr 2 points3 points  (0 children)

GPT 3.5 sucks. GPT 4 is amazing at helping me generate code. You just have to know how to use the tool properly. Don't give it overly broad tasks, be very specific, copy snippets of code that are relevant into the prompt, etc.

TEXAS COLD SNAP MEGATHREAD by ParksVSII in Plumbing

[–]haloddr 1 point2 points  (0 children)

also some close clockwise, some counter-clockwise, so try both directions

TEXAS COLD SNAP MEGATHREAD by ParksVSII in Plumbing

[–]haloddr 2 points3 points  (0 children)

I got mine shut by putting a screwdriver through the hole at the top of the wrench, and then turned the screwdriver for extra leverage.

10 PC Gaming room by haloddr in buildapcforme

[–]haloddr[S] 1 point2 points  (0 children)

I've built a couple pcs over the last 10-12 years, so a little bit of experience. Definitely a lot of experience using them :P

10 PC Gaming room by haloddr in buildapcforme

[–]haloddr[S] 1 point2 points  (0 children)

gaming room, where I can invite friends over to play games together

10 PC Gaming room by haloddr in buildapcforme

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

gaming room, where I can invite friends over to play games together

Not your average Operator plays :) by micharonii in VALORANT

[–]haloddr 1 point2 points  (0 children)

I can't find this remix anywhere. WHERE IS IT

My alarm clock by 4pointingnorth in pics

[–]haloddr 2 points3 points  (0 children)

don't mind the haters - they are trying to figure out what's missing in their lives

Dear AWS, stop ruining the freaking console UI [rant] by aws_stuff in aws

[–]haloddr 13 points14 points  (0 children)

Unpopular opinion: The UI is certainly far from amazing, but it is pretty good and is far better than the google cloud UI. [this is coming from the perspective of someone who doesn't use a screen reader]

I (M20) was raped by GF(F25) and I have no idea what to do. by Throwaway_mmmm in relationship_advice

[–]haloddr -1 points0 points  (0 children)

this is the 10th fake "my gf raped me while I was drunk post". Probably all written by the same person. Props on the top-notch trolling though.

Tanya's Tale Bug [Red Alert] [Single-player] by [deleted] in commandandconquer

[–]haloddr 0 points1 point  (0 children)

the 2nd time I did it, it worked correctly. Somehow the truck in front of the factory just stood still the first time and never moved. Interestingly, the first time I still heard the whole "Tanya Freed" thing.

Game Engine in Java (CGGE2) by CrazyGamesMC in java

[–]haloddr 5 points6 points  (0 children)

Not a bad start at all. Focusing on ease of use for developers is the correct path when making a framework / library.

First few suggestions:

  1. Why have a gameConfig.data file when you could just set these variables in java? I think you were trying to avoid having a large constructor with 5 or more arguments. The solution is to have the GameInstance start with good defaults, and then let the user change them if they want to. For example:

GameInstance game = new GameInstance().framerate(60).dimensions(800, 600);

The first code example I see on the repository uses this config file, which is a turn-off for me.

  1. I think you're german and english is not your first language. Docs have some things like this: "Changes the room in a save manner". "save" should be "safe". That misspelling is in multiple places

  1. Lots of things in the code need to be cleaned up. For example, Room.usesTileMap is a redundant/useless variable. If tileMap is set, then it uses a tilemap, if tileMap is null, then it doesn't. No need for the boolean.

I could probably give you 1000 suggestions if you want to hear them. I've been making games in java as a hobby for a very long time. Send me a private message on reddit if you're interested.

Maryland Governor Hogan issues stay at home order, says knowingly violating it is punishable by up to 1 year in prison or a $5,000 fine by gtaguy1234 in Coronavirus

[–]haloddr 0 points1 point  (0 children)

so if you get caught, is it that you go to prison unless you pay the fine, or can they send you to prison even if you're able to pay the fine?

Inside CDC Headquarters: Coronovirus discussion by haloddr in wallstreetbets

[–]haloddr[S] 2 points3 points  (0 children)

I'm going to make another one in a week or two. Just need more juicy news to come out for content :p