Ep2. Live Java Minecraft plugin code review - CityBuild

After coding in Java for 12 years I am reviewing Java code of Minecraft plugins people sent us for review and giving actionable tips on how to write clean, performant code.
== GET MY HELP MAKING GREAT PLUGINS AND SERVERS ==
Minecraft Plugin Development: mineacademy.org/project-orion...
Forge Modding: mineacademy.org/forge-mastery...
Today, we will be taking a look at Bukkit plugin CityBuild. I will evaluate how it performs in regards to these factors:
- Does the code follow standard conventions?
- Is it simple and immediately understandable?
- Avoids repetitiveness?
- Has consistent names?
- One method ideally does one thing?
- Less than 3 arguments in methods?
#coding #code #tutorial #money #developer #java #minecraft #minecraftplugin #bukkit #spigot #spigotmc #paper #paperspigot #programming #codereview

Пікірлер: 5

  • @exclustor
    @exclustor4 ай бұрын

    Thank you for Reviewing my code once again it helped me a lot

  • @null4006

    @null4006

    3 ай бұрын

    Hey there! 👋 1. Consider diving into Lombok to cut down on that boilerplate code. It'll make your code cleaner and easier to maintain. 2. At 2:52, noticed the `TrString` class. Got a few questions and tips: - What's the deal with `Tr` in the class name? Should be more descriptive. - Hit up CamelCase conventions. It's standard in Java and will make your class and method names way easier to read. - Wondering why `String` is part of the class name. Usually, class names should clearly indicate their purpose and use, and the return type or parameter type of a method isn't typically included in the class name. 3. Around 5:44, quick tip: keyboard shortcuts (Ctrl + Alt + L) can really speed up code formatting in your IDE. 4. At 11:28 Always good to remember that too much abstraction can do more harm than good. 5. At 11:31, solid note on naming conventions for language and country codes: language code should be in lower case, and country code in UPPER CASE. Keeps things consistent and easy to tell apart. 6. And again at 12:50, stressing the importance of CamelCase is spot on. It's a key part of writing readable and professional Java code. Hope you find these tips useful. Rooting for your project! 💪

  • @exclustor

    @exclustor

    3 ай бұрын

    Thank you! Kangarko was right trItem mean translateItem and I am already using (Ctrl + Alt + L) but sometimes I just forget to use it@@null4006

  • @princep2630
    @princep26304 ай бұрын

    Woah 😲 great 😃 video :))) .

  • @mortis3499
    @mortis34994 ай бұрын

    Good video. Thx