Thinking in Java & Writing in Python

Posted df888

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Thinking in Java & Writing in Python相关的知识,希望对你有一定的参考价值。

Why thinking in Java?

Java means a lot for computer science.

And it gives a best practice in project.

Thinking in Java can make you coding with better understanding the program.

More stability, less error.

Thinking in Java, is not the famous book, instead, is a thinking of programming.

Why not writing in Java?

Verbose.

Java is a static type programming language.

You have to consider many types, this is acceptable, but you have to write many type codes, which makes coding takes more and more time.

At this point, efficiency is more valuable for a tester.

I always need to realize more function in less time.

So I choose to writing in Python.

I like python, this is not the first time I said.

What I like most is simple and freedom.

Great truths are always simple.

The funny thing is, by import this, you can read the ‘The Zen of Python‘:

>>> import this
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren‘t special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you‘re Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it‘s a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let‘s do more of those!

The third row said, Simple is better than complex.

Use python, you can coding in any way you like.

Python affords many magic.

And also, freedom is one of these magic.

Nobody do not like freedom.

But, if you want to write high quality program.

You have to thinking in Java.

Thinking in Java, Writing in Python.

版权申明:本文为博主原创文章,转载请保留原文链接及作者。

以上是关于Thinking in Java & Writing in Python的主要内容,如果未能解决你的问题,请参考以下文章

[20-05-15][Thinking in Java 18]Java Inner Class 2 - .this & .new

Thinking in Java-Chapter 2-创建第一个Java程序

Thinking in Java

Thinking in java 16/3/5

Thinking in java 16/3/6

Thinking in Java