Breaking Java With A Variable Name - #shorts

preview_player
Показать описание

Can you break Java just by using a variable name that's too long? How big can a variable name get before Java just breaks?
Let's find out.

Learn or improve your Java by watching it being coded live!

Hi, I'm John! I'm a Lead Java Software Engineer and I've been in the programming industry for more than a decade. I love sharing what I've learned over the years in a way that's understandable for all levels of Java learners.

Let me know what else you'd like to see!

Links to any stuff in this description are affiliate links, so if you buy a product through those links I may earn a small commission.

📕 THE best book to learn Java, Effective Java by Joshua Bloch

📕 One of my favorite programming books, Clean Code by Robert Martin

🎧 Or get the audio version of Clean Code for FREE here with an Audible free trial

🖥️Standing desk brand I use for recording (get a code for $30 off through this link!)

📹Phone I use for recording:

🎙️Microphone I use (classy, I know):

Donate with PayPal (Thank you so much!)

☕Complete Java course:

#shorts
Рекомендации по теме
Комментарии
Автор

A typical java developer naming a method

medoncho
Автор

Im guessing since 2^16 is 65536, this is how many bits they allocated for this.

Urbanstrangler
Автор

hm. that's strange. I could've sworn I've seen longer in Spring framework source code

anishsinha
Автор

"Make sure your variables are understandable"
Me for real:

BobChess
Автор

In code review: Ok, let's let's talk about your variable naming.

pasigiri
Автор

Never thought about doing that haha! Nice!

PugStackDev
Автор

"62 million"
"65 thousand"
wow

mattoucas
Автор

If I ever find one of my colleagues using variable names longer than 64 characters I call them out in front of the group for creating a code maintenance point of failure.

WthyrBendragon
Автор

We are overflowing with bacon. Finally. Peace.

michaeltheisen
Автор

imagine obfuscating code for a homework and putting long variable names

Alphakodder
Автор

What's the benefit of knowing this?

jamalkhalil
Автор

255 would have been plenty.
I don't remember which language it was back in the 80s that only used the two first letters in the variable name and ignored the rest meaning foot and foo would be the same variabel, very disturbing

casperhansen
Автор

as if it doesn't have enough boilerplate already...

RIFOU-FF
Автор

Lol! Interesting! how come I have never thought of doing this!

julesnsenda
Автор

Advanced definition for variable length limit: javaShortLimit * 2

macintosh_fancode
Автор

I did such pervertry research with floppy discs, naming files. I guess it was 255 characters.😄

ukrainesov
Автор

Unacceptable… where’s the camel case lol.

dennisllopis
Автор

When a programmer has nothing to do but he should do any something at any how 😂

nawafEalharbi
Автор

Dude thank you so much the teacher didn't explain it that well but now that I know this I'll be able to get an A on the exam thank you!


Jk but I love you John

the_jones
Автор

I don't think I've ever made a variable name longer than 20 characters long, HOW would you even maintain a 16 bit integer max length variable lmao

JordanIbanez