What are the common patterns in web programming?

I am trying to write my first large web application (more than one cgi file), and as I continued to move forward with a rough prototype, like trying to predict more tasks, this is the one that has accumulated (in particular order).

* Validations and input sanitizations * Object versioning (to avoid edit conflicts. I dont want hard locks) * Exception handling * memcache * xss and injection protections * javascript * html * ACLs * phonetics in search, match and find duplicates (for form validation) * Ajaxify!!! 

(I cut off the elements related to the project).

I know that every todo will be completely tied to his project and the technologies used. However, I am wondering if there is a todo pattern in your subjects, as well as the sequence in which you encountered the guys, encountered them.

+4
source share
4 answers

If this is a really large web application that will be deployed for general consumption, I would add to the "Speed โ€‹โ€‹limit".

+4
source

Model-View-Controller (MVC) modeling template : Separates user inputs and presentation level from your application data.

+3
source

Almost your entire list is "Framework."

Almost none of them is the functionality that the user actually sees.

My to-do list never looks like this. Never.

Therefore, I have this advice.

STOP.

Do it instead.

  • Find a framework that does this.

  • Focus on the actual users and their actual use cases.

Now your to-do list will have actual use cases that the actual user really cares about. This is what should be on your to-do list. Not a framework technology. Use cases.

+3
source

model controller, of course. start with some frameworks first. in php kohana is good, for python django is good, ruby โ€‹โ€‹on rail, etc.

+1
source

Source: https://habr.com/ru/post/1306197/


All Articles