• 0 Posts
  • 42 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle

















  • Easy access to small snippets of code you often need, but putting them in their own library would be crazy.

    • Opening a file / db connection
    • parsing xml/json/… ,
    • template for unit tests,
    • import and initialization of framework at work.

    Depending on the IDE snippets can also move parts of the code around: (intellij live templates)

    • variable.notnull -> if (variable != null) {… }
    • “text %s”.format -> String.format(“text %s”,…)