DEV Community

Meghan (she/her)
Meghan (she/her)

Posted on

What do you dislike about your favorite language?

To truly appreciate our languages, we must know their faults. So what's your pet peeves and biggest pains in you side about your favorite language you use everyday?

Top comments (23)

Collapse
Β 
_bigblind profile image
Frederik πŸ‘¨β€πŸ’»βž‘οΈπŸŒ Creemers β€’

In Python, if you write multiple strings adjacent to each other, Python concatenates them. For me, this often leads to annoying bugs like

l = [
    "A",
    "B"
    "C",
    "D"
]

print l
# prints ["A", "BC", "D"]
Collapse
Β 
nektro profile image
Meghan (she/her) β€’

Ouch! Haha yeah I can see how that hide it self well!

Collapse
Β 
val_baca profile image
Valentin Baca β€’

You can thank ISO C for that one:

Not that python directly inherits the behavior, but they probably decided to go with that behavior based on how C does it.

Collapse
Β 
perttisoomann profile image
Pert Soomann β€’

When you see that one article saying that "this language X is so dead!" and it makes you doubt your life choices.

Collapse
Β 
cjbrooks12 profile image
Casey Brooks β€’ β€’ Edited

In Java and Kotlin, I usually create literal arrays with each item on a new line and all columns lined up nicely. To add a new item, I can then just copy any line and change what I need. To edit all items at once I just add a carat at the beginning of each line and off I go.

EXCEPT FOR THE LAST LINE WHICH DOESN'T HAVE A COMMA.

val items = arrayOf(
    Item(1, "One",   1.1),
    Item(2, "Two",   2.2),
    Item(3, "Three", 3.3),
    Item(4, "Four",  4.4),
    Item(5, "Five",  5.5) // <-- I want to put a comma here so badly!
)
Collapse
Β 
thermatix profile image
Martin Becker β€’ β€’ Edited

For me I would say in ruby how easy it is for nil to passed around which then causes can't do #x for nil and then you're like, "why is it nil?" it's even worse when you get nil in weird strange places.

Collapse
Β 
doshirae profile image
Doshirae β€’

In Ruby, the fact that the normally-named filter function is named select or find_all is really annoying

And oh gosh way too many methods for the objects that is insane. You can easilly cut it down to 2 times less because there is a lot of aliases too

Collapse
Β 
antjanus profile image
Ant The Developer β€’

Golang is one of my favorite languages and the thing I find the most frustrating is the lack of architecture standards.

Up until recently, it's been a wild west as far as package management and project setup. Where do you put your code? How do you structure your folders? What web frameworks are actually worth investing into?

Basically same issues Node had early on. It's getting MUCH better but I feel like it's still a problem.

Collapse
Β 
bwhitelaw24 profile image
Ben W β€’

I feel like you just dont need a framework in Go, also hasn't the location of where the code should go been in the documentation since release?

Collapse
Β 
maple3142 profile image
maple β€’

javascript "weak typing", not dynamic typing.

Collapse
Β 
ecnepsnai profile image
Ian Spence β€’

Golangs lack of enum support is easily the most annoying thing about the language for me.

Currently I have a ruby script that has an enum schema and it prints out golang code for each enum it has all of the constants, an array of all the values, and a function to test if a given object is one of the enum values.

Collapse
Β 
maxart2501 profile image
Massimo Artizzu β€’

That's easy: there are no types in JavaScript (and it will be like that for a long while).

Collapse
Β 
k2t0f12d profile image
Bryan Baldwin β€’

Diphthongs!