Recent submissions

Comment · 2 days ago
I get that the black banner is often for paying tribute to people who contribute significantly to science and technologies. But I feel he touched so many scientists and engineers that he deserve a black banner here. I am sad.
Comment · 17 days ago
Wow! This is happy twitter.
Comment · 5 months ago
Comment · 7 months ago
Use uBlock Origin plugin instead. It sources from various block lists to block contents. Works great on most sites, youtube among them.
Comment · 7 months ago
Yes, there are many plus sides if USA were taken over by China.

1. You will see no protest on the street.

2. You will see no homeless on the street.

3. You will hear no more school shootings or any shooting.

4. No more tech companies conflicting with the government.

5. No one will sue the government because it's perfect.

6. All bad people will disappear.

7. Everyone sings praise of the government.

This is better than Utopia, you should pursue it.

Comment · 1 year ago
Everybody knows movies are staged, even the ones that are "based on a true story". From what I can tell, people seem to think those short videos are genuine.
Comment · 1 year ago
Is this why China is such a great and technically advanced country?
Comment · 2 years ago
I prefer to skip straws for most drinks except for bubble tea. Sucking up all those tapioca balls along with the tea is the whole point, otherwise it wouldn't be bubble tea.
Comment · 2 years ago
Working from 9 to 9 six days a week
Comment · 3 years ago
I've been organizing my python projects starting with package folders.

Say I name my package "foo", foo is the top level folder for the source code. Inside foo there is a "main.py" file as the project's start point, and other various modules, let's have one called "module1.py". Now, add another package under "foo", the obvious example name here would be "bar", and add another module under "bar" called "module2.py".

The project structure looks like this:

  - foo/
    |- main.py
    |- module1.py
    |- bar/
       |- module2.py
To reference "module1.py" in "module2.py", just write

  import foo.module1
To reference "module2.py" in "main.py", do as follows

  import foo.bar.module2

There is no problem importing from any level.

To start the program from command line, enter:

python -m foo.main

Comment · 3 years ago
Well, again it depends on the culture. Some boss wouldn't take any disagreement from subordinates well. No matter what the result looks like, if the boss doesn't declare the project failed, than that's not a failure. Even if it failed, the subordinate takes the blame, it's less serious than bringing up issues early because the boss's order is faithfully carried through to the end.
Comment · 3 years ago
I was expecting a sad ending after six years. Glad it turns out well.
Comment · 3 years ago
This service is lacking a major feature and too complicated!

Almost half of the time, I need to know if a number is even. Why doesn't it provide an end point for that?! Don't even tell me about the 409 status code. Am I suppose to know it's an even number when it returns an odd number to me? I only recognize status code 200, all other are errors, don't make this so complicated!

Comment · 3 years ago
Start with something you can handle. Which language doesn't really matter but keep in mind that are so many possibilities. When you are comfortable with your first language, try some other, preferably with a different paradigm. It's totally fine using one language for development most of the time, just remember there are so many ways to accomplish one task.

The age does not matter as long as you can sit down and code. You don't see many old people doing programming because it's simply not many there. Computing is relatively new. It's obvious most people entering this field would be young, older people might require a change of career hence less incentive.

Comment · 3 years ago
Disclaimer: I was never at any position close to like Sr. Director at a fortune 100 tech giant, maybe your company is different.

I use to act as if I own a large stake of the company I worked for, regretting it much later when I realized I was doing too much and knowing too little.

I was just kidding myself pretending as an owner of the company therefore investing too much emotion and work into it. Why would I pretend something that is not true? It's not like fake it until you make it thing.

I do not know how much you know about your company, but I was an outsider that knew nothing about the inner workings and secrets about it. I thought I knew, that's the kidding myself part.

Unless you are a real owner, you are just a cog in a machine. If you perform well, you will be rewarded well as a cog in a machine not as an owner. Most decisions you make would not affect the overall situation. Just do your job well and try to spend time with something else you care after work, not something you have no control of.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton