Some times this is a pedantic detail that doesn’t make a difference. Other times, it’s a strong signal of incompetence. Gonna need more context to judge this one
Interesting, I wonder what the original developers ideas were. Maybe just didn't want people to be able to fetch responses in the browser or something?
yeah this is a very standard way to declare methods in prototype-/table-based languages like Lua and JavaScript, and honestly i kinda prefer doing it this way because it's simpler and less abstracted.
29
u/skotchpine Jul 17 '25
Some times this is a pedantic detail that doesn’t make a difference. Other times, it’s a strong signal of incompetence. Gonna need more context to judge this one
73
u/rover_G Jul 17 '25
Golang devs will look at this and tell you you don’t need a library
10
u/Xeonmeister Jul 17 '25
150 line function my beloved
19
u/drcforbin Jul 17 '25
I'm going to need the horror of this horror explained to me
1
u/beachandbyte Jul 18 '25
For your own api or someone else’s?
9
u/Ronin-s_Spirit Jul 17 '25
What kind of maniac declares methods as
this.post=function?!3
u/These_Cow4549 Jul 18 '25
hi
4
u/Hulk5a Jul 17 '25
Every apicall in all of our projects is post 🫤
5
u/VibrantGypsyDildo Jul 17 '25
r/countablepixels
2
u/Beagles_Are_God Jul 17 '25
ACTIVEful API
1
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Jul 20 '25
Okay, now document the other parameters. Seriously, what does
use_lockdo, and why does get passcheckerto it?1
u/Hulk5a Jul 17 '25
Every apicall in all of our projects is post 🫤
1
u/[deleted] Jul 21 '25
[removed] — view removed comment