16 Matching Annotations
  1. Oct 2019
    1. This can become messy when you have a lot of configurations in your Entity. Another issue is that your annotations are coupled to your source code. Your database implementations details, or any other configurations are coupled to your domain object. This goes against the guidelines of clean code. Your domain object (Entity) should only have one reason to change.

      Thank you for saying that loud.

  2. Nov 2018
  3. Oct 2018
  4. Sep 2018
  5. Mar 2018
    1. a mutator method is a method used to control changes to a variable. They are also widely known as setter methods

      For example, a method definition in Java would be:

      class MyClassDef {
      
          public void setProperty(String propertyVal) { .. }
      
      }
      

      For above, setProperty(..) method is the mutator

  6. Oct 2017
    1. Python supports the object-oriented programming paradigm

      The main OOP concepts:

      1. an object as a model of a real object
      2. a class as a factory for objects or as a template that defines the structure of objects from this class and behavior of objects from this class
      3. an object as an instance of a class
      4. a method with or without parameters describes the behavior of instances
      5. calling or invoking method
  7. Sep 2016
    1. Reusing an object with a reset function is much faster than declaring a new object with new

      Better insert a reset function than declare a new object!

  8. May 2016
    1. frame.setSize

      Calling the object's method

    2. super

      If your method overrides one of its superclass's methods, you can invoke the overridden method through the use of the keyword super.

      Here, we are invoking the superclass's constructor

    1. A class can only "implement" an interface. A class only "extends" a class. Likewise, an interface can extend another interface. A class can only extend one other class. A class can implement several interfaces.

      Extends makes it a child, inherit the class' methods and shit. You can override its shit if you want.

      Implements allows you inherit the constants that are declared, and you can define these constants. The way that works is it provides a bunch of empty methods, and you fill in the gaps

  9. Jun 2015
    1. Imperative programming: telling the "machine" how to do something, and as a result what you want to happen will happen. Declarative programming: telling the "machine"1 what you would like to happen, and let the computer figure out how to do it.
    2. the function we pass to map is pure; it doesn't have any side effects (change any external state)
    1. what we’re doing here is to yank government—upgrade it, patch it, and ultimately transform it so that it is responsive and can interface with this new private sector in a much more effective way.