Better HN
topnewbestaskshowjobs
Log inSign up

timewarrior

935 karma · joined May 7, 2014 (12y ago) · 148 submissions

hn at emailap dot com
Submissions

comment 5y ago · link · parent

I always wonder about kids who skip too many grades or who get college degree at 12. Even if they are intellectually there, socially life would be a nightmare. Imagine being a 12 year old which 17 year old peers. I can't imagine the emotional trauma!

I didn't do any IIT coaching and was able to prepare for IIT only for one year in my grade 11. After that I got some major health issue and was harassed by armed bullies in my school, so couldn't study at all in Grade 12. This made me miss Top 200 rank.

But this ended up being a blessing in disguise, because I couldn't get Computer Science at IIT. I have been passionate about computers since I was 8 years old. If I had studied Computer Science as a part of the course curriculum, I might have ended up hating it.

Instead I pursued Computer Science on mine own, based on my interest. I have loved it every single day!

I look forward to my work, versus most of my friends who feel trapped in their jobs!

comment 5y ago · link · parent

I agree with this. Most people need just 2 years during grade 11 and 12. Starting earlier might give minor edge at best but more damage to other aspects of personality and growth!

In IIT, in under 1000 rank, most people who spent more than 2 years were people who were intelligent but didn't take preparation seriously during their grade 11-12 but put in effort after that.

I also know people who were extremely intelligent who could crack under 100 if they gave the exam in grade 8. But they were outliers.

comment 5y ago · link · parent

I have had the same experience. I tried a BMW X7 and could never get a comfortable seat position. There were just too many controls.

I only wish Tesla has thigh extension. Otherwise the seats are really comfortable.

comment 5y ago · link · parent

Thanks, I will take a look at it. It looks really expensive though!

comment 5y ago · link · parent

I meant mongo support for sharing might be marketing fluff. As in they promise it works but it might be unreliable.

