DEV Community

Discussion on: What do you dislike about your favorite language?

Collapse
 
gregfletcher profile image
Greg Fletcher • Edited

Looking forward to the Dev.to podcast!

My favorite language is JavaScript, although Rust is a close second. I'm just more familiar with JavaScript atm.

Least favourite feature --> function.arguments

Example:

function antiPattern(){

let lol = arguments[0];

console.log(lol);

}
antiPattern('💩'); // 💩

It leads to unclear code and I find it's inclusion in JavaScript a huge mistake. It's deprecated now but I just don't understand why it was included in the first place.

JavaScript isn't perfect but it's very approachable I appreciate the amazing community that exists around it. It's like a melting pot of creativity.