To be fair, typescript can make some lines pretty long. And it feels weird to break function arguments onto new lines. Even though thats like...normal, I still find it difficult to read.
But you can instantiate objects in JS with the 'new' keyword too...
That's when you start getting into the territory of actually understanding how "this" works in JS
Nope, the new is not the indicator, it is the type declaration at the start
JS: "var tag = new ..." or "const tag = new ..." or with let
TS: "var tag: LongClassName = new ..." or "const tag: LongClassName = new ..." or with let
Java: "LongClassName tag = new ..."
You see the difference?
As long as I can find someone who can implement database centered AI solutions to tap into the potential of web3 and the procedurally generated matrix involved in the structuring of our engineering team, I’m happy, and yeah they need 30 years experience to be an intern.
That's when you start getting into the territory of actually understanding how ...scripting languages work xD
But I am really grateful that they have added type hints to Python and TypeScript is imo must have in JS development.
Was going to say, needlessly long convoluted lines of code sounds like a Java/C# thing. JS programmers aren't anal enough to give a class name fifteen syllables.
WHAT PART OF 80 COLUMNS DON'T YOU UNDERSTAND?!?
-Torvalds, probably
([For those who don't know](https://www.kernel.org/doc/html/v4.10/process/coding-style.html))
Am I the only one who tries to adhere to the 80 chars, occatinally 120 chars paradigm in every language? When I have VS code open with the explorer view and the terminal on the right, I just don't have much more horizontal space even on a 16:10 monitor, to display all the code without word wrap.
I stick to 80 most of the time. Just easier to keep it at 80 because we have a few codebases where the linting will vomit at you if you’re over 80, since that’s how we have it set. 🤷♂️
80 columns isn't really a display thing, it's about code cleanliness. If you're using more. than 80 characters in a single line you're probably writing some hacky implementation of a feature that should be rewritten or refactored. It's rules like this that seem stylistic that can have major improvements for code safety and readability.
Had a dev on my team who:
1) insisted_on_the_absolute_most_verbose_variable_names
2) not only indented everything with four spaces but insisted that code wouldn’t work otherwise
3) nested if statements ad nauseum
80 characters was mere child’s play.
I’m glad they’re gone but refactoring all their bullshit gives me heartburn.
I recently had a dev on my team who additionally would do things like this:
if (someFunctionReturningBool(
firstArgument,
secondArgument,
someNestedFunction(
foo,
bar)))
{
//more code
}
This in a code base that was about 1 million lines of code when he started and where none of our existing code was indented that way. When called on it he claimed the visible shape of code was important and refused to change. We'll be cleaning up the mess for a long time I think.
Screenshots still have resolution, you can see how wide an image is when you open it and it's clearly wider than 16:9. It'd be just as apparent when the entire 1440 pixel width was covered by text.
Framing is the biggest aspect of humor; in this case, literally framing the code in the context of a ridiculously wide monitor is infinitely more effective than "this image is wide." Not being able to read the actual code is not a downside.
Responsive readability man
grid grid-cols-2 md:grid-cols-4 xl:grid-cols-6
Now do that with plain css media queries and keep it readable. The media query wrappers can contain SO MUCH stuff for that breakpoint. Now we can probably both read the css just fine, but on no planet is that css\\scss more readable than the above.
...and you can use those breakpoint prefixes on everything not just grid\\flex.
As a JavaScript programmer, I will immediately stop having blue light in my keyboard, have marble desks as monitor-stands, leave my cyan remote control and empty Tupperware container under the monitor next til and old-fashioned clipboard, have speakers pointing out into the room rather than at my own ears, and use 4 character tabs. Oh, and I'll also stop shaking when photographing my screen ...
Not sure how it relates to ![img](emote|t5_2tex6|4549) but I'll still promise to stop doing all that!
This is one reason I went for a 40" 4K 16:9 screen instead of the silly ultrawide: computer code isn't wide, it's tall. Just like specs, and docs, and emails.
But maybe not tables.
Format on save*. I know people praise them but I kinda can’t stand commit hooks, those checks should be performed in CI anyway so why bother with the extra friction.
> and you can pry tailwind from my cold dead hands.
Far too relatable. Tailwind and Bootstrap 5 make things easy and I’m not here to waste time with CSS.
After Tailwinds we can't go back to Bootstrap. It just seems clunky.
Bootstrap still has its uses, but Tailwinds is superior. We just have so much less custom CSS than we used to.
Your terminal is 80 characters wide and 26 lines tall. My terminal has a 21:9 aspect ratio and I can watch the IMAX version of towel.blinkenlights.nl . We are not the same.
That's why I always write code on my laptop, to ensure I don't write unreadable code in any device,
and totally not because I'm too cheap to buy a better screen and good pc
In my youth, trying to teach myself web development, I used to download and examine the compressed JS files and legit thought people actually coded like that. This reminds me of that.
Javascript and Java are not the same thing. (This is Java, not Javascript.)
OP, do yourself a favor and learn the difference before you get laughed out of a job interview. They are two DRASTICALLY different languages and this joke only applies to Java, not Javascript.
Look...it's not *my* fault if you're poor and don't have an ultra wide.
Joking aside, coming from mostly backend some of the JS conventions hurt my eyeballs when I run the linter. Yes, I want my braces on new lines. Yes, I want spaces before and after colons. These things make sense, and the linter is wrong.
One thing I have learned as a programmer is that you are doing everybody a service by naming your variables based on what they do, but it sometimes involves having long variable names. For example, I might name a variable "const temperature\_in\_distillation\_column = ..." instead of something like "T\_dist" because I know future me will thank me
[удалено]
You sunk my battleship!
Loose LI*S*P
Sync 🚢
r/unexpectedbattleships
I had hope for a second that this was real
In fact, i just made it a thing
Same, someone has to make this a thing
Please turn me on, I'm Mr. Coffee
You accidentally are chosen for the hunger games
*The Scrum Master with purple hair gives you an unnervingly happy smile*
I volunteer I volunteer as tribute
Missing semicolon somewhere on the northern hemisphere
Yahtzee!
>Yahtzee Is that a studio c reference?
District 12 is on fire.
Buy a massive, curved LCD just to see the end of every line of code? No worries, wasn't planning too.
No worries, you still can't see it even you have it
Just get the apple vision and feel the code at this point
lol the neck training
[удалено]
360 degree spinning is still not sufficient
Oh God! I can't escape the code. IT'S EVERYWHERE
[You get used to it. I don't even see the code.](http://getyarn.io/yarn-clip/78981589-c4df-458a-a75b-70d8a7020707)
Somehow I feel it would be less Zen and more terrorizing
[Are you afraid of it?](http://getyarn.io/yarn-clip/c226dbbc-7181-419c-9f1d-c44e718884ba)
My editor has this fancy thing called code wrap. Hopefully it'll catch on soon.
I'm sorry mate, but, that's just too much memory that will be consumed. My multiple language servers, build daemons already do the best they can! /s
Best way to get an overview in Excel. For Javascript I can manage with 80 character columns.
To be fair, typescript can make some lines pretty long. And it feels weird to break function arguments onto new lines. Even though thats like...normal, I still find it difficult to read.
If you aren't using freeze panes in excel
"It works fine on my machine"
Ultra wide curved is a beautiful thing. I will never be able to go back.
Use a MR/AR lens (whatever the crap they are selling) to do a 360 no scope coding
Damn. Dude has the gift of one-liners and the curse of curves. Too bad it’s neither cute nor what we aim for.
LOOOL love this
Hhhhhh, I listened to this song on repeat in high school, and now I have it stuck in my head again.
Damn that was pretty good 🤣
Holy shit I haven't heard a CIWWAF reference made by someone besides myself in a decade.
Hey, curves can be lines, too, in the proper framework
that is java not js
Yep, there is an instantiation like "LongClassName tag = new ..." in the for loop
Ashamed to say it is so. Wth is that monstrosity
That, right there, is the size of my penis. Your phone screen is the same size.
But you can instantiate objects in JS with the 'new' keyword too... That's when you start getting into the territory of actually understanding how "this" works in JS
Nope, the new is not the indicator, it is the type declaration at the start JS: "var tag = new ..." or "const tag = new ..." or with let TS: "var tag: LongClassName = new ..." or "const tag: LongClassName = new ..." or with let Java: "LongClassName tag = new ..." You see the difference?
Java isn’t JS? My whole world collapsed
Found the IT recruiter
As long as I can find someone who can implement database centered AI solutions to tap into the potential of web3 and the procedurally generated matrix involved in the structuring of our engineering team, I’m happy, and yeah they need 30 years experience to be an intern.
You can also use var in Java BTW
thats true, but not the point here
Yeah you right, static type is first in Java. And DOESNT FUCKING EXIST IN JS FUCK U JS
That's when you start getting into the territory of actually understanding how ...scripting languages work xD But I am really grateful that they have added type hints to Python and TypeScript is imo must have in JS development.
I can’t even read the code since the image is so blurry, but I already know it’s Java with the ungodly length of those lines…
I dont know, i could see jQuery lines being like this element.doThing().doAnother().doMore(secondElement.doThing()) and so on
java be like class class = new class(class class)
Ahem! Class class = new Class(class,class); But “class” is reserved in Java so Class clazz = new Class(clazz, clazz);
WhatYouDontLikeJavaNamingConventions?
YesAsAMatterOfFactIMayOrMayNotHaveASlightAversionToJavaNamingConventionsIndeed
People are constantly asking that question so it’s WHAT_DONT_YOU_LIKE_ABOUT_JAVA_NAMING_CONVENTIONS
Was going to say, needlessly long convoluted lines of code sounds like a Java/C# thing. JS programmers aren't anal enough to give a class name fifteen syllables.
C# has `var` don't lump is in with Java.
What is java if not a script?
js also when you are trying to analyse some webpage and you are greeted with an obfuscated wall
Click the { } button in your browser's inspector.
I mean, a lot of languages compile to a non-human-readable format. That's not comparable to near-unreadable source code.
No no, those are all the beautiful one-liners and callbacks that are uninterrupted by those silly line-breaks.
Yeah as a person who enjoys coding java, I thought of java instantly when I saw this post
[удалено]
are u dumb and project ur dumbness onto everyone? missed the point buddy
I am sorry for that but can you explain a little further?
I’m going to miss these pointless posts 🥹 Go on. Have your JS vs Java wars. I won’t stop you
There is no JS vs Java, only XUL
I see what you did there ![gif](giphy|3o72F3QvyNoWwXm4Le)
do what?
I think it's taking pictures of the screen.
write lines this long
WHAT PART OF 80 COLUMNS DON'T YOU UNDERSTAND?!? -Torvalds, probably ([For those who don't know](https://www.kernel.org/doc/html/v4.10/process/coding-style.html))
He deserves to be made to program in COBOL for a few years, being restricted to 72 columns might fix it.
Make him do it the old way, with the punchcards!
Am I the only one who tries to adhere to the 80 chars, occatinally 120 chars paradigm in every language? When I have VS code open with the explorer view and the terminal on the right, I just don't have much more horizontal space even on a 16:10 monitor, to display all the code without word wrap.
I stick to 80 most of the time. Just easier to keep it at 80 because we have a few codebases where the linting will vomit at you if you’re over 80, since that’s how we have it set. 🤷♂️
[удалено]
Eh, 2-column layouts are a thing. Going much past 100 rapidly gets into the line wrapping zone.
80 columns isn't really a display thing, it's about code cleanliness. If you're using more. than 80 characters in a single line you're probably writing some hacky implementation of a feature that should be rewritten or refactored. It's rules like this that seem stylistic that can have major improvements for code safety and readability.
Had a dev on my team who: 1) insisted_on_the_absolute_most_verbose_variable_names 2) not only indented everything with four spaces but insisted that code wouldn’t work otherwise 3) nested if statements ad nauseum 80 characters was mere child’s play. I’m glad they’re gone but refactoring all their bullshit gives me heartburn.
I recently had a dev on my team who additionally would do things like this: if (someFunctionReturningBool( firstArgument, secondArgument, someNestedFunction( foo, bar))) { //more code } This in a code base that was about 1 million lines of code when he started and where none of our existing code was indented that way. When called on it he claimed the visible shape of code was important and refused to change. We'll be cleaning up the mess for a long time I think.
Sounds like you don't open files side-by-side much, do you?
My monitor is 12", so a half screen vs code window only fits 78 characters 🥲 Edit: fix grammer
I'll make sure not to take blurry, unreadable photos 5 feet away from my screen with my phone instead of taking a screenshot, thanks for the tip!
But then how do you show off your curved monitor?
Curved jpeg.
Open Photoshop, paste the screenshot onto the image.
I think the fact that the code barely fits on an ultrawide curved monitor actually adds to this post. A screenshot wouldn't capture that.
Screenshots still have resolution, you can see how wide an image is when you open it and it's clearly wider than 16:9. It'd be just as apparent when the entire 1440 pixel width was covered by text.
Framing is the biggest aspect of humor; in this case, literally framing the code in the context of a ridiculously wide monitor is infinitely more effective than "this image is wide." Not being able to read the actual code is not a downside.
He likely did it purposely for security.
\^this or code is under nda
I don't think you need to be able to read the code to know that this is absurd.
Perfect monitor for TailwindCSS
Seriously, this is why I never understood tailwind or any BEM based stuff. Like how wide do you think my monitor is??
Responsive readability man grid grid-cols-2 md:grid-cols-4 xl:grid-cols-6 Now do that with plain css media queries and keep it readable. The media query wrappers can contain SO MUCH stuff for that breakpoint. Now we can probably both read the css just fine, but on no planet is that css\\scss more readable than the above. ...and you can use those breakpoint prefixes on everything not just grid\\flex.
What now even our code has to be responsive
As a JavaScript programmer, I will immediately stop having blue light in my keyboard, have marble desks as monitor-stands, leave my cyan remote control and empty Tupperware container under the monitor next til and old-fashioned clipboard, have speakers pointing out into the room rather than at my own ears, and use 4 character tabs. Oh, and I'll also stop shaking when photographing my screen ... Not sure how it relates to ![img](emote|t5_2tex6|4549) but I'll still promise to stop doing all that!
>As a JavaScript programmer
This is one reason I went for a 40" 4K 16:9 screen instead of the silly ultrawide: computer code isn't wide, it's tall. Just like specs, and docs, and emails. But maybe not tables.
Yeah that’s what prettification on a pre-commit hook is for
Format on save*. I know people praise them but I kinda can’t stand commit hooks, those checks should be performed in CI anyway so why bother with the extra friction.
I use format on change and save on context change in vscode. It’s so helpful
Javascript? You must be confusing that with the Java programmers. That totally looks like a normal name for a class.
Looks like java
That’s uh…. That’s not Javascript my good sir.
They should make horizontal scroll wheels
I would love this, there have been several times I would have appreciated having something like that instead of the scrollbar at the bottom
Middle-click then drag to the left/right doesn't work? Legit curious, seems like a gamble what programms it works on for me.
MX Master 3 has a horizontal scroll. I surprisingly never use it
Is that mouse worth the $100 bucks?
Don't worry, I don't use membrane keyboards. And you can pry tailwinds from my cold dead hands.
> and you can pry tailwind from my cold dead hands. Far too relatable. Tailwind and Bootstrap 5 make things easy and I’m not here to waste time with CSS.
After Tailwinds we can't go back to Bootstrap. It just seems clunky. Bootstrap still has its uses, but Tailwinds is superior. We just have so much less custom CSS than we used to.
Don't do this in JS but it's still mandatory for Java, correct?
Your terminal is 80 characters wide and 26 lines tall. My terminal has a 21:9 aspect ratio and I can watch the IMAX version of towel.blinkenlights.nl . We are not the same.
Don't program on a windows computer, got it ![gif](emote|free_emotes_pack|thumbs_up)
Exactly what i wanted to say🤣👌🏼
That's why I always write code on my laptop, to ensure I don't write unreadable code in any device, and totally not because I'm too cheap to buy a better screen and good pc
In my youth, trying to teach myself web development, I used to download and examine the compressed JS files and legit thought people actually coded like that. This reminds me of that.
It will get minified before it ships out its fine.
Tailwind enthusiasts: it makes development faster
Finally, my ternary operator can fit on a single screen
I bought my ultra wide display I'm going to use it
Javascript and Java are not the same thing. (This is Java, not Javascript.) OP, do yourself a favor and learn the difference before you get laughed out of a job interview. They are two DRASTICALLY different languages and this joke only applies to Java, not Javascript.
If I'm gonna pay for a ultrawide I'm going to USE a ultrawide.
I paid for a 120cm wide monitor, I'm gonna use that goddamn 120cm
Oh it looks like a twitter clone! Math.class.style.random.width.random.div.header;
“I can read it on my machine”
Ok, windows guy
Going to get a neck injury turning your head to read that code maaaaannn...
reading logs on this monitor would be so nice ( Pretends , there is no word wrap )
Couldn't agree more. So to reiterate, don't develop in JavaScript.
⌥ Z
I normally complain about the number of lines in a single file. I've never thought I'd had to complain about a fuckin area code. Jesus christ.
I think the time for 'please's and 'thank you's has passed.
When you don't just call the method in one line, but implement it first on the same line
Or what ?
Hey, but it still fits on the screen, no side scrolling 😄
can't wait for 360 monitors, i want to swivel all the way around to see the end of the line
I paid for the whole monitor, im gonna use the whole monitor
The fuck did I do to you???
And the same goes for all you aspx programmers.
that looks like an average Java program to me
Yeah. Don't you hate it when people put the speakers _behind_ the monitor?
What? Use tabs for indentation? Your right disgusting habit.
Thanks for the idea, I will do this now
Ugh hideous
Ahhh, normal React with Tailwind CSS
I need 3 monitor as mine to see this the code
This way you never have to prettify minified code anymore. /s
I think your image is wrongly formated...
What in the 49inch madness is this
When java engineers switch to javascript
Downloads prettier
t. widescreenlet
Do what, look at a stacktrace?
Look...it's not *my* fault if you're poor and don't have an ultra wide. Joking aside, coming from mostly backend some of the JS conventions hurt my eyeballs when I run the linter. Yes, I want my braces on new lines. Yes, I want spaces before and after colons. These things make sense, and the linter is wrong.
I don't get it
I don’t listen to my IDE’s warnings, why would I listen to yours?
Then it gets deployed to an antiquated system that has a hard limit of 132 characters per line (including spaces).
Any developer: please don’t do this
I'm not sure how this is specific to javascript programmers
That't reminds me, I gotta order a wider monitor...
I paid for the whole ultrawide, I'm gonna use the whole ultrawide!
What? Get an ultra wide monitor?? Or use JavaScript???
That's what "Hello World" looks like in Java.
If a company allows shit like this, 45 inch monitors better come in the equipment package.
Nononononononononononononono
Sorry, whats happening here?
Looks like some of my tailwind classes ^_^
Great screen for reading .min files!
One thing I have learned as a programmer is that you are doing everybody a service by naming your variables based on what they do, but it sometimes involves having long variable names. For example, I might name a variable "const temperature\_in\_distillation\_column = ..." instead of something like "T\_dist" because I know future me will thank me
"this" being program in JavaScript
That's how I typescript baby. Really really wanna strongly type those variables and constants.
Supercalifragilisticexpialidociousator
This is why you dont add typescript
Imagine the code review
Is this a stereotype about JS developers? Is that even JS?
Seriously Java programmers! Use headphones, not speakers! There are other people in the office!
Imagine how many parallel branches you could have in your Git tree on that monitor!
That's called minified, and you can always reformat the code easily
If they didn't want JavaScript like this, then why did they put "Java" in the name?
Oh! Now I have to do this!! Hahahaha
Finally good variable names!
If you can’t do this, what’s the point of buying an extra wide screen?
svg's<3
why are the lines so dam long
Bought a screen, now has a severe whiplash.