News for hackers. Stuff that matters.

jasonmcaffee

I do.
Aren’t there times when it’s not really possible to use a non-gender pronoun? e.g. Brian went to put a book on a shelf, but as they did the book fell out of their hands.
Awesome! Thanks!
Has anyone tried running the solution? It doesn't seem to work... The below code results in the console logging the document object, which has the document object, and the code hits a ReferenceError when trying to log the 'a' variable. Calls to p.whateverPropYouMakeUp result in the log 'get for target: ...'

    const proxyHandler = {
      get(target, name){
        console.log(`get for target: `, target, name);
        return 'tacos';
      },
    }

    const p = new Proxy({}, proxyHandler);

    with (p){
      console.log(`document with proxy: `, document);
      console.log(`access random property: `, a);
    }
https://jsfiddle.net/wf02n4gs/
Re:The Impact of Meditating Every Day on Friday August 16, 2019 @12:58PM (#20717085)
I've been meditating for the last 2 years, and I've found many benefits. Stress reduction, better control of feelings, better understanding of self, and joy are just a few.

It's really simple to start out:

1) Devote 10 minutes of each day to meditation time. Early morning is best, as your mind is fresh and not as distracted.

2) Find a quiet/non-distracting place to sit in a comfortable position. Legs crossed on the floor or in a chair are fine. You want to keep your back straight to help keep from falling asleep.

3) Focus on the sensation of your breath, wherever it is strongest. Typically this is the tip of the nose, or in the nostril, but chest can work as well. Your mind will become distracted with work, worries, thoughts of food, etc. When this happens, congratulate yourself on noticing that it happened, and bring your attention back to your breath.

That's it! It blows my mind how developing concentration can have such a profound impact on your life.

Here are some good resources for those interested:

http://dharmatreasure.org/wp-content/uploads/beginning-medit...

https://www.amazon.com/Mind-Illuminated-Meditation-Integrati...

https://www.reddit.com/r/TheMindIlluminated/wiki/index#wiki_...

Re:The Impact of Meditating Every Day on Friday August 16, 2019 @12:44PM (#20716977)
It's good to point out there are many different types of meditation, as some work better than others, depending on the individual. However, this article doesn't seem to be advocating Vipassana, rather, it states: "Meditation is all about being aware of how your body feels and the thoughts that go through your head without judging or getting caught up in them. Often, this is done by focusing on a certain part of your body, like the breath or your feet, legs, arms, hands and chest etc. At the end of the day, what you’re aiming for is to keep bringing your attention back to what you’re focusing on, everytime you notice your mind has drifted off."

The book is called The Mind Illuminated, and is an absolutely fantastic book on meditation. Super cheap too: https://www.amazon.com/Mind-Illuminated-Meditation-Integrati...

I'm older as well, but I usually ask my candidates to use the whiteboard to workout solutions. It demonstrates that you can communicate effectively, as well as think on your feet :) I don't think it should be all about coding riddles, but I also don't think you should be surprised by them.

As a developer, I've always used whiteboarding as a way to communicate ideas, architecture, etc. There have been whiteboards in every office of every company I've worked at.

I'd say somewhere around 75% of all interviews I've had for positions at other companies have included whiteboarding.

Re:JQueryMediator - a better Mediator pattern for jQuery on Sunday November 17, 2013 @09:38PM (#6752167)
HN, please take a look at the new library I released today called jQueryMediator.

https://github.com/jasonmcaffee/jQueryMediator

Typical mediators for dom libraries such as jQuery, tend to poorly abstract the underlying API, and lead to an inconvenient, verbose syntax that resonates throughout your code base.

This project provides a jQuery API mediator that can be used in a manner that is indistinguishable from jQuery.

If you find it necessary to use a mediator for jQuery, you should definitely give this library a try.

You can test out the API by going here and selecting Project -> Fork

https://codio.com/jasonmcaffee/jQueryMediator/master/tree/te...

(side note: codio.com is awesome, you should check it out)

Feedback appreciated!