27 Matching Annotations
  1. Jan 2022
    1. enum can contain both concrete methods and abstract methods. If an enum class has an abstract method, then each instance of the enum class must implement it 

      Yet to explore abstract methods for java enums

    2. We can’t create enum objects explicitly and hence we can’t invoke enum constructor directly.

      Color c1 = Color.RED;

      Color is the enum and "RED" is internally a class object of class "Color".

      In which language though, can invoke the constructor directly? I guess by using the parameterized constructors, one can invoke other constructors easily.

    3. Since it is static, we can access it by using the enum Name. Since it is final, we can’t create child enums.

      enum in java is implemented as a class. The static and final keywords have their meanings.

      An enum cannot explicitly inherit a class not can it create child enums.

    4. enum can implement many interfaces

      Have to learn about Interfaces.

    5. All enums implicitly extend java.lang.Enum class. As a class can only extend one parent in Java, so an enum cannot extend anything else.

      In Java, a class can extend only one parent class. Also, an enum implicitly extends the java.lang.Enum class. Therefore, an enum cannot extend anything else.

    6. In Java, we can also add variables, methods and constructors to it

      java enums allow one to add variables, methods and constructors. Java enums are apparently more powerful than C++ enums

    7. enum type can be passed as an argument to switch statement.

      An enum object can be created and the object can be passed as an argument.

    1. ArrayList is a part of collection framework and is present in java.util package. It provides us with dynamic arrays in Java.


  2. Dec 2021
  3. Nov 2020
    1. You’ll learn how to cause stack overflows, illegal memory access, andother common flaws that plague C programs so that you know what you’re upagainst

      When you learn from "Learn C the Hard Way"



    1. Mistakes programmers need to look out for

      • Programming is more about practicising than passive knowledge gain.
      • Understand the solutions solved/suggest by your peers, introspect on why he could solve it better and why you couldn't.
      • Be a perpetual learner.
      • Don't just reuse, reuse and add value.
      • Re-affirm and reconfirm your learning.
    2. being a programmer you should always make sure that you learn by yourself and create things by yourself
    1. Thanks for posting this helpful, well written article. Learning programming, or any other thing one takes up, requires you to sit at one place have a plan of action for your study.

      I was going through my Firefox bookmarks and I found article. I had read this article two years back and had commented that I found it to be useful. I read it back in May 2018. As of now, November 2020, my programming skills are still novice-level. I haven't implemented the ideas or followed suggestions given here.

      It has been 2 years and 5 months since I found this article to be relevant and it baffles me that I haven't taken action by making use of the knowledge given in this article. Two long years flew by. I guess reviewing my bookmarks is something that I will do more often.

      The article was posted on May 23, 2018 and I had stumbled on it the next day itself, i.e., May 24, 2018. This gets me thinking that we could finds solutions for problems(latest ones in this case) once we identify it, articulate it, hit the search button and just read stuff. I could presume that what happened next was that I misunderstood "finding a solution" to "realizing the solution", and perhaps became complacent or maybe there were more problems that didn't come to my awareness to identify and further find solutions. I'm not quite sure. Should I have identified my problems and googled more so that I could have learned C and C++ sooner?

      I wonder what held me back from taking action to accomplish and master something that usually takes not more that 5-6 months maximum.

    2. On learning programming

      • Master one first programming language first, before moving to the next.
      • Learn at a slow for the first two programming languages. This is important for beginners
      • Practising coding is more important than watching tutorials or reading books. You learn more by practising than by reading or watching videos.
      • Apart from tutorials, immitating open source projects is very important
      • Read others code and immitate it. You'll be surprised at how fast you're learning.
      • Make use of StackOverflow, Quora and programming subreddits.Ask questions there. Interact more.
      • Practice more. Write code from time to time. Debugging skills imporove with more coding practice.
      • Test your skills with quizzes, challenges and competitive programming
    1. The challenges are very difficult and require great thinking ability to complete. If you are a beginner then it’s gonna be really tough for you.

      Practice programming challenges with HackerEarth and then move to TopCoder.

    2. Project Euler

      Project Euler emphasises on programming challenges that involve problem solving and critical thinking skills.

    3. It’s powered by a large set of problems to work with, and you can also gain access to the source codes that others used to solve the given coding challenges.

      You'll learn more when you read others' code and immitate it. CodeChef provides you access to learn from others' code.

    1. anything that makes you lighter helps create the balance which keeps you going.

      "In order to balance I never left anything pending on my to-do-list for tomorrow. If I did, I worked on break shift from home post putting her off to sleep. This was possible because I could manage my office on laptop. To release the pressure points I tore papers, took cold water bath in the middle of the night, laid on the floor in child pose." Monica Suri

  4. Oct 2020
      1. The best projects start with goals and plans.
      2. The subconscious has so much to do with success.
      3. Our subconscious decides whether to accept something into our awareness based on something called "Hot Goals".
      4. From this udemy course, I will learn how to set goals with the MOMA subconscious method, by which I convert what's not working for me into a HOT GOAL.
      5. Achieving hot goals is the means of the subconscious mind to keep you safe even if it isn't necessary.
      6. If your goals have to become hot goals then, your conscious goals must translate to subconscious goals.
    1. BTech in design engineering or BTech engineering design: Design thinking is a popular concept that spans multiple industries and there are courses, independent of any branch purely focussing on designing products. This is also often referred to as an engineering design course or design engineering course. The idea is to teach how to not just bring in design to develop great products that are aesthetically perfect and ergonomically usable and consumer-focused but also to introduce design as a tool for innovative thinking. The curriculum develops design thinking concepts in a manner basis which students can conceptualise and develop products that are innovative while also boasting of high aesthetic value. These graduates are sought after by all manufacturing industries.

      Design thinking fosters innovative thinking.

      It involes designing user focused, highly utilitarian and aesthetic products.

      • Our subconscious decide whether to accept something into our awareness based on something called "Hot Goals".
      • Subconscious has so much to do with success
    1. Mental Toughness
      • Through physical work you improve you mental toughness
      • Find humour in your suffering.
      • Reinvent you mind
      • Don't hold on to hate, you'll keep failing if you do.
      • Don't judge a person for his acts, study him and learn from him
    2. David Goggins

      David Goggins' book: Can't Hurt Me: Master Your Mind and Defy the Odds