Skip to content

Instantly share code, notes, and snippets.

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@tushartyagi
tushartyagi / composer.log
Created January 4, 2019 03:28
composer_error
Reading ./composer.json
Loading config file ./composer.json
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Executing command (/home/user/wallabag): git branch --no-color --no-abbrev -v
Failed to initialize global composer: Composer could not find the config file: /home/user/.composer/composer.json
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Running 1.8.0 (2018-12-03 10:31:16) with PHP 7.0.33-0+deb9u1 on Linux / 4.9.0-8-amd64
Loading composer repositories with package information
Downloading https://repo.packagist.org/packages.json
Writing /home/user/.composer/cache/repo/https---repo.packagist.org/packages.json into cache

Keybase proof

I hereby claim:

  • I am tushartyagi on github.
  • I am tushartyagi (https://keybase.io/tushartyagi) on keybase.
  • I have a public key whose fingerprint is 87B7 EB3E BDD1 EAFC 8F2E 85A0 F800 7E1A 9192 3CED

To claim this, I am signing this object:

@tushartyagi
tushartyagi / Blogroll
Last active May 7, 2018 04:21
Blogs which I follow
("http://nullprogram.com/feed/"
"http://www.terminally-incoherent.com/blog/feed/"
("http://josephg.com/blog/rss/" tech)
("https://cestlaz.github.io/rss.xml" tech)
("http://jvns.ca/atom.xml" tech)
("http://danluu.com/atom.xml" tech)
("http://yosefk.com/blog/feed" programming tech)
("http://feeds.feedburner.com/mrmoneymustache" frugality)
("http://feeds.feedburner.com/Frugalwoods" frugality)
("http://www.raptitude.com/feed/" living)
@tushartyagi
tushartyagi / rabin_karp.c
Created April 17, 2017 14:38
Simple implementation of Rabin Karp for string matching
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
const ASCII_SIZE = 255;
int substring_hash(char *s, int begin, int end) {
// TODO: A better hash (or use modulo)
namespace Cracking
open System
module Trie =
type TrieNode =
| Terminal (* This is `*` *)
| Node of char * TrieNode list
namespace Cracking
open System
module Tree =
// A Binary Tree
type BinaryTree<'a> =
| Leaf
| Node of 'a * BinaryTree<'a> * BinaryTree<'a>
@tushartyagi
tushartyagi / python_client.py
Created March 10, 2017 13:07
Echo socket client in python
# Taken from Python MOTW
import socket
import sys
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server = ('localhost', 5678)
s.connect(server)
print('Connecting to {} at port {}', *server)
@tushartyagi
tushartyagi / python_server.py
Created March 10, 2017 13:06
Echo server in python
# Taken from Python MOTW
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(('localhost', 5678))
s.listen()
while True:
@tushartyagi
tushartyagi / cs_client.cs
Created March 10, 2017 13:05
Local Echo Client in CSharp
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace SocketProgramming
{