Improve your Java Application in IntellijIDEA

Improve your Java Application in IntellijIDEA

In the world of development it becomes increasingly necessary work optimizations, ides came to help us in this process, imagine only if everything was done in notepad the time it would cost us!
IntelliJ is a platform coming from jetbrains that helps us a lot, both in shortcuts and in their property settings, in this talk we will see what the JVM (Java Virtual Machine) has to do with this, some interesting shortcuts, and how optimized code facilitates all this.
We'll also see some optimizations that kotlin brings us into some parts of the code!

Link Live: https://www.youtube.com/watch?v=FwSsCHIfPe4

Ce3de8cc5e355e3ff5af97867086e0a9?s=128

Ana Beatriz

May 16, 2020
Tweet

Transcript

  1. Improve your Java applications in IntelliJ IDEA @anabneri

  2. Ana Beatriz Neri Software Engineer - Itaú Bank @anabneri /in/anabeatrizdev

    anabneri.github.io
  3. Spoilers(); Compilation Process What is JVM? JVM Architecture Memory Manager

    JVM inside of IntelliJ MVN Verify #VM Properties #TODO files #Refactoring #Rename Types #GIT #Tests #Maven Dependencies #Generated.. @anabneri
  4. Wait… What I need to know all of this???

  5. ALERT! This talk have concepts for Junior, Intermediate and Advanced

    Developers :p I love memes, so sometimes I put some gifs :D Make questions, enjoy and let’s have learning together
  6. Compilation Process

  7. C 0101010101 0101010011 0100101010 0101010101 0101010101 0100101010 0101010101 0101010011 0100101010

    0101010101 0101010101 0100101010 @anabneri
  8. JavaC JVM JAVA BYTECO DE @anabneri

  9. What is JVM?

  10. What is JVM? JVM ≠ JDK ≠ JRE JDK (Java

    Development Kit), and the java development kit, which is responsible for compiling .java code for bytecode @anabneri
  11. What is JVM? JVM ≠ JDK ≠ JRE JRE (Java

    Runtime Environment), Java execution environment, in which it provides Java libraries for the JDK to compile your code and the JVM to run your program @anabneri
  12. What is JVM? JVM ≠ JDK ≠ JRE JVM (Java

    Virtual Machine), java virtual machine responsible for executing the .byetcode file @anabneri
  13. JDK Java Virtual Machine JRE Basics Libraries (Java API) Execution

    Engines Development Tools @anabneri
  14. JVM Architecture

  15. Class loader subsystem Method area Heap Java stacks PC Registers

    Native Method Stacks Execution engine Native Method Interface Native Methods libraries Runtime data areas Class files @anabneri
  16. Memory Manager

  17. None
  18. EDEN SO SO1 TENURED PERMANENT New Memory (Young Generation) Survival

    space Old Memory Garbage Collector @anabneri
  19. JVM inside of IntelliJ @anabneri

  20. JVM inside of IntelliJ We can improve: .VM properties JVM

    options Memory Large LET’S SEE HOW EASY IT’S @anabneri
  21. VM properties Configuring the VM in your development IDE is

    essential for your code to run in a way that doesn’t impact anything, we will see later on how everything around the JVM makes everything as responsive as possible. @anabneri When it’s necessary change?
  22. MVN Verify It’s like: mvn clean & mvn install We

    can use in situations of build java projects, it’s not a thing it’s not a feature of intellij but it’s a form of build that can help us improve our applications @anabneri
  23. Generated You can Generate: - Getters and Setters - Hash()

    and Equals() methods - toString() - Generate custom templates for codes @anabneri
  24. TODO files IntelliJ IDEA allows you to add special types

    of comments highlighted in the editor, indexed and listed in the TODO tool window. @anabneri
  25. TODO files TODO and FIXME in both lower and upper

    case. These patterns can be used inside line and block comments of any supported file type. You can modify the default patterns or add your own patterns if necessary. @anabneri
  26. Refactoring Rename TODO and FIXME in both lower and upper

    case. These patterns can be used inside line and block comments of any supported file type. You can modify the default patterns or add your own patterns if necessary. @anabneri
  27. Refactoring Rename Use the Rename refactoring to change names of

    symbols, files, directories, packages, modules and all the references to them throughout code. When you rename methods that are declared in interfaces, you can also review and rename their implementations as well. The refactoring changes are displayed on the Refactoring Preview tab in the Find tool window. @anabneri
  28. GIT✨ You use for default, don’t need to install any

    plugin Selecting the src file to adding all the dependencies necessary @anabneri
  29. Maven Dependencies If you create some project from zero, you

    can adding a dependency in: project structure > libraries > click in “+” > and type the name of some dependencies if you need to add and DONE @anabneri
  30. Let’s keep in touch! @anabneri all the social medias /in/anabeatrizdev

    anabneri.github.io