Upgrade to Pro — share decks privately, control downloads, hide ads and more …

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

Ana Neri

May 16, 2020
Tweet

More Decks by Ana Neri

Other Decks in Technology

Transcript

  1. 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
  2. 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
  3. 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
  4. 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
  5. What is JVM? JVM ≠ JDK ≠ JRE JVM (Java

    Virtual Machine), java virtual machine responsible for executing the .byetcode file @anabneri
  6. 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
  7. EDEN SO SO1 TENURED PERMANENT New Memory (Young Generation) Survival

    space Old Memory Garbage Collector @anabneri
  8. JVM inside of IntelliJ We can improve: .VM properties JVM

    options Memory Large LET’S SEE HOW EASY IT’S @anabneri
  9. 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?
  10. 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
  11. Generated You can Generate: - Getters and Setters - Hash()

    and Equals() methods - toString() - Generate custom templates for codes @anabneri
  12. 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
  13. 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
  14. 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
  15. 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
  16. GIT✨ You use for default, don’t need to install any

    plugin Selecting the src file to adding all the dependencies necessary @anabneri
  17. 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