is the same case with having my macbook pro on my bed every night before I sleep?
Yup. Gives out nasty 'blue light' as spoken about in the article. Try Flux[1], it'll change your life. If you doubt me, install it and have it run at night and then after an hour of browsing HN, disable it... [1] https://justgetflux.com
wow this is awesome I wish I knew it about a while ago.