MakerGram Logo

    MakerGram

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups

    Steve Jobs about OOPS- As simple as that

    General Discussion
    1
    1
    82
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Bazil NIzam
      Bazil NIzam last edited by

      What are objects?

      Jeff Goodell: Would you explain, in simple terms, exactly what object-oriented software is?

      Steve Jobs: Objects are like people. They’re living, breathing things that have knowledge inside them about how to do things and have memory inside them so they can remember things. And rather than interacting with them at a very low level, you interact with them at a very high level of abstraction, like we’re doing right here.

      Here’s an example: If I’m your laundry object, you can give me your dirty clothes and send me a message that says, “Can you get my clothes laundered, please.” I happen to know where the best laundry place in San Francisco is. And I speak English, and I have dollars in my pockets. So I go out and hail a taxicab and tell the driver to take me to this place in San Francisco. I go get your clothes laundered, I jump back in the cab, I get back here. I give you your clean clothes and say, “Here are your clean clothes.”

      You have no idea how I did that. You have no knowledge of the laundry place. Maybe you speak French, and you can’t even hail a taxi. You can’t pay for one, you don’t have dollars in your pocket. Yet I knew how to do all of that. And you didn’t have to know any of it. All that complexity was hidden inside of me, and we were able to interact at a very high level of abstraction. That’s what objects are. They encapsulate complexity, and the interfaces to that complexity are high level.

      Bazil Nizam
      Front-End Web Dev, UI/Ux Designer
      +91 9895 094 299
      bazil4u@gmail.com
      twitter.com/BazilNIzam

      1 Reply Last reply Reply Quote 3
      • First post
        Last post

      Recent Posts

      • Hi team,

        Any one have experience in Altium schematic designing.
        I am facing some issue in Hierarchy->harness in Schematic.
        The offpage number for harness is not showing, and while generation the smart PDF if we click the harness port /green box the page want to go there automatically, but that also not working.

        • read more
      • D

        @salmanfaris thank you so much man, I'll try this and update you shortly. Thank you once again.

        Best,
        Dipu

        • read more
      • Hi @dipu_varghese ,

        Here is the sample input from the binary edge impulse inference,

        Predictions (DSP: 16 ms., Classification: 1 ms., Anomaly: 2 ms.): idle: 0.91016 snake: 0.08203 updown: 0.00391 wave: 0.00391 anomaly score: -0.067”

        And from here for example we can try to get the updown values only by attaching the device to another controller and read the Serial string directly.

        void setup() { // Start serial communication at 9600 baud Serial.begin(9600); } void loop() { // Wait until there is data available on the serial port while (!Serial.available()) { // Do nothing } // Read the input string from the serial port String inputString = Serial.readStringUntil('\n'); // Find the position of the "updown" value in the input string int updownPos = inputString.indexOf("updown:"); // If the "updown" value was found in the input string if (updownPos >= 0) { // Extract the "updown" value from the input string String updownString = inputString.substring(updownPos + 8, inputString.indexOf('\n', updownPos)); // Convert the "updown" value to a float float updownValue = updownString.toFloat(); // Output the "updown" value Serial.println(updownValue); } }

        The sketch should then output the "updown" value, which is 0.08203.

        Hope this will be helpful, let me know if you need more clarification.

        • read more
      • D

        @salmanfaris any updates?

        Best,
        Dipu

        • read more
      • D

        @salmanfaris Hope you're doing well, did you get sometime to work on this?

        Best,
        Dipu

        • read more
      By MakerGram | A XiStart Initiative | Built with ♥ NodeBB
      Copyright © 2023 MakerGram, All rights reserved.
      Privacy Policy | Terms & Conditions | Disclaimer | Code of Conduct