如何从PHP切换到Java以及为什么还是个好主意

PHP(超文本处理器)和Java是统治Internet的两种最常见的编程语言。 尽管这些本质上是不同的,并不意味着彼此可以直接替代,但是在过去的几十年中,界限已经模糊了。 在当今世界,这两者都为构建Web应用程序提供了可靠的框架。

如果您已经是PHP程序员多年,并且希望通过探索Java领域来拓展视野,那么您将踏上充满挑战的迷人旅程。 在探讨PHP程序员在切换到Java时面临的好处和挑战之前,我们先对两者进行简要的比较。

Java and PHP — Pros and Cons

Both these languages have intersecting similarities and differences. Here are some pros and cons of both. As a PHP programmer, you will find this interesting, as this bird’s eye view into the Java world will help you understand what to expect and evaluate the effort it will take to make the switch to Java.
2.png
1_smqHi9I_0us11CLl_priAQ.png

Challenges, Benefits, and Motivation for Learning Java

Challenges in Learning Java

Java is a highly standardized but exhaustive language. It has a large developer community around the world and plenty of online forums available to help each other out. Unlike other languages, devoting one or two years to learning Ĵava will not make you an expert. It is a long journey, and you will have to be persistent and patient.

For a developer with a solid PHP background, Java will appear to be more organized, comprehensive, and direct. You will need to devote time to understand the hierarchy of its libraries and conventions followed by its developers around the world. It may appear daunting at first, but it will be a big boost in the long run, as you will find it easy to collaborate with developers globally and build complex, enterprise-level applications.

Career Benefits of Learning Java

Career progression is a significant motivation for programmers contemplating a switch to Java. As it is the preferred language for building complex business software, the job market is usually warm to Java programmers. An intermediate level developer will be able to pay his/her bills, and there will be a more rewarding career on attaining expertise.

Here are the career rewards you stand to reap as you progress along your Java programming journey:

  • You can secure an entry-level role by getting online training, attending a Bootcamp, or having a relevant bachelor’s degree in computer science.
  • You can switch your profile from a Java developer to an interface designer or an application tester.
  • As you work with architects, web developers, and engineers, you refine your communication and learn new collaborative tools.
  • Java drives billions of devices and many popular websites such as Facebook and Amazon. The job satisfaction of solving real-world problems and simplifying people’s lives keeps your job exciting.
  • Java has globally recognized certifications like OCAJP and OCPJP that you can add to your portfolio and climb up the professional ladder.
  • You have opportunities to move into senior-level roles like an architect or technical manager.
  • You are learning another programming language, which makes you a versatile developer.
  • Given its limitations, PHP is not the preferred language for building large applications, and its popularity is slowly diminishing as it is primarily a server-side scripting language. ## How to Learn Java from a PHP Background? There is a common belief in the developers’ community that learning programming is more complicated than learning a programming language. If you know PHP well enough, you already know how to program. Therefore, you already have a head start, and making the switch to Java will not be nearly as difficult as someone entirely new to programming.

Ĵava is more than just a programming language. Other than the syntax and libraries, you need to get accustomed to the “java way” of programming. It will help you grasp the globally followed conventions and fine-tune your skills. PHP vs. Ĵava similarities end with server-side programming discussions.

这里有一些技巧,可以帮助您系统地解决Java的广泛问题:

  • Java has an entire universe inside it — set realistic expectations and do not expect to be a master in a year or two.
  • Start with a solid foundation in basics.
  • Java comes with some great tools with a deep understanding of the language — Eclipse, NetBeans, IntelliJ. Start with one of these rather than sailing two boats simultaneously.
  • Practice coding as you go along. Avoid the trap of overloading yourself with theory as real learning happens by getting your hands dirty.

以下是一些宝贵的资源,可帮助您入门:

  • CodeGym is a handy online resource to learn Java, with 80% of the course focused on hands-on practice. Interactive course with a virtual mentor for prompt evaluation and feedback.
  • Javarevisited — well-structured resource with Java tutorials, useful articles and advices. Javarevisited will be helpful for anyone who decided to learn Java.
  • W3schools — It is another comprehensive online resource for learning Java, and the best part is that it is free to use. The course is designed systematically and starts from scratch so that beginners can easily pick up the concepts.
  • Head First Java (by Bert Bates and Kathy Sierra) — This book has been the gold standard of learning java and is recommended by developers from all around the world. Irrespective of the medium you choose to learn Java from, we highly recommend this as a ready reference.
  • Resources listed on Quora — Quora is a vibrant platform for exchanging ideas, and this thread about java resources is very informative, especially for beginners.
  • Reddit — This Reddit forum answers many queries about a learning java that a beginner would have. It includes resources you should refer to and the approach you should adopt to give yourself the best chance of progress.

拥有有用的资源只是故事的一部分。 如果您想以Java开发人员的身份大步向前,则必须采用一种方法,以帮助您充分利用现有资源。

This Quora thread about the best way to learn java will be beneficial for beginners stepping into the java world for the very first time. Many experienced programmers have shared their recommendations, which would go a long way in helping you gain expertise.

Conclusion

Java是一种真正的全球性技能,可能会在未来很多年内持续需求。 这将是您的编程曲目的绝佳补充。 Java开发人员要求较高的薪酬,因为他们有大量与大型企业合作的机会。 请耐心学习,不要让Java的泛滥淹没您,结果将会非常好!

from: https://dev.to//selawsky/how-to-switch-from-php-to-java-and-why-it-s-still-a-good-idea-2ja6

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值