Skip to main content
7 events
when toggle format what by license comment
Jan 19, 2015 at 9:23 comment added bg17aw you're 23, congrats on being an experienced programmer, however, lots of experienced programmers working on big projects have constraints and cannot use frameworks for different reasons. Some even try to avoid jquery if they only need one or two of the facilities it offers, why load a frameworks just for a small part of it's facilities etc. In this context, saying the code is littered just seemed inappropriate to me. Of course, I might be wrong.
Jan 16, 2015 at 21:41 comment added Derek Dowling @bg17aw they're more than welcome to use that code if they so choose. However, many newcomers to programming don't realize that there are many libs/tools out there that are built specifically to deal with what they are trying to do, mitigating the need to re-invent the wheel. Symfony's Validator is but one example that I'm familiar enough to vouch for which would handle all of the checking that they are doing manually and have probably already handled all of the edge cases we normally would overlook. They are more than welcome to search for their own library.
Jan 16, 2015 at 10:47 comment added bg17aw "littered throughout the code" ? That is your opinion and a very poor choice of words to express it. Please provide some reference as to why that is litter and why this can't be used, and what are the alternatives. Just referring to a framework is not really a code review. A project might not be able to use a framework, and maybe not the one you (again, personally) prefer.
Dec 18, 2014 at 21:27 comment added Derek Dowling @bg17aw I'm not against any web framework, Symfony just happens to have easy to use decoupled components that can be used outside of the framework itself. The Validator component I linked to just removes the need for all of those "if param exists and has format" checks littered throughout the code.
Dec 18, 2014 at 16:47 comment added bg17aw Good point on the trim function. Is not returning anything.
Dec 18, 2014 at 16:42 comment added bg17aw Headers: usually you want them different per page. Can't say I've seen them in separate files before. Symfony: So instead of commenting the code, you recommend using a framework. Why not CodeIgniter, Lavarel, Zend etc?
Dec 14, 2014 at 21:54 history answered Derek Dowling CC BY-SA 3.0