2 karma · joined Feb 15, 2012 (14y ago) · 7 submissions
comment 14y ago · link · parent
http://stackoverflow.com/questions/9405148/how-can-i-bubble-...
...I always just do something along the lines of window.MyAppNamespace.EventProxy = _.extend({}, Backbone.Events);
The nice thing about this tactic is that it loosely couples interactions between your views. A coworker who also uses Backbone.js prefers passing references between your views to each other. Although this makes the code easier to read in some cases, since it's more obvious what the flow of control is, it tightly couples the components.
comment 14y ago · link · parent
What are some examples of other paradigm-shifting (argh, buzzword) ideas in the world of software development? Deviations from the norm often become the new norm, and I'm too young and inexperienced (I've only been out of college for 10 months) to remember the "old way" of things.
comment 14y ago · link · parent
Of course, I'll trust what an actual engineer from Facebook is saying over some article that I can't even cite. Is this not the case?
comment 14y ago · link · parent
As with most things, it's both good and bad. It IS fantastic that you can so easily toss a .php file into a directory, make a few minor Apache config adjustments, and BAM - dynamic website behavior.
...that's also a glaring weakness, though, when a complex application is developed without the structure imposed by other tools. I have to maintain an event registration system written in PHP, and I'm having incredible difficulty with it. The logic to store form data, look for errors, display the current form, and prepare the form for submission are all in a single, 1000+ lines spaghetti-code file.
I think the author's point (and certainly the one I'm making) is not that this is the only possible outcome of writing in PHP, or that other languages do not have this problem. Rather, the point is that the lack of cohesive structure removes barriers to writing bad code; in fact, it makes it (initially) easier than writing good code.
comment 14y ago · link · parent
http://code.google.com/p/php-snow/
Frameworks definitely help a lot. I've done a little work with FuelPHP, and I found that to be pretty pleasant.