[ Index ][ Official Thread ][ Bottom ]

(@zaun@fedi.absturztau.be) 16/09/20(Wed)10:45:04 id:1600267504 No. 1

(@SuperDicq@cdrom.tokyo) 16/09/20(Wed)10:47:38 id:1600267658 No. 2 >>3

This is a classic PHP trick they don't tell you in school. This is the easiest way to convert an array of objects into an an associative array.

(@gopiandcode@freespeechextremist.com) 16/09/20(Wed)10:50:54 id:1600267854 No. 3 >>4 >>5

imagine going through an entire parse unparse cycle to do a basic processing task

(@SuperDicq@cdrom.tokyo) 16/09/20(Wed)10:53:16 id:1600267996 No. 4

In some cases this is actually useful, this example however is very stupid.

(@zaun@fedi.absturztau.be) 16/09/20(Wed)10:53:38 id:1600268018 No. 5 >>6

imagine doing this for accessing a single property on the object

(@SuperDicq@cdrom.tokyo) 16/09/20(Wed)10:58:55 id:1600268335 No. 6 >>7

whoever wrote is probably some PHP version 3 boomer who doesn't understand what objects are.

(@zaun@fedi.absturztau.be) 16/09/20(Wed)10:59:42 id:1600268382 No. 7 >>8 >>9

no it was somerandom CS student in 2013 who now has a degree and makes 4 times my wage

(@SuperDicq@cdrom.tokyo) 16/09/20(Wed)11:02:23 id:1600268543 No. 8


(@SuperDicq@cdrom.tokyo) 16/09/20(Wed)11:02:42 id:1600268562 No. 9

I'd personally recommend freelancing if you don't have a degree. You can get paid a lot more money and work with less shitty code.

[ Top ] [ Index ] [ Refresh ]