Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
Saturday at 11:44 PM
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Software Development
Python vs PHP vs Java
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="kolavari" data-source="post: 25449863" data-attributes="member: 412792"><p>Don't fight over languages...<img src="/styles/default/xenforo/smilies/default/lol.gif" class="smilie" loading="lazy" alt=":lol:" title="LOL :lol:" data-shortname=":lol:" /> the people who fight over them are kids or probably the people who just "know" that language...<img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /> they don't know anything beyond the "language".</p><p></p><p>That's one way to differentiate between a software engineer and a coder..language is just a tool we use to solve a certain task.</p><p></p><p>Coming back to your question, out of the three, java is the most difficult one to learn if you don't have any programming background.</p><p></p><p>Java:</p><p>Has a fixed oop style. (You need to oop well)</p><p>Statically typed (which means you cannot just type in anything and expect it to work)</p><p>Has a very cumbersome syntax..its a bit heavy and you need to pay a bit more attention to your coding (rather than logic)</p><p>Lots of language features (which means it takes a long time to master)</p><p></p><p></p><p>Java has a clear difference from the other two...its a static language, where as php and python are dynamic..(which means the code is more forgiving, yet it tends to be buggy)</p><p></p><p>Imo, the second difficult language is PHP.</p><p></p><p>It is dynamically typed</p><p>Supports structural or oop paradigms</p><p>Beginner friendly (easier if you come from a c background)</p><p>Has a huge standard library (lots of features out of the box, so you have lot to learn)</p><p>Very incosistent (a beginner may not catch this, but it has incosistent naming etc). This doesn't make it difficult to learn though.</p><p>Used for web mostly..has lots of oop features..latest versions like 7 and up coming 8 are going well.</p><p>Better stick to some programming guide lines like psr and you will be good.</p><p>Has lots of frameworks (good ones indeed, like laravel)</p><p></p><p>Python:</p><p>Has a simple syntax, and very easy to learn.</p><p>It encourages simplicity</p><p>Supports structural and oop (a bit weird oop syntax, personally i don't like it). But it doesn't matter for a beginner.</p><p>Has lots of features out of the box.</p><p>Many similat methods exist in the standard library to the same thing..for ex.for iterables. They do have different purposes, but look alike...so a beginner may get confused. (You won't be worried about them as a beginner)</p><p>Can be used for web and general purpose scripring</p><p>Doesn't support web like php does. But has beautiful frameworks like django.</p><p>Has coding guidelines like PEP, try to adhere to them from the beginning..</p><p>...oh...and don't forget to read the zen of python <img src="/styles/default/xenforo/smilies/default/wink.gif" class="smilie" loading="lazy" alt=";)" title="Wink ;)" data-shortname=";)" /></p><p></p><p>Final thoughts..</p><p>Php and python both are good choices for a beginner. If you start with php, you will find it a lot easier to move to other languages because it inherits certain features from C..including the syntax. Both are dynamic, which means you won't be forced to declare variables, or worried about their type..this ia good for beginners (but they lead to buggy codes, hard to maintain)</p><p></p><p>Php 7 has strict typing...but as a beginner you shouldn't worry about that. Get the basics and learn the stuff..</p><p></p><p>Python can be learned in a week. But its not easy to master. And its an art of its own <img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /> unlike coding in php, python makes you feel different (but trust me, it makes it difficult to learn languages like javascript)..</p><p></p><p>All of the above are my personal experiences and my personal views.</p><p></p><p>I have used php since 2008 <img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /> that's about 12 years now.</p><p></p><p>I have used python since 2014, thats about six years <img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /></p><p></p><p>So i have spent quite a long time with both the languages and seen their faults and beauties...php and python are both good languages..and have a good market..but python is used in machine learning related stuff because lots of libraries are written with python, and its good at crunching the numbers. So if you have plans to move to data science, python is a good start. But if you plan to become a real programmer, focus on writing elegent logics..</p><p></p><p>Once you reach that level, you will stop fighting over languages like kids <img src="/styles/default/xenforo/smilies/default/lol.gif" class="smilie" loading="lazy" alt=":lol:" title="LOL :lol:" data-shortname=":lol:" /> learn more than one language..good luck..ask me if you have any questions.</p></blockquote><p></p>
[QUOTE="kolavari, post: 25449863, member: 412792"] Don't fight over languages...:lol: the people who fight over them are kids or probably the people who just "know" that language...:yes: they don't know anything beyond the "language". That's one way to differentiate between a software engineer and a coder..language is just a tool we use to solve a certain task. Coming back to your question, out of the three, java is the most difficult one to learn if you don't have any programming background. Java: Has a fixed oop style. (You need to oop well) Statically typed (which means you cannot just type in anything and expect it to work) Has a very cumbersome syntax..its a bit heavy and you need to pay a bit more attention to your coding (rather than logic) Lots of language features (which means it takes a long time to master) Java has a clear difference from the other two...its a static language, where as php and python are dynamic..(which means the code is more forgiving, yet it tends to be buggy) Imo, the second difficult language is PHP. It is dynamically typed Supports structural or oop paradigms Beginner friendly (easier if you come from a c background) Has a huge standard library (lots of features out of the box, so you have lot to learn) Very incosistent (a beginner may not catch this, but it has incosistent naming etc). This doesn't make it difficult to learn though. Used for web mostly..has lots of oop features..latest versions like 7 and up coming 8 are going well. Better stick to some programming guide lines like psr and you will be good. Has lots of frameworks (good ones indeed, like laravel) Python: Has a simple syntax, and very easy to learn. It encourages simplicity Supports structural and oop (a bit weird oop syntax, personally i don't like it). But it doesn't matter for a beginner. Has lots of features out of the box. Many similat methods exist in the standard library to the same thing..for ex.for iterables. They do have different purposes, but look alike...so a beginner may get confused. (You won't be worried about them as a beginner) Can be used for web and general purpose scripring Doesn't support web like php does. But has beautiful frameworks like django. Has coding guidelines like PEP, try to adhere to them from the beginning.. ...oh...and don't forget to read the zen of python ;) Final thoughts.. Php and python both are good choices for a beginner. If you start with php, you will find it a lot easier to move to other languages because it inherits certain features from C..including the syntax. Both are dynamic, which means you won't be forced to declare variables, or worried about their type..this ia good for beginners (but they lead to buggy codes, hard to maintain) Php 7 has strict typing...but as a beginner you shouldn't worry about that. Get the basics and learn the stuff.. Python can be learned in a week. But its not easy to master. And its an art of its own :) unlike coding in php, python makes you feel different (but trust me, it makes it difficult to learn languages like javascript).. All of the above are my personal experiences and my personal views. I have used php since 2008 :) that's about 12 years now. I have used python since 2014, thats about six years :) So i have spent quite a long time with both the languages and seen their faults and beauties...php and python are both good languages..and have a good market..but python is used in machine learning related stuff because lots of libraries are written with python, and its good at crunching the numbers. So if you have plans to move to data science, python is a good start. But if you plan to become a real programmer, focus on writing elegent logics.. Once you reach that level, you will stop fighting over languages like kids :lol: learn more than one language..good luck..ask me if you have any questions. [/QUOTE]
Insert quotes…
Verification
Hath warak paha keeyada? (hatha wadikireema paha)
Post reply
Top
Bottom