What do you guys think of code?
Go to solution
Solved by Nuluvius,
oh shit dude
so if i use 20 tags instead of one to define them all, will the code be bad?
because i just do anything that works...
Judging by the line numbers present in that picture I don't think that at this point you should worry too much. Such is the process of learning...
Generally though you should try to understand and learn good software engineering and design principles as soon as possible. It's not all about hammering out line after line of code and crunching that next problem as fast a possible. These principles are arguably far more important and valuable.
- Single responsibility, Open-closed, Liskov substitution, Interface segregation and Dependency inversion (SOLID).
- Atomicity, Consistency, Isolation, Durability (ACID)
- Dependency Injection (DI)
- Inversion of Control (IoC)
- Design Patterns
- Test Driven Development (TDD)
- Behaviour Driven Development (BDD)
- Keep it Simple, Stupid (KISS)
Be mindful of Code Smells, Antipatterns and increasing Cyclomatic complexity i.e. lots of branching logic such as those if elses... get rid of them and employ a design pattern.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now