HNHacker News
TopNewBestAskShowJobs

songzme

2,994 karma · joined September 13, 2012

My name is Amay and I teach people about JavaScript at c0d3.com
submissionscomments
songzme··on YouTube Addiction
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··on Ask HN: Programs that saved you 100 hours? (2022 edition)
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··on 4.2 Gigabytes, Or: How to Draw Anything
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··on Five planets are lining up in the sky in June and will peak tonight
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··on How not to teach recursion (2021)
> 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··on How not to teach recursion (2021)
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··on Ask HN: What book changed your life?
thanks these books look interesting to me added them to my kindle!
songzme··on Ask HN: How to build something like Repl.it?
thank you so much I will go learn Kubernetes and Terraform and how they work
songzme··on Ask HN: How to build something like Repl.it?
sorry I should clarify the parts I don't know. I know how to build a full stack app with user accounts, deploy it to the cloud, then add websockets. I own https://www.c0d3.com

I don't know how to create server instances on the fly.

songzme··on US Senate votes unanimously to make daylight savings time permanent
Does this mean that it is final and that come winter I don't have to reset my clocks anymore?

A bit sad because I have always correlated 12pm as the sun being at its highest point (except daylight savings time, but I mentally adjust for that). Now the sun will always be at the highest point at 1pm.

songzme··on How to get the most out of your 1:1s
I thought about it, and I decided not to. TBH, I like vesting stocks and the stock growth helps me work alot less than I need to ( get to quit, take a year off and live off selling the stock, then go back to work).

With contracting I would have to save and every hour I don't work is an hour I'm not getting money its a bit stressful to think about.

songzme··on How to get the most out of your 1:1s
okay I will try this thank you for the suggestion!
songzme··on How to get the most out of your 1:1s
I really struggle with 1:1s primarily because:

1. Do you want career growth?

No, and its hard to tell that to my manager. More growth leads to more responsibility, which is more stress. I'm happy where I am and I don't want promotions.

I'm afraid to tell my manager that, because which manager wants an unambitious engineer? There was someone like that on our team and he was laid off in the last layoff round, so I have to "pretend" I'm working towards the next level.

2. Do you want more interesting work?

Also no, I'm perfectly happy maintaining our current codebase, not interested in new and shiny projects because my most interesting time is spent at home with my kiddo.

Any tips on how I can handle my 1:1s?

songzme··on User reports indicate problems at Discord
I spend alot of time on Discord on multiple servers. With this outage, I couldn't access any of the servers I'm involved in, which gives me some time to look at open source self hosted alternatives:

https://revolt.chat/ - very similar to discord

https://rocket.chat/ - more similar to slack than discord

https://fosscord.com/ - feels a bit incomplete, I had a hard time using their fosscord instance

songzme··on Fetch API has landed into Node.js
oh I see so when node v17.4.1 is released, I would be able to run

node server.js --experimental-fetch

songzme··on Fetch API has landed into Node.js
sorry if this is a stupid question, but how do I try this out? I ran node with the experimental flag on a file that calls fetch:

node server.js --experimental-fetch

Got 'fetch is not defined' reference error.

songzme··on Zendesk pretends to be open source?
you could start by creating a repository on github and gitlab, they have resources to help you track your source code with git and push your code to your repository. Then now you code is available for everyone to see.

Next, you want to create a readme file so someone new to your project could read it and understand how the code works. You can also start creating issues of features / bugs you plan to do.

songzme··on More than 1M fewer students are in college, the lowest numbers in 50 years
Universities are places where you go for intellectual pursuit of your interests, which is why majors like "study of russian history", "Anthropology And Archeology" exists. The major may be useless for employment, but the study helps preserve history and can be very interesting for the students who are passionate about it.

Somehow, society wrongly started associating universities for corporate job preparation.

I think people are starting to realize that if you want to get prepared for work, you should go to a trade training (like bootcamps). If you are priviledged enough to pursue your interests, then universities are a great place to be.

songzme··on Make the internet yours again with an instant mesh network
Stuff like postfix and dovecot also make my eyes cross

