MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/a6txtp/coming_from_python_to_js/ebzhygn/?context=9999
r/javascript • u/chroner • Dec 16 '18
const print = console.log
I found my safe space.
156 comments sorted by
View all comments
94
If I came across that shit at work, I'd git blame in a heartbeat and tell you to never do that again.
git blame
But if you're doing it in personal projects, more power to you, I guess. Nothing really wrong with it code-wise.
0 u/[deleted] Dec 17 '18 [deleted] 26 u/placidified Dec 17 '18 console.log(error) // eslint-disable-line no-consolecries in legacy code 3 u/Morphray Dec 17 '18 You forgot eslint-disable-line semi also 2 u/Anaphase Dec 17 '18 nah, that's in the base rules #fucksemicolons
0
[deleted]
26 u/placidified Dec 17 '18 console.log(error) // eslint-disable-line no-consolecries in legacy code 3 u/Morphray Dec 17 '18 You forgot eslint-disable-line semi also 2 u/Anaphase Dec 17 '18 nah, that's in the base rules #fucksemicolons
26
console.log(error) // eslint-disable-line no-console
cries in legacy code
3 u/Morphray Dec 17 '18 You forgot eslint-disable-line semi also 2 u/Anaphase Dec 17 '18 nah, that's in the base rules #fucksemicolons
3
You forgot eslint-disable-line semi also
eslint-disable-line semi
2 u/Anaphase Dec 17 '18 nah, that's in the base rules #fucksemicolons
2
nah, that's in the base rules #fucksemicolons
94
u/mishugashu Dec 16 '18
If I came across that shit at work, I'd
git blamein a heartbeat and tell you to never do that again.But if you're doing it in personal projects, more power to you, I guess. Nothing really wrong with it code-wise.