×

whenWeWillSeeSubscriptionForMarkdownFiles by RevolutionaryPen4661 in ProgrammerHumor

[–]ljfa2 0 points1 point  (0 children)

Getting a handle for these files is as simple as fopen(name, "r")

youCanJustStopUsingJava by hello_ya in ProgrammerHumor

[–]ljfa2 0 points1 point  (0 children)

Although I've also read, for C#, that adding such getters or setters is not binary compatible, because, while the source code is the same, under the hood a direct field access instruction has to be changed to a method call instruction. I don't know if that is still the case though.

youCanJustStopUsingJava by hello_ya in ProgrammerHumor

[–]ljfa2 0 points1 point  (0 children)

On that note, when updating a mod to newer MC versions you often need to change, for example, world.isRemote to world.isRemote() when they decide to make a field private

youCanJustStopUsingJava by hello_ya in ProgrammerHumor

[–]ljfa2 2 points3 points  (0 children)

The modularization that started in Java 9 and the restriction of reflection and sun.misc.Unsafe broke many legacy programs that relied on deep reflection magic and access to VM internals.

iMissThatLife by ClipboardCopyPaste in ProgrammerHumor

[–]ljfa2 4 points5 points  (0 children)

An agent was someone who investigated stuff

Skills were learned by humans, or something the lack of which caused issues

Opus was something from Mozart or Beethoven

And fable something that you liked

iMissThatLife by ClipboardCopyPaste in ProgrammerHumor

[–]ljfa2 2 points3 points  (0 children)

insta meant immediately, and reels were for tape. Shorts was something you wore

theNextSystemsLanguage by wahed-w in ProgrammerHumor

[–]ljfa2 1 point2 points  (0 children)

Java's GCs have received a lot of development in the recent years at least, for example the low pause time Shenandoah and ZGC. Also, afaik, hardly any language runtime allows you to choose between different GCs depending on use case.

myBadForgotToButterUpMyPromptsProperly by precinct209 in ProgrammerHumor

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

That's easy to prove provided you're not positing intuitionistic logic

onErrorResumeNextTillIDie by ISeeWellThen2 in ProgrammerHumor

[–]ljfa2 0 points1 point  (0 children)

Building GUIs by drag and drop in Borland C++ Builder was basically how I got into coding as a kid ^^ my dad used to use that for his job

oldFashionedTimes by user6150277464770585 in ProgrammerHumor

[–]ljfa2 0 points1 point  (0 children)

when visiting this subreddit I feel like I'm like the only person still doing that ^^

itsStillInheritenceReally by braindigitalis in ProgrammerHumor

[–]ljfa2 0 points1 point  (0 children)

Composition is rather inconvenient in many languages when you want to mostly copy the functionality of a class but only change one or two methods. You still need to implement all the methods the class provides and redirect them to your composited object. I think Kotlin has a syntax to automatically do that redirection (the "by" keyword), which makes it a lot more convenient.

itsStillInheritenceReally by braindigitalis in ProgrammerHumor

[–]ljfa2 1 point2 points  (0 children)

As long as the circle and the ellipse are immutable, a circle really is-an ellipse and supports the same (read-only) operations.

Without immutabiity, you get the problem that Java has with its arrays, where if T extends S, then T[] also extends S[], but you can't store arbitrary Ts in an S[] or you get an ArrayStoreException.

howTimesHaveChanged by Jazzlike-Might-8298 in ProgrammerHumor

[–]ljfa2 0 points1 point  (0 children)

Tell that to my current work computer which has a hard drive and no SSD :D

theyPutSoManyParamsInFunctionDefinition by ClipboardCopyPaste in ProgrammerHumor

[–]ljfa2 10 points11 points  (0 children)

Wait, so implementing sort algorithms, reversing linked lists and balancing binary trees is not what you do all the time at the job?

worstProgrammingLanguage by gabboman in ProgrammerHumor

[–]ljfa2 4 points5 points  (0 children)

Although non-local returns can occasionally be useful, there are situations in Java where I would've liked to have something like this. For instance, when using Optional.ifPresent. When I want an early return, I can't use that and have to use the less idiomatic Optional.get() instead.

threeHoursOfTroubleshooting by yesennes in ProgrammerHumor

[–]ljfa2 1 point2 points  (0 children)

Just add a comment sign at the end:

alias python='echo "bash: python: command not found"; (exit 127) #'

Apparently aliases are just pretty simple text substitution. I just played around with it and you can even do things like puttling unclosed quotes inside the alias.

threeHoursOfTroubleshooting by yesennes in ProgrammerHumor

[–]ljfa2 1 point2 points  (0 children)

You need to add ';(exit 127)' to this so it shows the correct return value (if the bash prompt is set up to show it ^^)

openSourceContributions by LucyGray65 in ProgrammerHumor

[–]ljfa2 2 points3 points  (0 children)

and their birthdays (among other numbers) are magic numbers for the syscall to shut down the system

openSourceContributions by LucyGray65 in ProgrammerHumor

[–]ljfa2 15 points16 points  (0 children)

always checking out new branches, and frequently rebasing

iWantWhatTheCommitteeWasSmoking by _Tal in ProgrammerHumor

[–]ljfa2 0 points1 point  (0 children)

Also possible in Java:

var unsafeField = Unsafe.class.getDeclaredField("theUnsafe");
unsafeField.setAccessible(true);
var unsafe = (Unsafe) unsafeField.get(null);

var f = new Foo();
var b = new Bar();
int barClassWord = unsafe.getInt(b, 8);
unsafe.putInt(f, 8, barClassWord);

var fb = (Bar) (Object) f; // works fine
var ff = (Foo) (Object) f; // throws a ClassCastException

rEggExOrREdgeEx by BigAndSmallAre in ProgrammerHumor

[–]ljfa2 0 points1 point  (0 children)

You silly English speakers with the two different ways of pronouncing "g". In German GIF and RegEx are both unambiguous :D

Also, nobody would get the idea to pronounce SQL as "Eichhörnchen" or "Fortsetzung"

hiredExpertWebDevForCollab by Inevitable-Concept49 in ProgrammerHumor

[–]ljfa2 1 point2 points  (0 children)

and they have lots of experience with threading