Skip to main content

Why isn't the Java programming language made as simple as Python?

 First, the two languages ​​are created in completely different contexts and for different purposes. Java was created as a simple alternative to C ++. C ++ was very expensive for developers in those days, and it was very difficult for newcomers to learn advanced topics of C ++ (especially pointers and memory management), and error handling in C ++ was like a nightmare.

Java was born to rescue everyone from such a situation. At first it eliminated the pointer concept, almost completely automated memory management, and introduced many advanced and easy error handling features. At the urging of the cross-platform, its entire activities are integrated into a virtual ecosystem, JVM.

Interestingly, its syntax, which you think is difficult, became even more simple and user-friendly in those days. Although Java's syntax is high, none of it fails, every extra line or keyword teaches you to think like a computer.

Python, on the other hand, gives the user more control, which can be either an advantage or a disadvantage depending on the type of use. Although Python's simple syntax makes it easy to use in everyday work, its simplicity may not be maintained as the scope of the project grows.

As I said before, Python is just easy to see. Its working process but not as straightforward as the syntax. Python code is first converted to independent bytecode, but in this case it is not functional ... only if it is interpreted in CPython (which is written in C) can it reach the machine level as an instruction.

No one preferred short syntax when creating Java, its main goal was versatility. Basically Java takes a less declarative and more imperative approach than Python for cross-platforming convenience.

Many find Java difficult Because it's very straightforward, if you want to write a Java program, you have to write at least 10 lines of code and do an import library. One function call is enough to write a Hello World in Python. But what new developers ignore is "performance". A complex program written in Java works faster than Python. Because, the main obstacle in the way of Python's performance is this simple syntax. In other words, this is a dynamic datatype. When writing code in Python, you don't have to say it's an integer and it's a string. Python interprets dynamically while typing. Due to the effect on performance after. The origin of  CPython to overcome this problem.

Almost all of Python's popular libraries (Pandas, Nampi, Psychit Learn, etc.) are written in Cython.Once you write code in Cython, you will no longer find Java difficult.

Comments

Popular posts from this blog

What are the things to consider when buying a WiFi or broadband router for home, office, park and restaurant ?

Today we talk about What are the things to consider when buying a WiFi or broadband router for home, office, park and restaurant .I never like huge introduction about any topic . I always like very shortly introduce any-things to my viewers without any-type boring .So let's began the leanrning :- 1. Decide in advance how many devices you will use. 2. Decide how much space you need coverage. 3. Understand the structure of your home. WiFi signals become weak to penetrate the walls. That is why good coverage is not available. If you have a lot of walls in your house and you want to get coverage in the whole house, then you need a router with high power and wall penetration feature. 4. Decide what features you need in addition to the internet connection. Such as: - 4.1 3G 4G Modem Support- There are many routers that can use the modem. Those routers have a USB port and a one port so that broadband lines can be used. But remember that the modem must have the ability to auto-connect. Not...

What is transmission media? Introduction to different types of data transmission cables

Transmission media: When a PC communicates or wants to communicate with another PC, it has to take the help of some transmission media. The most commonly used media in the network are twisted pair cable, coaxial cable, fiber optic cable. Nowadays, the use of optical fiber is increasing greatly. Radio wave, microwave and infrared technologies are prominent among wireless media. Among these mediums, optical fiber has the highest data transfer speed. The type of medium used in a network depends on the type and location of that network. The connection system for exchanging information between the sender and the remote receiving end is called a channel. The means or methods used to implement the channel are called media. such as-- (i) Cable or wire. (ii) Common telephone lines. (ii) Radio waves. (iv) Microwave. (v) Geo-satellite systems etc. Cable or Wire: Cable is an important medium in data communication. Cables are generally used for data transfer over short range networking such as LAN...

What should the processor look at?

The things that we all should keep an eye on are the processor or not; 1. Clock speed 2. Number of course 3. cache memory 4. FBS 1. Clock Speed: It is also called GH2. All processors are written on. Clock speed means how fast your computer can work. That's what this signal means. The speed of the processor is known through this clock speed, how fast the calculation can be done. 2. Number of Cores: The more cores the processor has, the faster the processor can work. If I give an example to explain the matter, I hope you can understand it very easily. Suppose if a person had many hands, then he could do many things at the same time. That is, if we go to the market and buy a smartphone, then we will see what the configurations of the phone are. If we look closely at the configuration of the smartphone, we will see that Dual Core Processor, Quad Core Processor, Octa core processor, Hexa core processor, Deca core processor. This means that the dual core processor has two arms or cores, ...