I have come to trust Mongo with CRUD on a document. Rest of the features might not work as well. Looks at the recent Jespen test for mongo ( https://jepsen.io/analyses/mongodb-4.2.6 )

comment 5y ago · link · parent

I am not sure what is the exact use case. They could be using it for a non-critical data warehouse which could easily be recreated.

If you can deterministically determine your use case and are confident that mongo will fit it - it might be a good idea.

My concern which mongo is that is if you push the feature set, it will start falling apart at the seams.

Even though Postgres/MySql have some issues which can reduce the velocity of your team, if you absolutely want to be sure about data integrity and want full flexibility of evolving use case, they might serve better than mongo.

comment 5y ago · link · parent

I have been watching these threads forever. I personally like Mongo and wanted to added some real life perspective to it.

In the end it is a tool which fits some scenarios.

comment 5y ago · link · parent

You are correct. This was in the case of replica set.

Are you running Mongo yourself. I use to be at MLab, but Mongo Atlas is really good. Give it a shot!

comment 5y ago · link · parent

Thanks for raising this good point. I didn't get a chance to elaborate on this in my original post because it was getting too long and it was end of a long day.

The cost of adding a column is zero, in terms of schema migration. So that helps with developer velocity. We used an ORM (mongoose), so that we can have added constraints including default values. But Mongo did help us avoid the friction of adding columns.

comment 5y ago · link · parent

There were many questions asking about recent experience with MongoDB. I have some recent experience so wanted to share with everyone.

My background:

2007-2010: Used MySQL to run a social network for 50M+ users. Would send 2B messages on peak days. All powered by Mysql.

2015-2020: Used Mongo to power a top 5k site. Zero downtime and dataloss in 5 years. Used Postgres for internal non user facing database

So I have familiarity with all of these databases at a decent scale. I am going to list pros and cons of each and why I would use. Again a tool is a tool. Just because I love a wrench, doesn't mean that I am going to use it instead of a hammer when I need to put some nails.

MongoDB:

They have come a long way since I started using them in 2012. If your use case is CRUD, you would be fine. There is still a lot of marketing fluff about sharding, multi document transactions etc which might not be fully reliable. I stay away from those things. But if you just use CRUD and you data can fit in a single db you are going to be fine at decent scale.

Following are some reasons I prefer Mongodb. It's possible that Postgres/MySQL has some of them even though I couldn't find them:

1. I don't like to manage schema migrations. During development you constantly add columns and it's a pain to make sure that this column is added to the sql databases on development, testing, staging, prod etc. With mongo, you just add a column and you are done.

2. No downtime on migrations: You can change you server type or mongo version with zero downtime. Did that since 6 years. Couldn't figure out how to do that with postgres (even with Aurora).

3. If you data structure fits document and subdocument schema, mongo is really easy to use. I tried jsonb with postgres and didn't find it as easy to use at mongo. If you data fits this paradigm, you can essentially get atomicity for multiple updates because they are all in a single document.

4. The admin interface of MongoDB Atlas is really development friendly. You can easily add read only replicas. You can easily add replicas in different regions. I shudder at the thought of managing Postgres myself and even Amazon Aurora is not as easy to admin as Atlas.

At this point I would consider Postgres only in the following case: If my data structure is like a non-tree graph. In that case I would expect to do multiple complex join and expect transaction consistency between tables.

If I am building a financial product which directly handles money or money instruments (bank, stock trading) I would definitely not use mongo for that.

Happy to answer followup questions.

comment 6y ago · link · parent

This. That’s the sole reason I bought an SUV.

comment 6y ago · link · parent

As mentioned in the original post, I don’t want to install additional software. If I was open to that Karabiner would be perfect. Thanks!

comment 6y ago · link · parent

One problem with this is that it’s a combination keystroke involving two special keys and tab. That is bad for your fingers especially if it something like tab switch that you use a lot.

With Cmd-[] you just use total two keys which are easy with two hands.

comment 6y ago · link · parent

I don’t install any addons on my browser. Wish Firefox worked just like others.

comment 6y ago · link · parent

Only reason I haven't moved to Firefox on my Mac is that I can't reassign keyboard shortcut for tab change (without using any external software).

Firefox default is Cmd-Shift-[], which gives me pain in left hand if I use it too much. So I have used OS keyboard to reassign the tab change to Cmd-[]. Most apps seem to respect it, but Firefox doesn't.

Does anyone have a better solution?

comment 8y ago · link · parent

I grew up in India and loved driving stick shift. Once I moved to US, I transitioned to Automatic.

Biggest reason I miss Stick shift is that, it just felt that I had a stronger connection with the car and the acceleration was more predictable. With automatic you might not be in the right gear and the car might upshift too soon or too late.

A potential side effect of the stronger connection is that more involvement leads to more spirited driving and potentially traffic tickets.

Then I got a Tesla. Beauty of Tesla is that it has just has one gear, so you are always in the right gear. So this avoids the biggest issue with Automatic. OTOH, because I am not manually changing gear, this avoids the spirited driving issue. It is now an appliance and just works.

comment 8y ago · link · parent

Get GoogleFI - $10/GB worldwide

comment 8y ago · link · parent

Use https://www.distilnetworks.com/

They use AI to block attacks to your site. You can do a bunch of customizations too. They are expensive though and start at USD 500/mo

comment 8y ago · link · parent

I agree. He bought a used Mercedes for 390/mo while in college and not paying loans. What was wrong with having a used Toyota Camry for 8k?

comment 8y ago · link · parent

To do that I would need to take up a job at some big tech firm.

If someone in my situation is forced to do shut down his startup and work for a big firm to stay in US, imagine how difficult it would be for someone else to decide to quit their job to do a startup!

I think big companies have played this well!

comment 8y ago · link · parent

Till recently, best and the brightest meant physically fit and having a gumption and desire to achieve something better.

So US did get the best and brightest till recently!

In today's connected world and population explosion, there is a higher class of highly-skilled immigrants which can't stay in US, due to quotas based on country of birth. Because of this, best and brightest from India aren't moving to US anymore!

comment 8y ago · link · parent

Agreed! People who think Companies wont go this far, need to look no further than the wage suppression agreement between Adobe, Apple Inc., Google, Intel, Intuit, Pixar, Lucasfilm and eBay.

https://en.wikipedia.org/wiki/High-Tech_Employee_Antitrust_L...

comment 8y ago · link · parent

It will take 2 years to get a temporary Green Card. Even after that it take 2+ years to get Permanent Green Card, and it depends on a third party creating and maintaining jobs. So starting now doesn't help in the immediate term :( And too much uncertainty for longer term.

comment 8y ago · link · parent

I agree with this. While most people blame Republicans, it's Democrats who have been the biggest enemies of High Skilled Immigrants.

There were many situations in the past 8 years, where laws could be passed to benefit High skilled immigrants. However Democrats always said that either you have Comprehensive Immigration Reform or nothing.

I worked with someone senior from FWD.us. Apparently it was created to make sure that there is unlimited H1 but no Green Cards (especially for Indians who are most impacted by this and are a decent part of workforce at FB, Google, MS etc). Apparently Democrats promised that they if they move their cause to support illegal immigration, Democrats would never let the Green Card situation get fixed for high skilled immigration. Due to this FWD.us completely shifted focus from high skilled immigration to illegals.

comment 8y ago · link · parent

Yes. Couldn't agree more!

comment 8y ago · link · parent

I built a company and sold it to Dropbox. Building another company to cure Cancer using AI. Leadership positions at various big companies. Wrote a book about Entrepreneurship which is part of an Executive MBA program. Built the biggest social network to come out of India.

Because I am from India, I would never get a Green Card through EB-2 (though I have two approved EB-2 petitions). Yesterday, USCIS denied my EB-1 petition using argument which are against the law. Now I have to leave US :(

I have an approved O-1 (extraordinary ability), but apparently, once you have filed for a Green Card Adjustment of Status, you can't get a visa stamp for anything other than H-1. Not sure if I can come back!

comment 8y ago · link · parent

If I want to use it as a write only table where I would like to get virtual indexes for values inside the JSONb column.

Would you recommend using Postgres for this usecase?

comment 8y ago · link · parent

This is great to know. I usually am able to manage without transactions. So alerts should be pretty fast.
12345