37 Matching Annotations
  1. Aug 2023
  2. Feb 2023
    1. Object-oriented Programming (OOP) is the process of converting this perfectlydefined design into a working program that does exactly what the CEOoriginally requested.

      OOP

    2. Object-oriented Design (OOD) is the process of converting such requirements intoan implementation specification. The designer must name the objects, define thebehaviors, and formally specify what objects can activate specific behaviors onother objects. The design stage is all about how things should be done. The outputof the design stage is an implementation specification. If we were to complete thedesign stage in one step, we would have turned the requirements into a set ofclasses and interfaces that could be implemented in (ideally) any object-orientedprogramming language.

      OOD

    3. Object-oriented Analysis (OOA) is the process of looking at a problem, system,or task that somebody wants to turn into an application and identifying the objectsand interactions between those objects. The analysis stage is all about what needsto be done. The output of the analysis stage is a set of requirements. If we were tocomplete the analysis stage in one step, we would have turned a task, such as, "Ineed a website", into a set of requirements, such as:Visitors to the website need to be able to (italic represents actions, boldrepresents objects):review our historyapply for jobsbrowse, compare, and order our products

      OOA

    4. What object-oriented means

      What does the object-oriented means? Objects are models of somethings that can do certain things and have certain things done to them. Formally, an object is a collection of data and associated behaviors.

    5. The difference between object-oriented design and object-orientedprogramming

      What is the design and programming mean in OOP?

    Tags

    Annotators

  3. Dec 2022
  4. Nov 2022
  5. Aug 2022
  6. Mar 2022
    1. Users of a SLList never see the IntList class. Simpler to use. More efficient addFirst method (exercise 2.2.1). Avoids errors or malfeasance by IntList users.

      private封装的好处。

  7. Jul 2021
    1. object-orientation offers a more effective way to let asystem make good use of parallelism, with each objectrepresenting its own behavior in the form of a privateprocess

      something, something, Erlang

  8. 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.

  9. Nov 2018
  10. Oct 2018
  11. Sep 2018
  12. 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

  13. 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
  14. 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!

  15. 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

  16. 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.