Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
The problem of JavaScript imo is that it can easily and rapidly become a bloated messy pile of characters, and the only way to avoid that is to follow ES6 conventions and actually write quality code which is a plus for me. I actually enjoy node with async/await.
-
mrblarg877y@JKyll I think the main problem was that modularity was added to the language very late in its evolution. If you go for decades without standardized ways to organize your code, you will get a reputation for being jumbled.
-
vhoyer13537y@ArtNo the only jQuery I'll ever need is
function $(q){
return document.querySelector(q);
}
it's such a great framework that I think I'll put it in my github and share with the community under the name of jQ (because jQuery is too long) -
@vhoyer Well,
const $ = s => document.querySelector(s);
is shorter :P
And there's https://gist.github.com/12fb951a8b8... already :D
( though my $ functions usually have a small check to see if they should return querySelector or querySelectorAll ) -
vhoyer13537y@21stCenturyJoku that's great, I'll start using it! hsushshshs he the .on is a great addition, gonna add a "contributing" section to my repo lol
-
cmseguin77y@SauceBoss
<?php
$foo = 1;
print(($foo == 1) ? "uno" : ($foo === 2) ? "dos" : "tres");
print("\n");
Guess what this prints... Hint: its not "uno"
Every time i touch javascript
undefined