42 Matching Annotations
  1. Jan 2024
    1. A system is a composition of objects thatare abstractions, which hide data andexpose behavior*

      Composition Abstraction Hide data Expose behavior

    1. You should take care, however, to make sure that your individual objects can stand alone as much as possible. Tightly coupled objects are objects that rely so heavily on each other that removing or changing one will mean that you have to completely change another one - a real bummer.

      Isn't there a conflict between this principle and code reusability?

  2. Sep 2023
    1. An object in object-oriented language is essentially a record that contains procedures specialized to handle that record; and object types are an elaboration of record types. Indeed, in most object-oriented languages, records are just special cases of objects, and are known as plain old data structures (PODSs), to contrast with objects that use OO features.
  3. Jul 2023
  4. Oct 2022
  5. Mar 2022
    1. Object hierarchies are very different from relational hierarchies. Relational hierarchies focus on data and its relationships, whereas objects manage not only data, but also their identity and the behavior centered around that data.
  6. Nov 2021
    1. Since around 2010, Morton has become associated with a philosophical movement known as object-oriented ontology, or O.O.O. The point of O.O.O. is that there is a vast cosmos out there in which weird and interesting shit is happening to all sorts of objects, all the time. In a 1999 lecture, “Object-Oriented Philosophy,” Graham Harman, the movement’s central figure, explained the core idea:The arena of the world is packed with diverse objects, their forces unleashed and mostly unloved. Red billiard ball smacks green billiard ball. Snowflakes glitter in the light that cruelly annihilates them, while damaged submarines rust along the ocean floor. As flour emerges from mills and blocks of limestone are compressed by earthquakes, gigantic mushrooms spread in the Michigan forest. While human philosophers bludgeon each other over the very possibility of “access” to the world, sharks bludgeon tuna fish and icebergs smash into coastlines.We are not, as many of the most influential twentieth-century philosophers would have it, trapped within language or mind or culture or anything else. Reality is real, and right there to experience—but it also escapes complete knowability. One must confront reality with the full realization that you’ll always be missing something in the confrontation. Objects are always revealing something, and always concealing something, simply because they are Other. The ethics implied by such a strangely strange world hold that every single object everywhere is real in its own way. This realness cannot be avoided or backed away from. There is no “outside”—just the entire universe of entities constantly interacting, and you are one of them.

      Object Oriented Ontology - Objects are always revealing something, and always concealing something, simply because they are Other. ... There is no "outside" - just the entire universe of entities constantly interacting, and you are one of them.

      This needs to be harmonized with Stop Reset Go (SRG) complimentary Human Inner Transformation (HIT) and Social Outer Transformation (SOT) strategy.

  7. Jun 2021
  8. Mar 2021
    1. Internally, it creates and returns a fresh, subclassed activity (via patching) whilst replacing the step for given :id. Be advised that this does not change the original activity class.
  9. Feb 2021
    1. It reminds us that rather than asking an object for data and acting on that data, we should instead tell an object what to do.
    1. I think a better, more immediately understandable name for this concept would be command object, because it lets you pass around commands (or a list of commands) as objects.

      That's the only thing you really need to know abut this pattern. The rest seems like boring implementation details that aren't that important, and that naturally follow from the primary definition above.

    2. The central ideas of this design pattern closely mirror the semantics of first-class functions and higher-order functions in functional programming languages. Specifically, the invoker object is a higher-order function of which the command object is a first-class argument.
    1. In object-oriented programming, information hiding (by way of nesting of types) reduces software development risk by shifting the code's dependency on an uncertain implementation (design decision) onto a well-defined interface. Clients of the interface perform operations purely through it so if the implementation changes, the clients do not have to change.
    1. Though getter/setter methods are commonplace in Java, they are not particularly object oriented (OO). In fact, they can damage your code's maintainability. Moreover, the presence of numerous getter and setter methods is a red flag that the program isn't necessarily well designed from an OO perspective.
  10. Jan 2021
    1. The changes we needed to make to main to reassign post mean that this implementation doesn’t quite follow the object-oriented state pattern anymore: the transformations between the states are no longer encapsulated entirely within the Post implementation. However, our gain is that invalid states are now impossible because of the type system and the type checking that happens at compile time! This ensures that certain bugs, such as display of the content of an unpublished post, will be discovered before they make it to production.

      This is really an amazing chapter for comparing (some aspects) of object oriented and functional programming, and I have to admit I still prefer the functional approach as a default.

  11. Oct 2020
  12. Sep 2020
    1. A paradigm is a model or pattern. In JavaScript, there are a number of popular paradigms including object-oriented programming (OOP) and functional programming (FP). Paradigms are more important than is sometimes recognized. They help form mental models for solving problems. Becoming well-versed in the principles of a given paradigm can help accelerate development by providing mental shortcuts for solving the challenges that arise while building applications. They can also help produce higher quality software.
  13. Aug 2020
    1. Java may have been designed as a completely object oriented language, but when Java SE 8 was released in 2014, it added Lambda expressions (aka closures), which added some functional programming elements. Not every problem is best served by OOP, and by adding Lambdas, Java became more flexible. 
  14. Jul 2020
    1. object-oriented

      a computer programming model that organizes software design around data, or objects, rather than functions and logic

  15. Jan 2020
  16. Feb 2019
  17. Jan 2019
    1. If one object is part of another object, then we use a diamond at the start of the arrow (next to the containing object), and a normal arrow at the end.

      Another way of thinking of this is, if the original owner (source) object and the owned (target) object share the same life cycle -- that is, the owned exists only when the owner does -- we say that the owner aggregates owned object(s). They share a whole-part relationship.

      What I did like very much about the video, was when the instructor pointed out that there's a small fallacy: aggregation, in OOD, does not really imply that owned object(s) must be a list.

    1. Grid devices can be nested or layered along with other devices and your plug-ins,

      Thanks to training for Cycling ’74 Max, had a kind of micro-epiphany about encapsulation, a year or so ago. Nesting devices in one another sounds like a convenience but there’s a rather deep effect on workflow when you start arranging things in this way: you don’t have to worry about the internals of a box/patcher/module/device if you really know what you can expect out of it. Though some may take this for granted (after all, other modular systems have had it for quite a while), there’s something profound about getting modules that can include other modules. Especially when some of these are third-party plugins.

  18. Jul 2018
    1. ng meets human needs—and exchange value—value based on profit—Trimbur points to the often-contradictory relationship between the two forms of value that is realized w

      Object-Oriented Ontologies

    2. Content has a core conditional quality, fluidity in terms of what shape it may take and where it may travel, and indeterminacy in terms of who may use it, to what ends, and how various uses may come to be valued.

      Object-oriented ontological thinking?

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

  20. Jul 2016
    1. . Sensual objects exist for real objects, namely, me, or some other perceiver. So I’ve got the caricature of the table and the caricature of the chair, those caricatures have no relation to each other. They have relation only for me, because my experience unifies both of them. So the real is always the bridge for the two sensuals; the sensual is always the bridge for the two reals. And that’s what we try to analyse in Object-Oriented Philosophy

      Cole's problem is that this is Kant.

    1. This principle is, I will show, a convenient fiction in this new work, enabling the philosopher to hear the call of things and to speak to and for them, despite the new rule that we cannot think of objects as being-for-us and must reject older philosophies smacking of "presence" and traditional ontology or ontotheology

      So this is the leap. But what about work like this?

      "Answers to this question are beginning to emerge from an area of work I see as connected to rhetorical ecologies, the study of object-oriented ontologies (OOO), led by Graham Harman, Levi Bryant, and Ian Bogost. Bogost’s self-described “elevator pitch” for this area of inquiry reads as the following:

      Ontology is the philosophical study of existence. Object-oriented ontology (“OOO” for short) puts things at the center of this study. Its proponents contend that nothing has special status, but that everything exists equally–plumbers, cotton, bonobos, DVD players, and sandstone, for example. In contemporary thought, things are usually taken either as the aggregation of ever smaller bits (scientific naturalism) or as constructions of human behavior and society (social relativism). OOO steers a path between the two, drawing attention to things at all scales (from atoms to alpacas, bits to blinis), and pondering their nature and relations with one another as much with ourselves. (bogost.com)

      There’s much more to this area, of course, no surprise given its relationship to Heidegger’s work, but this statement makes the case for a focus on things, just as theories of rhetoric as ecological inform my research methods. While OOO rejects the disproportionate historical focus of study on all things human, often referred to as correlationism, focusing on objects does not mean dismissing human-based studies so much as looking with equal rigor at all the innumerable phenomena that populate the world. This is a question of balance, as becomes clear with Bogost’s call in the last phrase of his blurb to consider objects in their “relations with one another as much with ourselves” (emphasis mine). As those concerned with activism—i.e., action mostly on behalf of people—our anthropocentrism will never recede so very much, but work like that of rhetorical ecologies and OOO opens space for us to consider the existence, movement, and effects of objects in new ways. Hence, my claim that adapted flags might do a kind of activist work on their own. From this angle, any flag objects than trigger thoughts or actions on behalf of D.C.’s disadvantaged would be doing the work of activism."

    1. Ontology is the philosophical study of existence. Object-oriented ontology (“OOO” for short) puts things at the center of this study. Its proponents contend that nothing has special status, but that everything exists equally–plumbers, cotton, bonobos, DVD players, and sandstone, for example. In contemporary thought, things are usually taken either as the aggregation of ever smaller bits (scientific naturalism) or as constructions of human behavior and society (social relativism). OOO steers a path between the two, drawing attention to things at all scales (from atoms to alpacas, bits to blinis), and pondering their nature and relations with one another as much with ourselves. (bogost.com)

      For a critique of ANT and OOO, see Andrew Cole's, "Those Obscure Objects of Desire" and "The Call of Things: A Critique of Object Oriented Ontologies."

  21. Apr 2016
    1. This principle is, I will show, a convenient fiction in this new work, enabling the philosopher to hear the call of things and to speak to and for them, despite the new rule that we cannot think of objects as being-for-us and must reject older philosophies smacking of “presence” and traditional ontology or ontotheology.

      The heart of the critique.

    2. according to the new line of thinking, objects should be recognized for their indifference to us, for the sorts of things they do behind our backs, and for the ways in which they “are” behind appear-ances
  22. Sep 2015
  23. Jun 2015
    1. colour as an object-centred

      interesting that we still teach children to learn colors this way via picture books that use objects (red apple) or physical features of the environment (blue sky) to create color associations