So it creates an array of five bodyForms, loops through a pre-existing array of bodies (presumably also with a size of 5, but there's code guarding against larger body arrays), and sets the form up, if the corresponding body has a label.
So what about this is shitty programming? I don't know the context, of course, but it doesn't seem like any weird shenanigans are at play here...
just curious, what language is this? I recently started learning to code, I only know some of 2 languages(1 semester each, and we've barely started on the 2nd)
This is very bad PHP. Small parts of the codebase date as far back as php4, most of it is php5. No, patterns, no SOLID, no forethought, zero architecture. You can make more sense out of a cowpat.
It has been over 20 years for me, but I think it’s Perl, the pathologically eclectic rubbish lister. The $ before variables indicates they are “s”calars, as opposed to “@“rrays.
11
u/[deleted] Jan 11 '22
So it creates an array of five bodyForms, loops through a pre-existing array of bodies (presumably also with a size of 5, but there's code guarding against larger body arrays), and sets the form up, if the corresponding body has a label.
So what about this is shitty programming? I don't know the context, of course, but it doesn't seem like any weird shenanigans are at play here...
8
u/barzamsr Jan 11 '22
$the $logic $escapes $meFTFY8
u/alexadros2311 Jan 11 '22
What exactly is so bad (apart from using PHP)?
1
u/iLikeVideoGamesAndYT Feb 05 '22
just curious, what language is this? I recently started learning to code, I only know some of 2 languages(1 semester each, and we've barely started on the 2nd)
2
u/BumJamber Jan 11 '22
What language is this