Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
NateDad
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
NateDad
10y ago
What if your boss says "ok, sorry. We can't match that?". That has happened to me multiple times with real offers. Then you either say "ok, well, I like this company so I'll stay", which sounds disingenuous, o
92.
▲
by
NateDad
10y ago
Work on open source. Be active on message boards and other social places online where your target community spends a lot of time (twitter, etc). Write blog posts about things you've done and share them in those communities. It'
93.
▲
by
NateDad
10y ago
Yes, and the way you solve it is by having an API that holds your business logic. That's how you avoid duplicating business logic in all those applications. Is your database just chock full of insane triggers and functions? Busines
94.
▲
by
NateDad
10y ago
Uh... things that seem to work fine in Mongo under light load tend to fall over during heavy load. Things like this problem. Like key reordering: https://jeremywsherman.com/blog/2013/04/23/key-reorderin
95.
▲
by
NateDad
10y ago
That sounds horrible. No wonder you've never done a migration - it's been made impossible. Why would you not hide the database behind an API, so that you CAN migrate it, change it, etc? This is like not having a separate data l
96.
▲
by
NateDad
10y ago
Question #1 is sorta ok if you're hiring a "full stack developer". And yes, everyone should have a basic understanding of how the internet works. But many modern frameworks/libraries take care of a lot of those details
97.
▲
Most Tech Interviews Suck – The Only 4 Questions That Matter
(medium.com)
1 points
by
NateDad
10y ago
|
2 comments
98.
▲
Provide sharp knives
(m.signalvnoise.com)
3 points
by
NateDad
10y ago
|
0 comments
99.
▲
by
NateDad
10y ago
It's not their personal lives. It was in work time, initiated through work channels. And even if it was at a bar after work, it would still be rude and indicative of the kind of personality you don't want at your company. Waiting
100.
▲
by
NateDad
10y ago
If you're a woman, yes, it's probably true. Like 10,000,000:1 chance. If the boss has known me for a long time and it seems completely out of character for me (which it would be), then maybe he talks to me about it to see WTF is
101.
▲
by
NateDad
10y ago
No one makes up stories like this. They're ALWAYS TRUE. Plus, she probably can show him history on whatsapp (if it supports that, I don't know). MILF is NEVER a compliment to a stranger. It's NEVER a compliment to a friend
102.
▲
by
NateDad
10y ago
He called her a milf to her face. That's completely unacceptable. She was clear when she said "as friends at work". It wouldn't have been harassment if he hadn't been so crude and suggestive. if he'd just sa
103.
▲
by
NateDad
10y ago
Fire him, even if there are financial consequences to you. It's the right thing to do. Sure, do it right and follow the law as best as possible... but do it.
104.
▲
by
NateDad
10y ago
It's not a mistake. He didn't leave the server room door open. He called her a MILF.... TO HER FACE. He's not 12 (I assume). If he hasn't learned to be respectful to women before now, it's not this guy's job
105.
▲
by
NateDad
10y ago
Fire him. Period. He'll do this to someone else who might not report it. Anyone who calls a woman a milf to her face has NO respect for women, and will cause problems with women at the company in 1000 other small ways (and possibly b
106.
▲
by
NateDad
10y ago
absolutely is. It's not a clumsy making a move. That would be "hey, do you want to go have dinner some time?" Calling someone a milf is not something ANYONE with any respect for women would ever do.
107.
▲
by
NateDad
10y ago
This is about code, not libraries. Vendoring the code means copying it into your own repo... that way you're guaranteed that everyone who builds your project is building the exact same code, and if one of the third party repos disappea
108.
▲
by
NateDad
11y ago
yes, which for 57 different types and/or comparison methods requires 57 different functions... which is basically the exact same thing you do in Go. It's just in go, you define a new type based on the original value, rather than
109.
▲
by
NateDad
11y ago
Mostly, yes (you can finagle your way out of rewriting Len and Swap if all you need to do is change the Less function, but it's probably not worth it from a code clarity point of view). In a million lines of code, this costs us approxi
110.
▲
by
NateDad
11y ago
So... you will still need 57 spots in the code where you define how to sort a type. Maybe my reference to sort.Interface is confusing people. When I say we have 57 implementations of sort.Interface, that's 57 different types and/
111.
▲
by
NateDad
11y ago
byName is a type. It's a named type based (likely) on a slice of machines. The byName type implements the functions necessary to support the interface that the sort.Sort function requires: type byName []Machine func (b
112.
▲
by
NateDad
11y ago
Aside from trivial types, like strings or integers, how does the language know how to sort a list of values, if you don't tell it how to? Translate this into whatever language you like: Machine { Name string OS s
113.
▲
by
NateDad
11y ago
Yep. I remember spending a day trying to genericize a Rules Engine type system in C# and finally realized it was idiotic and made the code more complicated, and we'd probably only ever use the code exactly how it was now (i.e. not gene
114.
▲
by
NateDad
11y ago
> >Do we have 67 implementations of sort.Interface? > Hahaha. This has to be satire right? Nope. /home/nate/src/github.com/juju/juju$ grep -r ") Less(" . | wc -l 67 (granted, 10
115.
▲
by
NateDad
11y ago
Actually readability at the point of use is very reader-friendly: machines := db.GetAllMachines() sort.Sort(byName(machines)) For those not familiar with Go, the sort.Sort line is converting the list of machines into a type tha
116.
▲
by
NateDad
11y ago
That's the nice thing about Go code... I almost always know exactly what it'll make the computer do. I know how much memory will get allocated, what the likely CPU usage is going to be, etc. The abstraction between the code and
117.
▲
by
NateDad
11y ago
Yeah, true. And in production, that's what I do. Append is for when you don't know how long a slice will end up being.
118.
▲
by
NateDad
11y ago
Yes, I agree completely. Take leftpad, for example.... And more seriously, there are times when factoring out "common" code makes the code significantly more complicated, and often turns your common code into a morass of specia
119.
▲
by
NateDad
11y ago
I work on juju ( https://github.com/juju/juju ), which all told is about 1M LOC. In my almost 3 years on the project, I have not been bothered by lack of generics, basically at all (and I worked for 10 years in C# on pr
120.
▲
by
NateDad
11y ago
sievebrain - Did you read the full issue? This is an edge case - a program running on a 40 core machine that the developers were trying to keep to a 5MB heap. And yes, the answer was "use more RAM", but by "more" they
More ›