Readit News logoReadit News
songzme commented on YouTube Addiction   jntrnr.com/youtube-addict... · Posted by u/ingve
suzumer · 3 years ago
I used to be addicted to youtube, and the most effective method I found to limiting my consumption was using an extension called Unhook. It removes all recommendations and the shorts and trending tabs, so the only videos I can watch are those from channels I'm subscribed to, or videos that I search for.
songzme · 3 years ago
I used to be addicted to youtube too, and when looking for a browser extension I found that just adding /etc/hosts entry (on a mac ) works well enough for me that I don't need an actual plugin. 127.0.0.1 youtube.com www.youtube.com

It's fast, and when I need to use youtube I just uncomment out the line in vim.

songzme commented on Ask HN: Programs that saved you 100 hours? (2022 edition)    · Posted by u/zJayv
23B1 · 3 years ago
http://freedom.to

Block websites so you can focus on work. Different blocklists and different sessions makes it easy for me to stay focused during the week. Best investment in myself I ever made.

songzme · 3 years ago
good idea. FYI you can also `sudo vim /etc/hosts` and map any websites to 127.0.0.1, effectively blocking them. Your comment inspired me to do that thank you!
songzme commented on 4.2 Gigabytes, Or: How to Draw Anything   andys.page/posts/how-to-d... · Posted by u/andy_xor_andrew
songzme · 4 years ago
if I want to replicate what the author did, what drawing tool / software should I get to do the initial drawing? I use ubuntu so preferably something compatible with that.
songzme commented on Five planets are lining up in the sky in June and will peak tonight   cbsnews.com/news/planets-... · Posted by u/gmays
songzme · 4 years ago
I recently got interested in looking at the planets and constellations and I want to suggest these to anyone who is interested:

This book introduced me to how the earth moves and how to find any constellations in the sky: https://www.amazon.com/Stars-New-Way-See-Them/dp/0544763440/

My area has pretty bad light pollution and so having this binoculars really helps to see the hard to see stars (The wide angles helps you see several stars at once so I prefer it to the telescopes): https://smile.amazon.com/gp/product/B084R99W8Q/

songzme commented on How not to teach recursion (2021)   parentheticallyspeaking.o... · Posted by u/tosh
addcninblue · 4 years ago
My background is in teaching CS1 courses in undergrad (as a TA).

There have been various studies that agree with you: teaching recursion before iteration seems to have benefits! From my experience, it seems to be extremely unpopular among teachers due to the claim that recursion is "useless in industry". My personal opinion is that learning recursion first is probably a step in the right direction, but I'm curious to hear your thoughts (in terms of their claims of the usefulness of recursion in industry).

songzme · 4 years ago
> recursion is "useless in industry"

From my experience its true. I have never written recursive code in my 12 years of professional experience (primarily JS).

But during interviews, I have written recursive solutions many times to solve some of the harder problems.

songzme commented on How not to teach recursion (2021)   parentheticallyspeaking.o... · Posted by u/tosh
songzme · 4 years ago
I've been a SWE for 12 years and has been teaching people how to code during my free time ever since I started coding (so more than 12 years of teaching).

I have taught around 30 students over the past 12 years who went from knowing nothing to getting a SWE job and from my limited dataset I have observed that:

1. Students who were taught for/while loops first has a hard time grasping recursion. I suspect it is because following the recursive callstack gets tricky and feels unintuitive. This inspired me to try a curriculum where I teach students recursion first and don't expose them for/while loops until they are prepping for interviews.

2. Students who were taught recursion first has no problem understanding for/while loops when they were exposed to it.

For people who are curious, I used to teach students at my local library but recently created a free online curriculum at: https://c0d3.com

songzme commented on Ask HN: What book changed your life?    · Posted by u/tomrod
nanomonkey · 4 years ago
The Listening Society by Hanzi Freinacht. It taught me that there is indeed a direction for society to go beyond PostModernism, that is constructive and nuanced. Also explained why it is so rare for people to move into such a stage of development.

The Dawn of Everything by David Graeber and David Wengrow. Showed all of the archaeological evidence for vast time periods where alternate governance models were put into practice, and how the history of progress that we are given is not the whole story. Useful for seeing that we are in a local minim, and can evolve into something better.

Dark Emu by Bruce Pascoe. Goes through the diaries and historical evidence of the early interactions with Australia's Aboriginals. Shows how over time their agricultural practices, towns and living environments were destroyed and replaced with a narrative that they were backwards and not using the land. Good example of how sustainable practices can look like unused natural spaces, and thus dismissed as poor uses of space.

songzme · 4 years ago
thanks these books look interesting to me added them to my kindle!
songzme commented on Ask HN: How to build something like Repl.it?    · Posted by u/songzme
verdverm · 4 years ago
Ah ok, there are many options here. You essentially need to do some programmatic devops. You can do this with Kubernetes, Terraform, or the cloud provider APIs directly. You'll need to maintain parity between what they want running and what is running, quotas / limits so they don't run up your bill, and cleanup of resources.

You'll want to be cautious of, and thoughtful in, your security because you are allowing users to run untrusted code. It's not just about protecting yourself from them, but also protecting users from each other.

songzme · 4 years ago
thank you so much I will go learn Kubernetes and Terraform and how they work

u/songzme

KarmaCake day2994September 13, 2012
About
My name is Amay and I teach people about JavaScript at c0d3.com
View Original