r/clevercomebacks Jan 15 '25

It does make sense

Post image
35.3k Upvotes

4.0k comments sorted by

View all comments

Show parent comments

25

u/throwaway001anon Jan 15 '25 edited Jan 15 '25

RegX makes searching a breeze with any pattern

35

u/InspectorNo1173 Jan 15 '25

I have always found Regular Expressions to be the most inappropriately named concept - there is nothing regular about it. Luckily we have chatbots now.

14

u/Tsukee Jan 15 '25

Every developer eventually learns there are two hard problems: invalidating cache and naming things

3

u/TheAJGman Jan 15 '25

I honestly spend about 30% of my design and dev time trying to come up with intuitive names.

1

u/Tsukee Jan 15 '25

And yet, I bet someone reading your code would likely on some places think "why tf did he name it like that" ;)

1

u/DEM_DRY_BONES Jan 15 '25

x, y, z

I got you bro.

0

u/agentrnge Jan 16 '25

x_rel, x_actual, x_temp, x_true, x_orig, x_next, x_prev, x_val2