30 Matching Annotations
  1. Last 7 days
    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.
  2. 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.
  3. 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.

  4. Oct 2020
  5. 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.
  6. 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. 
  7. Jul 2020
    1. object-oriented

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

  8. Jan 2020
  9. Feb 2019
  10. 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.

  11. 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?

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

  14. 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
  15. Sep 2015
  16. 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