▲ 1429 ▼ Golang be like (i.imgur.com) submitted 3 years ago by mycroftholmess@lemm.ee to c/programmer_humor@programming.dev 137 comments fedilink hide all child comments
[–] newIdentity@sh.itjust.works 0 points 3 years ago* (1 child) That's why I said ESLint permalink fedilink source parent hideshow 2 child comments replies: [–] Exusgu@lemmy.world 8 points 3 years ago (1 child) ESLint won't prevent you from running your code, which is what the OP is on about. Hence the confusion in this thread. permalink fedilink source parent hideshow 2 child comments replies: [–] newIdentity@sh.itjust.works 2 points 3 years ago* (last edited 3 years ago) (1 child) Oh it will. At least in combination with Vue. At least that's the default. Of cause you can disable it. permalink fedilink source parent hideshow 2 child comments replies: [–] killeronthecorner@lemmy.world 4 points 3 years ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] newIdentity@sh.itjust.works -1 points 3 years ago* (last edited 3 years ago) (2 children) 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)" permalink fedilink source parent hideshow 4 child comments replies: [–] iByteABit@lemm.ee 3 points 3 years ago 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. permalink fedilink source parent [–] killeronthecorner@lemmy.world 3 points 3 years ago 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. permalink fedilink source parent
[–] Exusgu@lemmy.world 8 points 3 years ago (1 child) ESLint won't prevent you from running your code, which is what the OP is on about. Hence the confusion in this thread. permalink fedilink source parent hideshow 2 child comments replies: [–] newIdentity@sh.itjust.works 2 points 3 years ago* (last edited 3 years ago) (1 child) Oh it will. At least in combination with Vue. At least that's the default. Of cause you can disable it. permalink fedilink source parent hideshow 2 child comments replies: [–] killeronthecorner@lemmy.world 4 points 3 years ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] newIdentity@sh.itjust.works -1 points 3 years ago* (last edited 3 years ago) (2 children) 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)" permalink fedilink source parent hideshow 4 child comments replies: [–] iByteABit@lemm.ee 3 points 3 years ago 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. permalink fedilink source parent [–] killeronthecorner@lemmy.world 3 points 3 years ago 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. permalink fedilink source parent
[–] newIdentity@sh.itjust.works 2 points 3 years ago* (last edited 3 years ago) (1 child) Oh it will. At least in combination with Vue. At least that's the default. Of cause you can disable it. permalink fedilink source parent hideshow 2 child comments replies: [–] killeronthecorner@lemmy.world 4 points 3 years ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] newIdentity@sh.itjust.works -1 points 3 years ago* (last edited 3 years ago) (2 children) 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)" permalink fedilink source parent hideshow 4 child comments replies: [–] iByteABit@lemm.ee 3 points 3 years ago 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. permalink fedilink source parent [–] killeronthecorner@lemmy.world 3 points 3 years ago 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. permalink fedilink source parent
[–] killeronthecorner@lemmy.world 4 points 3 years ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] newIdentity@sh.itjust.works -1 points 3 years ago* (last edited 3 years ago) (2 children) 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)" permalink fedilink source parent hideshow 4 child comments replies: [–] iByteABit@lemm.ee 3 points 3 years ago 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. permalink fedilink source parent [–] killeronthecorner@lemmy.world 3 points 3 years ago 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. permalink fedilink source parent
[–] newIdentity@sh.itjust.works -1 points 3 years ago* (last edited 3 years ago) (2 children) 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)" permalink fedilink source parent hideshow 4 child comments replies: [–] iByteABit@lemm.ee 3 points 3 years ago 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. permalink fedilink source parent [–] killeronthecorner@lemmy.world 3 points 3 years ago 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. permalink fedilink source parent
[–] iByteABit@lemm.ee 3 points 3 years ago 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. permalink fedilink source parent
[–] killeronthecorner@lemmy.world 3 points 3 years ago 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. permalink fedilink source parent