I've been using nodemailin to receive all emails as POST requests. Set the DNS ip address to a vps on hostwinds (they don't seem to block incoming port 25) so it worked for me right away.

https://www.npmjs.com/package/node-mailin

https://www.hostwinds.com/

songzme··on Tech Won’t Save Us. Shrinking Consumption Will
> I’ll be teaching my child possessions mean wealth

That's what my mom taught me.

> just how do you intend to compete with that? Because in that case, my lineage will take your resources.

I didn't turn out the way my mom would have wanted. In my case, I realized that maximizing material wealth did not make me happy.

songzme··on Tech Won’t Save Us. Shrinking Consumption Will
I teach my kids to buy less, reuse as much as possible (like keeping the glass jars to make pickles, etc).

Fix up old furniture instead of buying new ones.

Eventually you'll learn to build an emotional attachment to things and value reliable old stuff that you've improved over time. Its a good thing.

songzme··on Ask HN: What is your spiritual practice?
Eliminate expectations. It seems like 100% of my negative feelings stem from having expectations of people around me. I would say this single practice has the most impact in reducing my negative feelings in the past 2 years.
songzme··on Ask HN: Where are you getting your money's worth?
> Myopia being primarily down to the eyeball growing too long is extremely, extremely well supported by research

Here's a link to a research about the eyeball shortening in adults: http://europepmc.org/article/med/3688185

I think you misread, there is no disputing the fact that eyeball gets longer, I remember him explaining that you have myopia because your eyeball got longer.

songzme··on Ask HN: Where are you getting your money's worth?
There are some things that has tremendous value to me but are offered for free.

A few months ago, I found out about https://endmyopia.org/ and have been following their principles to improve my eyes. I've since learned about how my eyes works and went from -2.75 to -2.25.

If I could have paid a service to heal my eyes naturally without lasik, I would have done it, but the site offered everything for free.

songzme··on Why Finnish babies sleep in cardboard boxes (2013)
My baby is due in 4 weeks. My wife and I shopped for weeks trying to buy a 2nd hand crib that was affordable (We ended up getting one for free from a neighbor on nextdoor).

Never did it cross my mind that I could just use a cardboard box! I will definitely make a cardboard box for my upcoming baby, use it as much as I can, and see if I could get by without a crib! Perfect DIY project for a stay home dad, cribs always felt excessive to me.

songzme··on The Arctic Is Warming Four Times Faster Than the Rest of the World
I found a permaculture community and found a guy who loves to tend to the land but has no money, so I gave him a downpayment to buy an 8 acre piece of land about 2 hours away from me.

> letting it go fully natural

The piece of land we bought was fully natural for a long time and it wasn't pleasant when I first visited. It was extremely thick and hard to even walk about, so the first step we had to do is clear it out to make a living space.

Here's his blog about his updates on the land: https://libresults.com/c/walkabout-update-7-lots-of-rain-and...

songzme··on Squirrel stores thousands of nuts inside man's parked truck
Does anyone know what would happen to the squirrel if he/she realizes their entire year's of investment is gone? Does it have feelings to feel angry / sadness?

Would the Squirrel likely starve (or if it was a breadwinner would the whole family starve), or would another squirrel help it out?

If anyone has interesting resources to learn about squirrels that could help me investigate more please share.

songzme··on Mister Rogers had a simple set of rules for talking to children (2018)
wow thanks for sharing the speech. Great speech. I had to learn after college to appreciate who I was and stop trying to "do sensational stuff" to get people to like me.
songzme··on Intuit to Acquire Mailchimp for $12B
can you teach me what you know? I want to learn but there's only so much I could find. Most of my googling always gives me a full list of "AWS" and other service provider articles.
songzme··on Intuit to Acquire Mailchimp for $12B
Ah I need to buy my own block of ip addresses? Is that what I need to do? And then connect those ip addresses to my computer that I run at home / office?

Sorry if the question is a bit noob, feel free to point me at any resources and I can do some reading myself too

Page 1 of 15Next →