6. DRY
In software engineering, Don't Repeat
Yourself (DRY) or Duplication is Evil (DIE) is a
principle of software development
7. DRY (Programmers Story #1)
Hi.
I am Tom. I am writing my backend with PHP
and frontend with html5 and JS. Now I am
writing forms of my web shop. I am writing
frontend validator with js and backend
validation with php....
//Say no to Tom
8. KISS
KISS is an acronym for the design principle
"Keep it simple, Stupid!".
13. SOLID
The principles when applied together intends
to make it more likely that a programmer will
create a system that is easy to maintain and
extend over time.
PS. SOLID (Single responsibility, Open-closed,
Liskov substitution, Interface segregation and
Dependency inversion) - WTF Name??
14. SRP (Single responsibility principle)
class RestaurantAndFirstShopOnTheLeft {
//Restaurant
int waiter_age;
char[] waiter_name;
float pizzaCost;
//Shop
float itemsCost;
}
15. OCP (Open/closed principle)
“software entities … should be open for
extension, but closed for modification”.
final class HashMap{...} //??
final class ArrayList{...} //??
final public getItem(...){...} //??
16. LSP (Liskov substitution principle)
“objects in a program should be replaceable
with instances of their subtypes without
altering the correctness of that program”
Object o = new ArrayList();
17. ISP (Interface segregation principle)
“many client-specific interfaces are better
than one general-purpose interface.”
class Restaurant : Building {
//...
}
20. MVC
Model–view–controller (MVC) is a software
architecture pattern which separates the
representation of information from the user's
interaction with it.
22. MVP (First View)
Model–view–presenter (MVP) is a derivative of
the model–view–controller (MVC) software
pattern, also used mostly for building user
interfaces.