foone,
@foone@digipres.club avatar

it's funny that multiple jobs have been like "nah you don't have enough experience for a java developer job, we'd only hire you for doing CI/devops"

when I've got a codebase here from when I worked for the government. it's all in java. I wrote 90% of this. it's 55,000 lines.

foone,
@foone@digipres.club avatar

how much more experience do I fucking need?

foone,
@foone@digipres.club avatar

admittedly, this IS java. that's like only a simple app and a half.

hello world in java is about 4,000 lines, I think

dannotdaniel,
@dannotdaniel@mastodon.social avatar

@foone also.. in Java, one writes "goodbye cruel world" instead.

so that's already 8 bytes longer in the best POSSIBLE case

dannotdaniel,
@dannotdaniel@mastodon.social avatar

@foone I'm a little rusty but first you create a SadnessFactory

gregly,
@gregly@retro.pizza avatar

@dannotdaniel @foone I believe before that you must create an EmotionFactoryFactory, and initialize it with a SadnessInterface

BoydStephenSmithJr,
@BoydStephenSmithJr@hachyderm.io avatar

@foone "Hello, World!" in Java is traditionally 5 or 7 lines.

package Hello

public class World {
public static void main(String args[]) {
System.out.println("Hello, World!");
}
}

Using the unnamed package saves 2 lines.

What's hyperbole?

apicultor,
@apicultor@hachyderm.io avatar

@BoydStephenSmithJr @foone Ooh, someone's feeling a bit salty today.

BoydStephenSmithJr,
@BoydStephenSmithJr@hachyderm.io avatar

@apicultor @foone Yeah, I am in a bad mood. I should work on that.

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@BoydStephenSmithJr @foone
I took the original as hyperbole for comic effect

But in reality if we're going down this route, in modern Java, you don't even need a class

void main() {
System.out.println("Hello Wold!");
}

needs:

javac --release 21 --enable-preview HelloWorld.java

java --enable-preview HelloWorld

Nothing useful will be built this way, but it's come a long way since needing to define classes for callback handlers. I Like my dislike of Java to be based on current failings.

BoydStephenSmithJr,
@BoydStephenSmithJr@hachyderm.io avatar

@lewiscowles1986 @foone Neat! I haven't used anything never than 17. TIL.

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@BoydStephenSmithJr @foone
It's less than a year old and as you can see is behind some flags.

I Don't use Java if I can help it at all; but I'm never against good ideas, or the "punchers chance" any language or technology can have.

The real win here is from lightweight scripting languages, which popularised heavy syntax, low boilerplate. But the trade-offs are also likely in customisation and tweaking you can do with boilerplate.

gryzor,
@gryzor@androiddev.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • everett
  • magazineikmin
  • Youngstown
  • khanakhh
  • InstantRegret
  • tester
  • slotface
  • Durango
  • mdbf
  • rosin
  • kavyap
  • ngwrru68w68
  • thenastyranch
  • DreamBathrooms
  • JUstTest
  • osvaldo12
  • cisconetworking
  • Leos
  • tacticalgear
  • modclub
  • GTA5RPClips
  • cubers
  • ethstaker
  • provamag3
  • normalnudes
  • anitta
  • megavids
  • lostlight
  • All magazines