Giter VIP home page Giter VIP logo

Comments (3)

krahets avatar krahets commented on July 22, 2024

书中的 Java 代码的类名遵循 PascalCase 。请举出一些你觉得需要修改的例子

from hello-algo.

echo1937 avatar echo1937 commented on July 22, 2024

书中的 Java 代码的类名遵循 PascalCase 。请举出一些你觉得需要修改的例子

https://github.com/krahets/hello-algo/blob/main/codes/java/chapter_sorting/bubble_sort.java

例如此链接中的代码,其文件名和类名都为bubble_sort,不满足PascalCase,类似的例子还有很多。

from hello-algo.

krahets avatar krahets commented on July 22, 2024

理解了,为了保持多语言一致性,所有代码文件名都使用 snake_case 。而文件名要与包含 Main 方法的类名一致(Java 是一门规约相对严格的语言),所以包含 Main 方法的类名也为 snake_case 。
这部分我们不做更改。


书中自行实现的类,我们都采用正常的 PascalCase 。

from hello-algo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.