Tag Info

New answers tagged

1

Your actual question is kinda more general so it's hard to answer, but your form validation example is a little bit more specific, so I will try to stick with that one. As you said you should always be DRY, as much as possible. That's a good thing to keep in mind as a developer. However you should distinguish between the things that they are similar and you ...


6

I don't think they are suggesting it for speed. Sending emails becomes a problem when you need to send a lot of them from a single IP. That IP might end up as a spammer and so your emails will not be sent anymore. Also if you try to send an email and it bounces for some reason, you the sender, must resend it, and check again if it fails and if so, send it ...


1

Mainstream Javascript engines added JIT (Just In Time) compiling around that time. Mozilla added TraceMonkey to Firefox, Google added Crankshaft to v8 around that time as well. John Resig mentioned TraceMonkey when it was just coming out. These optimizing runtimes improved javascript performance in browsers by an order of magnitude. Before then, ...


1

As @Songo's comment points out: "Frameworks won't write ur business logic". Once you get beyond simply processing a form and saving the information to a database right away, you'll most likely need some of the OOD knowledge to help you implement features in a maintainable, well structured way that future developers won't want to burn you at the sake for. ...


1

In many applications, the 'web app' is one part of the project alongside many other apps with many other non-website purposes. A trivial app could, for example, obtain input from a user, save it to a database, and redirect to a new page. A more complex app might access several other internal applications, and perform additional business logic and ...


1

Using a framework while not understanding the basic concept of OO will eventually give you a hard time. Knowing about OO will give you insight into when to use which design pattern, how to properly differentiate functionality and assign them to different classes etc. So in fact by learning how a framework is set up will provide you with a benefit for the ...


1

Everything can be written without using any of the Object Oriented paradigms. You can also write code without comments, good variable names, subroutines...All kinds of stuff. In the long run, however, you generally end up saving time if you do it the proper way.


-1

For your issue I suggest to you to create a routing rule in your SMS gateway. The routing rules help you to create a SMS route (inbound, outbound). With this route you can control the SMS messages you wish to receive / send. You can find detailed information about routing rules on this website: ...


1

Don't pass an object to the client classes. Pass a function that gives them the object they need (a factory, a provider). Convince them that calling this function is cheap, because it immediately returns a cached value when possible, so that they don't keep their own long-lived cached values. Do away with variables.oUserDao and replace it with some ...



Top 50 recent answers are included