Better HN
topnewbestaskshowjobs
Log inSign up

andorov

133 karma · joined May 6, 2014 (12y ago) · 41 submissions

Submissions

comment 2y ago · link · parent

I always remember this from the example my professor gave -

   'raise the control rods by 1 inch' 
vs 'raise the control rods to a height of 4 inches'

comment 3y ago · link · parent

I've been using the term 'macro-services' to describe this middle ground.

comment 3y ago · link · parent

worth re-upping -

postgres requests an id from the sequence for each row of the incoming data ahead of time since it doesn't know which rows are updates and which are inserts (although presumably this could be changed?). the sequence doesn't reset down for the unused so this can eat through it unexpectedly quickly if you have a table with a relatively large volume of updates.

also as a tip if you hit the max integer for the sequence and need space to implement a fundamental fix you can quickly change the sequence to start at -1 and go down. there's no issue with negative ids since they're also integers.

comment 3y ago · link · parent

Similar quote from Lao Tzu. I like the inclusion of thoughts -> words -> actions.

"Watch your thoughts, they become your words;

watch your words, they become your actions;

watch your actions, they become your habits;

watch your habits, they become your character;

watch your character, it becomes your destiny."

comment 3y ago · link · parent

this also matters if you do a lot of upserts on a table that are predominantly updates. postgres requests an id from the sequence for each row of the incoming data ahead of time since it doesn't know which rows are updates and which are inserts. the sequence doesn't reset down for the unused so this can eat through it unexpectedly quickly.

if you hit the max integer for the sequence and need space to implement a fundamental fix you can quickly change the sequence to start at -1 and go down. there's no issue with negative ids since they're also integers.

comment 3y ago · link · parent

SpinLaunch is pretty interesting too - throwing ships into space https://www.spinlaunch.com/

comment 3y ago · link · parent

Hemmingway would leave off writing for the day in the middle of a sentence for the same reason.

comment 3y ago · link · parent

In my experience people are inaccurately pessimistic, in part due to a lack of imagination. So risk assessment that's more accurate will present as more optimistic.

comment 3y ago · link · parent

DRY needs to be balanced with SRP (Single Responsibility Principle). You can legitimately have two functions that are exactly the same but they should not be DRY'd up if they are actually serving different purposes.

The use cases will likely diverge in the future, and if the functions are DRY'd making changes will make introducing bugs from the calling code that you're not working on easy. Eventually the single function will likely have a lot of conditions in it, which is a red flag for this situation.

comment 3y ago · link · parent

Ramanujan attributed all of his conjectures to being visited by a goddess in his dreams.

https://kristinposehn.substack.com/p/ramanujan-dreams?r=feux...

comment 3y ago · link · parent

the Magic / More Magic switch is a favorite http://www.catb.org/jargon/html/magic-story.html

comment 3y ago · link · parent

Also changes to the diagram (at a certain resolution) require looping in specific senior people for review.

comment 3y ago · link · parent

I'm not presenting an argument against UBI - I am pointing out that his argument is flawed.

Small tribes of humans defending hunting/foraging grounds is a state of pre-civilization. Life required work then too, and things were worse. His premise is that things used to be better and we've made it worse. Hard disagree.

comment 3y ago · link · parent

> Land used to exist without a monetary cost to access it. That was the natural way of things prior to the private property system and monetary system.

All land / resources were staked out by small tribes of humans who might kill you for using it?

comment 3y ago · link · parent

What about the disk being reused by another process without being thoroughly wiped by AWS?

comment 4y ago · link · parent

We can't even fully understand chess (or even checkers), in the way that we can completely understand tic-tac-toe.

comment 4y ago · link · parent

You can buy clips that prevent the beeping.

The top result is also a bottle opener... https://www.amazon.com/seat-belt-buckle-alarm-stopper/s?k=se...

comment 4y ago · link · parent

I got flagged for paying a friend back for "cuban food"...

comment 5y ago · link · parent

computer science is applied math, and software engineering is applied philosophy

comment 6y ago · link · parent

Heh also firing a stun grenade into your ship at the end of a mission. Promotions for everyone!

comment 6y ago · link · parent

Thank you for your work! Postgres is great to use and the regular release of useful features has been a very nice benefit.

One unobvious (to me) but possibly necessary side effect of the INSERT...ON CONFLICT pattern is that it reserves a primary id for every row ahead of time, presumably because it does not know what will be updated and what will be inserted. We have a heavily updated table that started failing inserts one day because the primary id sequence hit the max int (2.1b), despite the table only reaching 100mm rows. The immediate fix was to reset the sequence to -1 and have it start going down...

comment 6y ago · link · parent

What if someone hacks it to intentionally blind you?

comment 6y ago · link · parent

I found that studying philosophy has had an extremely useful application to software development and architecture.

comment 7y ago · link · parent

I think it is also useful to be aware of the specific terms your team might need and introduce words to those more abstract concepts. This frequently happens with naming specific code patterns or important classes in the code, but can also be for how the team operates in general. A DSL for how your team operates.

comment 7y ago · link · parent

This one too - 10 pages of Pascal to six shell commands https://leancrew.com/all-this/2011/12/more-shell-less-egg/

comment 7y ago · link · parent

In Peru I saw are several very large stones sitting on the trail between the quarry and a partially finished temple. One of them at the bottom of a very steep hill. Our guide did speculate that getting the stones on site was a gradual process.

comment 8y ago · link · parent

Reminds me of Computerphile's The Problem with Time & Timezones - https://www.youtube.com/watch?v=-5wpm-gesOY

comment 8y ago · link · parent

it's likely a society that has reached the point where it has the economic means & political will to replace lead pipes is also improving schools / etc at that point

comment 9y ago · link · parent

In most cases wouldn't you send a drone instead?

comment 9y ago · link · parent

The oldest demographic age target for their advertising is 35+
12