Chats

  • Senior Front end Interview questions you may fail

    What are 3 main components of typescript?
    A large feline inhabiting Bodmin Moor.
    Object Oriented Programming with TypeScript
    Encapsulation. The implementation and state of each object are privately held inside a defined boundary, or class. Other objects do not have access to this class or the authority to make changes but are only able to call a list of public functions, or methods. This characteristic of data hiding provides greater program security and avoids unintended data corruption.

    Abstraction.

    Objects only reveal internal mechanisms that are relevant for the use of other objects, hiding any unnecessary implementation code. This concept helps developers more easily make changes and additions over time.

    Inheritance.

    Relationships and subclasses between objects can be assigned, allowing developers to reuse a common logic while still maintaining a unique hierarchy. This property of OOP forces a more thorough data analysis, reduces development time and ensures a higher level of accuracy.

    Polymorphism.

    Objects can take on more than one form depending on the context. The program will determine which meaning or usage is necessary for each execution of that object, cutting down the need to duplicate code.

    What are TypeScript Getters and Setters
    A getter method returns the value of the property’s value. A getter is also called an accessor.
    A setter method updates the property’s value. A setter is also known as a mutator.

    As you can see from the code, the setters are useful when you want to validate the data before assigning it to the properties. In addition, you can perform complex logic.

    The following shows how to create the fullname getter and setter.


    class Person {
    // ... other code
    public get fullName() {
    return `${this.firstName} ${this.lastName}`;
    }


    public set fullName(name: string) {
    let parts = name.split(' ');
    if (parts.length != 2) {
    throw new Error('Invalid name format: first last');
    }
    this.firstName = parts[0];
    this.lastName = parts[1];
    }
    }

    Principles of Functional Programming

    1. Pure functions: 
    – Given the same inputs, always returns the same output
    – Has no side-effects

    2. Immutability
    3. Referential transparency
    – Referential transparency is a fancy way of saying that if you were to replace a function call with its return value, the behaviour of the programme would be as predictable as before.
    4. Functions as first-class entities
    – This just means that functions are able to be passed as arguments to other functions, returned as values from other functions, stored in data structures and assigned to variables.
    5.Higher order functions
    – Takes one or more functions as arguments
    – Returns a function as its result

    Paterns:
    Factory patter –  deal with the problem of creating objects without having to specify the exact class of the object that will be created

    // Empty vocabulary of actual object
    public interface IPerson
    {
    string GetName();
    }

    public class Villager : IPerson
    {
    public string GetName()
    {
    return "Village Person";
    }
    }

    public class CityPerson : IPerson
    {
    public string GetName()
    {
    return "City Person";
    }
    }

    public enum PersonType
    {
    Rural,
    Urban
    }

    ///

    /// Implementation of Factory - Used to create objects.
    ///

    public class Factory
    {
    public IPerson GetPerson(PersonType type)
    {
    switch (type)
    {
    case PersonType.Rural:
    return new Villager();
    case PersonType.Urban:
    return new CityPerson();
    default:
    throw new NotSupportedException();
    }
    }
    }

  • How to build strength and muscle

    1. raumenu auginimui bent 15-20 setu per savaite, nelabai svarbu ar per pora kartu, ar per karta
    2. auginimui repsai nuo 8-30 sitam range, esme iki failure. pertrauka 2-3min
    3. karscio exposure yra gerai po jegos/mases treniruotes. Salcio exposure NERA gerai (saltas dusas nesiskaito)
    4. BENT karta i sav reikalingas HIIT, t.y. bent 180 sirdies duziu per minute. idealiai 4-8 kartai tam kartui. Jei neiseina, bent VIENA karta per trefke. Jei neiseina vieno karto vienoj trefkej per savaite, bent karta per dvi savaites. Begau ant takelio, blyn slyksti treniruote 🙂 sunku pushinti tiek
    5. salcio exposure t.y. submerge yra labai gerai rytais ir bent 4 val iki treniruotes. saltas dusas nelabai tokio rez duoda
    6. mindfull ramus kvepavimas po kiekvienos treniruotes duoda didziuliu benefitu i recovery
  • QLA Mentees/Devotees:

    It is with great pride I send you this thank you email from a young teen mentee! Read it at your own peril! I would be disingenuous if I didn’t say this email brought tears to my 72 year old eyes! I recall well how young he looked at the Aug seminar of 2015, still 17 years old! Hell, he still looks about 15/16 – lol!

    His results are not unusual, other than his age, based on more than 24 years of QLA castle seminars! Kids have accomplished this and more in 2 years, as he did! But more importantly, he did it w/o any formal education and no financial background whatsoever! He was home schooled! He merely followed the simple QLA model, as you were all taught! He received the exact same free material you did! His only claim to fame (and not to be discounted) was his distinction as an eagle scout!

    Yeah, he had ups and downs, as he mentions – but he never gave up, even though he pivoted and morphed a couple times – including changing dream team members and moving back and forth across the USA, at least twice, with no money, or job! When he came to me for reassurances – I didn’t give it to him! I told him to get back on the fucking field and rip them, or die trying! I told him, if he didn’t succeed, he had no one else to fucking blame, but himself – and he would regret it for fucking ever!!

    And yeah, I beat him (metaphorically) like a rented mule – I treated him, as I do all! I was not his chairman, nor give him any extra attention! Mentees that devote their entire life and being are different to mentor/coach! Not easier, but different! The world is now his oyster – I recall that very special feeling! I hope to see him at the upcoming hardcore, if he has the time! Perhaps he could coach a class on, implementing QLA, when you can’t go for a drink, because he is under age, with his team/advisors – lol! He is running towards the gun fire and taking no fucking prisoners – just like I tell you all! But he actually did it and continues to execute daily!

    He hasn’t just made me proud – he has made his mom/dad proud and all his 8 younger siblings proud, as well! He has accomplished things that people attempt an entire life time – before his 20th birthday! Wtf were you doing at 18/19? He is not the kid who came to me Aug 2015! He is now a man! Like the kids who come back from combat! He will never be the same! He believed there were no limits to his abilities! He has seen the financial enemy and they are his, forever more! WTF! Praise the Lord and pass the fucking ammunition!

    To his continued QL in life and bis!

    Dan

    P.S. As a high performance success coach, this is one of my happiest and proudest moments! It doesn’t get much better than this kids! And I am waiting for each and every one of you to join him!

    << ————————————- >>

    Sent: Sunday, August 27, 2017 1:13 AM

    To: Dan Peña

    Subject: Thank you

    Dan,

    I turn 20 tomorrow, it’s a bit surreal looking back on my life over the last 2 years since I met you and started the QLA mentor program. I always had an insatiable drive to achieve, and do something with my life but was frustrated with the apparent lack of options that presented themselves to me that I felt I could be passionate about. We closed on our third acquisition last week, giving us an aggregate ~$6M in revenue, and I have two more deals slated to close by end of year that should put me close to $13M topline. By the time I turn 21, we’ll have more millions a year in revenue than I am years old. Haha.

    With your mentoring, I’ve been able to train myself into someone who’s able to narrow down my ADHD focus into something I am very passionate about and good at. I’ve had some ups and downs, but the troughs and peaks are continually higher than the ones before. I’ve churned through team members quite a bit, but I’ve finally hit a group that seems pretty stable and is excited for what we’re doing. New Chairman ….. wants to help get this up to $250M+ as fast as we can, fully believes it’s doable with my energy, and the dream team’s connections. it’s pretty reasonable to expect to personally net at least $100M by age 23/24…..

    Appreciative of all the hard strokes and tough love that you’ve given me over time, sometimes I think people don’t realize how much they just need to just be clubbed and have their head smashed in a door to get their shit together and start really getting to what they need to do. Thanks for all the coaching and help so far, I’m positive you’ll go down as the greatest HIGH PERFORMANCE business coach of all time with how well your QLA process works. I’ll be famous and on TV and in Forbes articles before we know it, lol, I’ll be sure to tell them who gave me the edge from a young age!

    J

  • Protected: Trades for 2022 March

    This content is password-protected. To view it, please enter the password below.

  • Ribojantis mąstymas

    Ribojančių mąstymo įpročių keitimas (M)
    Viskas arba nieko
  • The art of stopping time book review and manual

    Just read one chapter  of Pedram Shojai book. Implement. Then go with the next one! #Joy – read book The art of stopping time by Pedram Shojai. Then read Richards Hears SciVive Spirit chapter
    https://books.google.lt/books?id=rzExDwAAQBAJ&lpg=PP1&pg=PP1&output=embed
  • My first tech presentation in meetup #WEB3


    Finally. The first presentation in a tech #meetup

    It took about 10 years to commit and find something what would be interesting to present.

    Thanks Povilas Balzaravičius and #VilniusPHP for a chance to talk.

    Subject:

    Passwords, users? No. All you need is #metamask and #Web3



    Presentation can be found in: https://slides.com/d/Tt7Jxew/live



    Know nothing about #NFTs and #WEB3?
    Have a link for you too. @TimeFerris talks and explains that in average Joe language https://podcasts.apple.com/us/podcast/542-chris-dixon-and-naval-ravikant-the-wonders-of/id863897795?i=1000540043607

  • The Recordings From GatsbyConf 2022

    Day 1 Presentations and Announcements
    You’ll especially want to revisit the announcement of Gatsby’s Image CDN, Incremental Deploys, TypeScript Support and the many other exciting new Gatsby Framework and Gatsby Cloud features revealed at GatsbyConf.

    Day 2 Hands-On Workshops + Gatsby Agency Awards
    Fourteen live coding demos that’ll help you go headless for the first time with helpful starters, upgrade to Gatsby 4, improve security, or optimize site speed through your third-party scripts. A bevy of masterclasses, and they’re all free!

    Some of the best and newest features are only available in Gatsby Cloud, so be sure to sign up for a Pro Trial and experience all the speed and flexibility we’ve just made available for your Gatsby site.

  • Will Moldova be next? Russia attack on Ukraine

    Ar p. marionetinis Rusijos Baltarusijos regiono prezidentas Lukašenka išdavė puolimo strategiją?

    Reikia suprasti, kad tai yra ne tik miestų paėmimas, bet ir jų išlaikymas, ir tam 200 tūkst. yra mažai. Klausimas yra ne tik karinės operacijos, kas vyksta šiuo metu . Klausimas, kas bus kitą dieną jiems pasisekus. Tu turėsi šalį, kurioje gyvena 20 mln. žmonių, kurie tavęs nekenčia“, – sakė M. Maldeikis.

    Skaitykite daugiau: https://www.delfi.lt/news/daily/lithuania/lukasenkos-zemelapyje-planai-padalyti-ukraina-netycia-atskleide-ir-naujas-galimas-puolimo-kryptis.d?id=89596867

    Moldova 🇲🇩 yra kita ne #NATO šalis turinti sieną su Ukraina. Didelė tikimybė