There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

Rednax , in Golang be like

I hate this in C++ when it does this with parameters of an overidden function. I don’t need that specific parameter, but if I omit the variable name, I reduce readability.

Dienes ,

[[maybe_unused]]

Rednax ,

Which is have been able to use since we switched to C++17 … a couple of months ago.

newIdentity , (edited ) in Golang be like

Isn’t it the same with ESLint 6 (JavaScript/ES6)?

IUsedTo ,

I don’t believe so.

newIdentity ,

https://sh.itjust.works/pictrs/image/d379a67d-36d6-4694-b5ab-6fc7a3c1bbe9.webp

Are you sure?

(this is my work pc so wayyy to much work to make a screenshot and upload it)

peterj74 ,

That’s from ESLint, not javascript itself. JS doesn’t care about unused variables

newIdentity ,

That’s why I said ESLint

Exusgu ,

ESLint won’t prevent you from running your code, which is what the OP is on about. Hence the confusion in this thread.

newIdentity , (edited )

Oh it will. At least in combination with Vue. At least that’s the default. Of cause you can disable it.

killeronthecorner ,
@killeronthecorner@lemmy.world avatar

You’re describing many things that are not JavaScript the language. If you create and use tools that will stop you then yes they will stop you.

newIdentity , (edited )

I said ESLint. Not Javascript. ESLint is a linter for JavaScript. That’s why I put JavaScript in brackets. Some people don’t know what ESLint is. I’m talking about ESLint the whole time. Its not JavaScript specific but it’s mostly used for JavaScript

You yourself are talking about ESLint. You said that ESLint won’t prevent me from creating unused variables and functions when it clearly does. It won’t even run and throw an error

Edit: ohh it’s a Lemmy bug. The comment didn’t update yet. Originally I said “ES6” then I changed it to “JavaScript” and then I changed it to “ESLint (JavaScript)”

iByteABit ,

There’s a load of confusion in this thread.

What the post is about is compiler based clean code enforcement. JS doesn’t do this, but your editor in combination with ESLint prevents you from running the program. However this isn’t a general JS thing, just the way your setup works.

killeronthecorner ,
@killeronthecorner@lemmy.world avatar

Just saw your edit, and yeah, that makes sense as to the confusion.

Either way, your comment enquired as to whether it was “the same” and it still isn’t because for Go it’s a language feature and ESLint is not a language, it just allows you to create similar behaviour for JavaSvript which, by default, does not exhibit that behaviour.

jim_stark ,

JS simply does not care.

noli ,

Depends on your eslint config, but yeah that’s an option.

Dalinar ,

You’re confusing it with your linter. Java script don’t care.

newIdentity ,

That’s why I said ESLint

It’s a Linter for JavaScript. Some people might not know what ESLint is that’s why I put it in brackets

Darkaga , in No Scrum - Parody of TLC "No Scrubs"

Thanks for this, I'm sending it to my Scrum Master.

yum13241 , in Shower thought:

Speculative haxecution.

dipshit , in Golang be like

that’s just clean coding. use your fucking vars

asdfasdfasdf , in Pick a side Javascript

Any senior developer who says that should instantly get a demotion to intern.

ImpossibleRubiksCube ,

Followed by a public beating.

Kerrigor ,
@Kerrigor@kbin.social avatar

Forced to develop on Windows

HarkMahlberg ,
@HarkMahlberg@kbin.social avatar

Which part? Saying that it's simple, or making fun of saying that it's simple?

ImpossibleRubiksCube ,

We can do both. This is clearly not a laughing matter. 🤨😤🚬🔨🐖

HarkMahlberg ,
@HarkMahlberg@kbin.social avatar

Haha, ok I didn't see which community this was posted in.

Moc ,

There are two kinds of simple

  • Simple to learn to use
  • Simple to understand, and use at a complex level.

JavaScript is the first, but definitely not the second.

yads , in No Scrum - Parody of TLC "No Scrubs"

Hilarious

PipedLinkBot , in No Scrum - Parody of TLC "No Scrubs"

Here is an alternative Piped link(s): piped.video/watch?v=BuVsccEsMRI

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I’m open-source, check me out at GitHub.

leggettc18 , in data secured

I mean, I hate Windows as much as the next guy, but the Recent Files list can help pick up the slack here. Also Windows typically saves new files to appropriate places and saves edits to existing files in the same place you opened the file at. Not knowing where a file is has never really been a problem I’ve had with Windows. If I have it’s usually been because an individual 3rd party app did something weird.

PipedLinkBot , in The Agile Paradoxon - Striped Giraffe

Here is an alternative Piped link(s): piped.video/watch?v=Bez7wmAsxjE

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I’m open-source, check me out at GitHub.

sam , in I go to ABSURD tech conference. - Programmers are also human
@sam@lemmy.ca avatar

This guy is hilarious!

merc , in The Password Game

Some useful resources:

Emoji Moon Phases, you’ll need Waxing Gibbous right now (🌔)

starinastar.com/moon-phase-emojis-a-review/

Today’s Wordle Answer:

www.tomsguide.com/…/what-is-todays-wordle-answer

The Elements sorted by Atomic Number:

www.angelo.edu/faculty/…/structure_numbers.htm

Chess Move Solver:

nextchessmove.com

What killed me was trying to feed the chicken while hunting for a YouTube video of a certain length. I did get past that once when I was lucky enough to be asked for a 9 minute 0 second video. Because people upload “timer” videos of exactly X minutes, that was possible. The “26 minute 59 second” video resulted in a dead chicken.

squaresinger ,

What the hell is a gibbous and why does it need waxing?

GTG3000 , in The Password Game

I gave up around the roman numbers because I chose to include May

Think I should try again.

edit: okay, I’m going to call it on the Wordle rule.

Zagorath ,
@Zagorath@aussie.zone avatar

Shortly after the Wordle rule I got told I had to include the country Colombia. Which, with an L, made it impossible to multiple Roman Numerals to equal 35…

Dimitriye98 ,

Only uppercase letters get treated as Roman numerals, same for periodic table. The real killer one for those two is YouTube url

Zagorath ,
@Zagorath@aussie.zone avatar

For me it wouldn’t even let me copy/paste a YouTube URL. Trying to do so kept automatically pasting in the title of the damn video. 😠

brezelradar ,
@brezelradar@feddit.de avatar

it wouldn’t even let me copy/paste

It’s so real, right?

I hate when they forbid c/p password fields - that’s so stupid and even lessens security.

juliebean ,

im case you tackle it again, the month does not need to be capitalized, and if its lower case, it doesn’t count as a roman numeral

PipedLinkBot , in I go to ABSURD tech conference. - Programmers are also human

Here is an alternative Piped link(s): piped.video/watch?v=xmVt8lC74ns

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I’m open-source, check me out at GitHub.

ytrav , in Golang be like

lints that underline unused vars as errors, and not notes or warns are the worst lints…

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines