Author Topic: java or python or php?  (Read 9690 times)

0 Members and 1 Guest are viewing this topic.

Offline daybyter

  • Frequent Contributor
  • **
  • Posts: 397
  • Country: de
Re: java or python or php?
« Reply #25 on: November 05, 2016, 12:18:05 am »
For webstuff, PHP might be a better choice. OTOH, I think knowing java makes my PHP code a lot better. If you learn OOP practices and some UML, your PHP code should be a lot easier to maintain in my eyes.
 

Offline jwhitmore

  • Regular Contributor
  • *
  • Posts: 155
  • Country: 00
  • Software head strays into the Hardware.
Re: java or python or php?
« Reply #26 on: November 05, 2016, 02:40:19 am »
I guess most points have been made by this stage, but I would throw in an additional one. PHP and security have been mentioned and yes you can write insecure code in any language. Too many programmers get all religious about language, there is no best one it depends on what you're trying to do.

Having said all that I would highly recommend people take a look at the first few chapters of http://djangobook.com/ and read through it. Yes it's a CMS system written in Python but I've found it so easy to generate web apps with it. I only mention this as many people have NOT suggested python for back end work. I've used django for numerous projects, large and small. One of my favourite ones, and perhaps relevant to eevblog people is one I run locally on my laptop and has a record of all my electronic component stocks. In Python and Django it's very basic but it's invaluable as I don't have to organise my components. If I'm looking for a P-FET I can look at a list of ones I have in my stocks. It tells me foot prints and most importantly where I put the dammed thing. I can even give it a kicad DOM and it'll tell me the price of the components.

That's just my itch and I scratched it, but python has the advantage of being both powerful and readable and thus far more maintainable then many other languages. And given Django's built in security I don't have to worry about the code I'm writing. Django takes care of all that stuff.  IMHO ;-)
 

Offline ivaylo

  • Frequent Contributor
  • **
  • Posts: 661
  • Country: us
Re: java or python or php?
« Reply #27 on: November 05, 2016, 05:34:43 am »
Go with Python. Good for electronics (assuming from where you are asking), perfect for web development (ignore uninformed opinions) and pretty much everything else. If you are just learning web development try http://www.web2py.com, book here - http://www.web2py.com/book.
 

Offline ansonbaoTopic starter

  • Regular Contributor
  • *
  • Posts: 139
  • Country: cn
  • Never stop learning
    • pcbway
Re: java or python or php?
« Reply #28 on: November 07, 2016, 02:02:20 am »
If you want to program an awful mobile app or an awful desktop program, learn java. If you want a website, learn php or maybe HTML5. If you want back-end application, automation, IoT stuff, learn Python.
But in any case, you can learn python in a week.
just a week can learn phthon?but maybe i will learn java first,i didn't ever write complex code
I am PCBWay manager and you can ask me any questions about PCB.
 

Offline ansonbaoTopic starter

  • Regular Contributor
  • *
  • Posts: 139
  • Country: cn
  • Never stop learning
    • pcbway
Re: java or python or php?
« Reply #29 on: November 07, 2016, 02:06:27 am »
1. Thanks,you are in US?
2. Now i want to build a blog by myself,need background language.

1. Yes.
2. PHP seems to fit your need better. It's called back-end.

You can start from here: http://www.w3school.com.cn/
This is a Chinese translated version of http://www.w3schools.com/
thanks,i ever read <head first html&css> and build a website,just a page,the website is great

I am PCBWay manager and you can ask me any questions about PCB.
 

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 8562
  • Country: nl
  • Current job: ATEX product design
Re: java or python or php?
« Reply #30 on: November 10, 2016, 10:57:54 am »
If you want to program an awful mobile app or an awful desktop program, learn java. If you want a website, learn php or maybe HTML5. If you want back-end application, automation, IoT stuff, learn Python.
But in any case, you can learn python in a week.
just a week can learn phthon?but maybe i will learn java first,i didn't ever write complex code
The basics of python are very simple. If you ever wrote C code, you can pick up python very fast. Afeter that, you just need to look around for some libraries, and some example code.
 

Offline tombi

  • Regular Contributor
  • *
  • Posts: 163
  • Country: au
Re: java or python or php?
« Reply #31 on: November 10, 2016, 02:38:14 pm »
 

Offline ansonbaoTopic starter

  • Regular Contributor
  • *
  • Posts: 139
  • Country: cn
  • Never stop learning
    • pcbway
Re: java or python or php?
« Reply #32 on: November 14, 2016, 03:43:09 am »
If you want to program an awful mobile app or an awful desktop program, learn java. If you want a website, learn php or maybe HTML5. If you want back-end application, automation, IoT stuff, learn Python.
But in any case, you can learn python in a week.
just a week can learn phthon?but maybe i will learn java first,i didn't ever write complex code
The basics of python are very simple. If you ever wrote C code, you can pick up python very fast. Afeter that, you just need to look around for some libraries, and some example code.
thanks very much,i will do that
I am PCBWay manager and you can ask me any questions about PCB.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf