Java: A Gentler Hello

Java: A Gentler Hello

Java, the programming language, is 28 years old and showing its age. However, it continues to evolve and continues to be relevant. One of the effort is to be more friendly to newbies.

A first introduction to any programming language is the now legendary 'Hello World!' program, a tradition established by Kernighan and Ritchie in their seminal book, 'The C Programming Language.'

The 'freindliness of a programming language is measured by how soon a beginner can run the 'Hello World!' program. Languages like Python and JavaScript beat the Java language in this aspect.

Java is considered too Verbose and High Ceremony. Brian Goetz, a Java Architect, with Oracle Corporation proposed an enhancement to address these issues.

We can now write the Hello World program simply as below.

void main() {
    System.out.println("Hello, World!");
}        

This can be executed as

> javac --release 21 --enable-preview Main.java
> java --enable-preview Main        

The above is just one feature. There is much more in the JEP 330.

Evolving a language is often contentious. The newer changes may conflict with the existing language features or worse; it may clash with it's core philosophy. The language can become bloated. But the language architects have to weigh these options and evolve the language weighting the various aspects.

Note: I am available for consultation on Software Architeture, Code Review and Software Strategy.

要查看或添加评论,请登录

Sai Matam的更多文章

  • RAG to Riches

    RAG to Riches

    With the rapid advancements in artificial intelligence (AI), large language models (LLMs) have become increasingly…

    1 条评论
  • What is Vibe Coding

    What is Vibe Coding

    In software development, a new paradigm is emerging that reshapes how we approach coding. Enter "vibe coding," an…

    1 条评论
  • Document Your Progress

    Document Your Progress

    Documentation Shows How Much of the Task Remains In the fast-paced world of software engineering and technology, it is…

  • Advantages Of HTTP Version 2.0

    Advantages Of HTTP Version 2.0

    HTTP/2 introduced several improvements over HTTP/1.1, focusing on performance, efficiency, and scalability.

    1 条评论
  • Talk at ICBM --Topic was, "Project Management Using Scrum"

    Talk at ICBM --Topic was, "Project Management Using Scrum"

    I was invited to talk on project management using scrum at the International College of Business Management (ICBM)…

  • PASETO: A Secure Alternative to JSON Web Tokens (JWT)

    PASETO: A Secure Alternative to JSON Web Tokens (JWT)

    Secure data exchange between systems is paramount in modern application development. JSON Web Tokens (JWTs) have gained…

  • Understanding Mean Time to Recovery (MTTR)

    Understanding Mean Time to Recovery (MTTR)

    What is MTTR? Mean Time to Recovery (MTTR) measures the average time it takes to recover from a system failure…

    2 条评论
  • Employee Engagement and How to Improve It

    Employee Engagement and How to Improve It

    Organizations must prioritize employee engagement to ensure long-term success in today's competitive and ever-changing…

    2 条评论
  • SPACE Metrics

    SPACE Metrics

    Measuring developer productivity, team efficiency, and organizational performance is essential for software delivery…

  • Understanding DORA Metrics

    Understanding DORA Metrics

    In the fast-paced world of software development, where the speed and quality of delivery define success, DORA (DevOps…

社区洞察

其他会员也浏览了