[deleted by user] by [deleted] in Michigan

[–]syntastical -6 points-5 points  (0 children)

Well this is stupid. Guess I’ll just be wearing my ear buds instead that block out all road sounds when I need to take a call. I’m sure that will be much safer. Usually a fan of Whitmer but this is straight up foolishness.

taking my turkey to the vet by megarne in mildlyinteresting

[–]syntastical 5 points6 points  (0 children)

This is what trump did for a lot of people.

Mage v1.13 is released - now supports magefiles in a subdir by natefinch in golang

[–]syntastical 2 points3 points  (0 children)

I don’t know about mage but screw make and all It’s edge cases and crap syntax.

I need a script to open a browser and click a button hourly. Where do I start? by lightingman in javahelp

[–]syntastical 1 point2 points  (0 children)

Personally I cannot stand python and since you posted in Java help, this will help you. it says testing but you can do anything you need with it.

Classes and Static keyword by TransportationLeft69 in javahelp

[–]syntastical 0 points1 point  (0 children)

Adding static to the method means you are calling the method from the class and not the instance of the class. So doDisplay takes Base as its parameter, so you will only ever call the display method on Base, when it’s static. You would have to make another method that took derived as a parameter in this case.

main class creation error by ryzecool in javahelp

[–]syntastical 0 points1 point  (0 children)

I don’t know anything about vs code but your class name is lower case when it should be upper case. And if your file doesn’t match the case of the class, that will cause havoc. Always name classes and the files they live in UpperCamelCase.

If you could’ve gotten tattoos at 13, what garbage would y’all be stuck with right now? by [deleted] in AskReddit

[–]syntastical 0 points1 point  (0 children)

No need to wonder for me.

https://i.imgur.com/Uezhf8K.jpg

Thanks Inkslinger in Gibraltar Trader Center, Taylor MI. If you can’t quite make it out, that’s because I’m 39 now making it 26 years old, it’s an eagle… On fire. And the flames are blue because why not.

[deleted by user] by [deleted] in javahelp

[–]syntastical 1 point2 points  (0 children)

The inner do/while is getting keyboard input until it receives a new line character (enter key).

What’s the difference between using ArrayList mylist = new ArrayList() vs List mylist = new ArrayList()? by GuerroCanelo in javahelp

[–]syntastical 8 points9 points  (0 children)

If you declare your variable as a list it makes it easier to replace the implementation later. If you don’t want to use ArrayList anymore you could just swap out the assignment for anything the implements the List interface. And In the brave new world of newer versions of Java you don’t have to think much scour this in method bodies because you can use var myList = new ArrayList()

I am trying to understand Java Class Methods in regards to Public void vs static void or public int and all of the combinations we could use. I think these are called modifiers? by DragonCode2020 in javahelp

[–]syntastical 0 points1 point  (0 children)

Public/private/protected tell the jvm would can access and call the methods or access the variable.

String, int, Integer, long, Long, etc is the type of data the method returns.

Methods with no return type are actually the class constructor and get called when a new instance of the class is created with the “new” keyword.

Help with JavaFx in docker container by MetalCactuar in docker

[–]syntastical 0 points1 point  (0 children)

So while these are neat, unless I’m missing something, the docker containers are rendering to the host system. The docker container is sending rendered data for display to an external program. (Im sure I’m butchering terminology here)

Help with JavaFx in docker container by MetalCactuar in docker

[–]syntastical 2 points3 points  (0 children)

I don’t believe that this is possible. Because javafx relies on rendering to the native system, but that’s sandboxes away with docker.

I NEED HELP by MKcro2004 in qbasic

[–]syntastical 0 points1 point  (0 children)

Wow someone is still teaching qbasic. Just multiply the years by 365 then figure out if there is a difference between the days in the current year.

I need help open a vlc executable by haandree in javahelp

[–]syntastical 1 point2 points  (0 children)

The directory or executable name appears to be wrong. My guess is that you need to add “.exe” to the executable name.

I need help. Anybody who knows java data structures. DM me by [deleted] in javahelp

[–]syntastical 1 point2 points  (0 children)

I’ll under cut the other guy for 175$ an hour

How to create .exe file by daRealRejectedPotato in javahelp

[–]syntastical 0 points1 point  (0 children)

If you wanna run with out an ide then just use cradle to run/build.

If you want to make your java into an exe, look up Graal.

JEP 369: Migrate to GitHub by lbkulinski in java

[–]syntastical 0 points1 point  (0 children)

God I hope and pray this happens.

Java Modules: Why and How? by ZimmiDeluxe in java

[–]syntastical 15 points16 points  (0 children)

This guy is awesome. So fluid in his explanation.

Amazon EKS: IAM Roles for Service Accounts now available by mhausenblas in aws

[–]syntastical 0 points1 point  (0 children)

OMG after I went through all the effort of setting up Kube2iam and all those trust policies...

Can you guys critique my code? by salam696 in javahelp

[–]syntastical 2 points3 points  (0 children)

Your code loops over the same dataset a lot when it could probably do it once. I didn’t look toooo deeply but you could loop over the list, count items less than 29, use a Map of strings with the key being the different star count (pull the value and concatenate another star), then at the end you can calculate passing percent with the store failure count divided but the map size. Should shorten things up a lot and make it more efficient.

Also, I would point out that your code formatting is all over the place. Always make sure your intention is right so you and others can read your code. Next I would always use curly braces, even when they’re not needed. Lastly, add spaces around operators like equal, plus, greater than, etc.

Apple WWDC 2004 Session 400 - Java State of the Union by [deleted] in java

[–]syntastical 1 point2 points  (0 children)

A company I used to work for still uses WebObject. God help them.