Core Programming Principles

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Core Programming Principles

fschmidt
Administrator
Reply | Threaded
Open this post in threaded view
|

Re: Core Programming Principles

dawis
Interesting.

would you mind to give examples to the bad/good programming according to those points. for example, what does it mean for the code to be asymmetric, and why is that helpful ?  
Reply | Threaded
Open this post in threaded view
|

Re: Core Programming Principles

fschmidt
Administrator
This post was updated on .
I will comment on each principle.

Kanso - Nothing is more important than simplicity.  Note that modern culture hates simplicity and calls anything simple "simplistic".  When programming, try to write code that modern scum will hate and will call "simplistic".

Fukinsei - Obviously asymmetry doesn't apply because code isn't geometric.  But irregularity does apply.  The point is that when programming, don't be rigid and always do things the same way.  Instead, relax and program naturally.  This will produce minor irregularities even when programming the same concept.  That is fine, and prevents you from getting stuck.  You will subconsciously improve your style by programming this way.

Shibui/Shibumi - Directness isn't quite the same as simplicity.  By combining simplicity with directness, you make code as readable as possible.  Elaboration just clouds things, so leave it out.

Shizen - Forced code is bad.  If you struggle with code, something is wrong.  Code should look natural, like a simple expression of whatever the code is doing.  No tricks or shortcuts, just simple natural code.

Yugen - Good code doesn't handle all imaginable cases.  Instead, it handles the required cases in a way that is generalizable as needed.  So the code suggests how to handle other cases without actually handling them.

Datsuzoku - Reject all formulas and don't be restricted by conventions.  Just relax and try to write the best possible code.  Ignore rules, especially the programming beliefs of modern culture (which are virtually all wrong).

Seijaku - Code should not be exciting.  It should be plain, almost boring.  It should make the problem being solved look like nothing special, just a simple thing implemented with simple steps.

My views on programming can be seen in Luan:

http://www.luan.software/
Reply | Threaded
Open this post in threaded view
|

Re: Core Programming Principles

alandibat
Do you know OOP and MVC? Those are the standards of most companies who make web apps.

Programming according the OOP and MVC patterns, is more secure, and you can re-use your code for other projects a lot. Especially if you master the frameworks.
Reply | Threaded
Open this post in threaded view
|

Re: Core Programming Principles

fschmidt
Administrator
This post was updated on .
I am not fond of acronyms, so you mean object-oriented programming and model-view-controller approach.  What is standard programming for most modern companies is comparable to what is standard morals of modern culture.  Everything is rotten in modern culture, from morals to programming.  Object-oriented programming is reasonable for some kinds of programming but not for others.  Web programming doesn't need the complexity of classes, so should not use full object-oriented programming.  The model-view-controller approach is basically wrong/evil.  One should just focus on having clean layers.  Frameworks are also evil since they force you to conform to them.  As a rule, higher level code should always call lower level code, not the other way around as is done in frameworks.
Reply | Threaded
Open this post in threaded view
|

Re: Core Programming Principles

alandibat
I think it's easy to re-use your code for other projects if you use OOP and MVC.

Do you study web development? Are you studying programming?

I am. Three years already.

And... Shabbat Shalom ;)!
Reply | Threaded
Open this post in threaded view
|

Re: Core Programming Principles

fschmidt
Administrator
This post was updated on .
I have been programming for a long time.

The key to effective code re-use is clean layers.

Have you looked at Luan?

http://luan.ws/