Better HN
topnewbestaskshowjobs
Log inSign up

MetaCosm

1,665 karma · joined Aug 6, 2011 (15y ago) · 708 submissions

[ my public key: https://keybase.io/robertmeta; my proof: https://keybase.io/robertmeta/sigs/UgvPNSEcpGbldHtQnQ_-c8SyRvBKjKTr_CLh0lpK0h0 ]
Submissions

comment 11y ago · link · parent

I have been slowly (last 4 or so years) moving away from microservices towards the "cookie cutter" (http://paulhammant.com/2011/11/29/cookie-cutter-scaling/) model (we didn't use that term of art) and been very delighted with the change. I had completely drank the koolaid on microservices, but after having to maintain them in production for a few years, changed my tune.

In my experience that "iterate and change the system easily and quickly" simply doesn't end up being true. That is the bait, but then comes the switch. Once you have a real system, heavily interdependent, the cost of changing things starts to go up greatly, and your ability to cleanly describe a working system becomes challenging. Answering simple management questions like "OK, so if we change X, what could break?"... "We should send out an email to all the teams to ask!" (ugh)

The problem is that for most significant changes to a component -- there are changes to the interface to that component. So you have 'the choice' -- (1) Maintain this interface forever or (2) Ensure all the teams transition off it by X date, via a deprecation system. Both work, and most companies seem to use a mix of both, they strive for (1) until it gets insane, then they do (2) and force everyone to upgrade to X version by Y date.. rinse and repeat.

We are currently doing the "fat binary" cookie cutter system. Our deploy is a single binary that does "all the things". There is a lot to like about this system. Easy to manage and role back. Compile time checking, including additional tools for static analysis, etc. No network overhead on making local calls. You know and can clearly describe 'the system', it isn't in some continuous flux state. Due to compiling time checking and static analysis you can maintain 'one truth' and when you upgrade a component, you can go into all the callers and update them, so you don't have to maintain that old interface. You can scale decently vertically not just horizontally, which at times is a far more efficient way to scale. Overall, it has made us able to move much faster because it gives us a lot of confidence in what we are shipping, and a sense of safety in that we can quickly go back to what we had.

comment 11y ago · link · parent

> You might not remember your great-grandparents but your DNA does. Your family culture does. Much of what makes you, you is built from their legacy.

This sounds like a person arguing on behalf a cast system. Without the right family culture and DNA you can't possible be successful/worthwhile, lets just put those people in a cast to save time, easy labeling for all! Maybe if you breed with a better cast and become part of their family your future would be brighter, so we will arrange a marriage to make this so. This isn't some far off idea - this is the norm in some places, and it is disgusting.

Do you support eugenics? Do you think less of intelligent people who choose to adopt rather than breed? Do you think overpopulation is a non-issue? Do you believe cast systems are useful?

Human knowledge and functional advancement is vastly more important than genetics or children. Jonas Salk had three children, but anyone who claimed "his children are his greatest accomplishment" would be laughed at. His impact on mankind was direct. Direct impact is always better, because no matter how many generations your DNA is passed on, it is all meaningless until they at some point take action and do something. Mindless breeding is something rabbits can do.

There is this desperately sad tendency to want to "pass the buck" to children... sure, MY life was a huge waste, but maybe my children will be something special, maybe it was all worth it because of them.... or my grandchildren. People who do something in the here and now are to be admired because they are a rarity.

comment 11y ago · link · parent

Yep, 3k -- and for the same reason. http://bigthink.com/inside-employees-minds/zappos-will-give-...

comment 11y ago · link · parent

Indeed, it is one of the best one page introduction for a project I have ever seen. Making me go back to some of my projects and redo the READMEs.

comment 11y ago · link · parent

I don't think that would be terribly useful, as a bunch of concepts important to Windows the BSD core utilities would have no idea about. Registry, NTFS, etc.

Honestly, I find 'nix users unwilling to learn PowerShell the exact same as Windows user unwilling to learn a 'nix shell and core utilities.

PowerShell doesn't have SED -- but it has pipeline replacement.

  $ cat .\x.txt | %{$_ -replace "sed", "powershell"}
It also has ideas that are completely different... rather than plain text pipe, it has an object pipe, which lets you do stuff like:

  $ ps | sort company | ft ProcessName -groupby company
Which outputs your processes in table format grouped by company, like

  ...
   Company: Greenshot

  ProcessName
  -----------
  Greenshot

   Company: inkscape.org

  ProcessName
  -----------
  inkscape

   Company: IvoSoft

  ProcessName
  -----------
  ClassicStartMenu

   Company: Microsoft Corporation

  ProcessName
  -----------
  taskhostex
  conhost
  explorer
  ...

comment 11y ago · link · parent

Read this: http://www.lighterra.com/papers/exceptionsharmful/

There is a reason exceptions are often banned from environments and it isn't because they are awesome. They make code "exceptionally" (zing) hard to reason about.

comment 11y ago · link · parent

I am a bit confused, what is the relevance of that paper to the comment? Unless I misunderstood, the comment appeared to be about flow control issues of exceptions(hidden control flow and corrupt state), and I don't see that addressed in that paper.

comment 11y ago · link · parent

I think HIS point was about premature abstraction and YAGNI. The article was just examples of terrible abstractions... they were intentionally terrible. The "generic solution" was an example of what NOT to do.

The article wasn't interview advice, it was advice about avoiding premature abstraction.

comment 11y ago · link · parent

> I take serious issue with the "lesson" that this article is trying to teach at the end, which is that you should not generalize your particular problem into something abstract...

The problem, simply stated by Emil Persson is "Premature optimizations can be troublesome to revert, but premature generalizations are often near impossible."

Or, less delicately phrased by Chris Eric -- "Premature optimization, that's like a fart. Premature abstraction is like taking a dump on another developer's desk."

The root problem is -- you think you know all the possible use cases, you don't. You think you can see the future, you can't. Solve for what is in front of you -- abstract it when you need to for reuse.

As for Alan Kay and his fight against complexity (which is fair and nobel fight, great video on it: https://vimeo.com/82301919) -- he is arguing for the RIGHT abstractions from the perspective of DSLs ... with all the good (and very, very bad) that entails. That said, it is 7 levels of bullshit when you get down to "deploy to metal". Sure, it is a few hundred lines of code for a DSL and OMeta to render geometry -- but skip to 1:40:00 for the real scoop. It was incredibly hard to get to run with any level of performance on ACTUAL hardware in the REAL world. Alan Kay even puts forth that you should always keep the option of "rolling your own hardware", which sadly speaks to a disconnect with ACTUAL software development (and hardware development for that matter). There is no doubt he is a legend of CS (and brilliant), but I simply think his perspective is too far away from reality.

"Software does not run in a magic fairy aether powered by the fevered dreams of CS PhDs." -- Mike Acton (https://youtu.be/rX0ItVEVjHc)

comment 11y ago · link · parent

Didn't make it to the end?

comment 11y ago · link · parent

Yeah, it is rather transparent he is trying to reap the rewards of others peoples effort to jack up his reputation.

comment 11y ago · link · parent

I have to assume he wasn't aware of the feature or simply acted hastily.

comment 11y ago · link · parent

I was going to ask, why didn't he convert it to an org and still maintain the tippy-top reins, but none of the day to day? Was it an ill-thought out rage-quit?

comment 11y ago · link · parent

It seems like using "glassfrog" or something equiv is required. Makes more sense when you look at a "glassfrog" example: https://glassfrog.holacracy.org/organizations/5

comment 11y ago · link · parent

> If you want to upgrade a third party library then you are expected to globally upgrade every user of it .... simply bumping the version of a widely used library can thus turn into a multi-month promotion worthy project!

The alternative is of course supporting dozens or hundreds of copies of a library and every possible commit hash of said library. I contracted at a python shop that had 81 versions of a single library in use all pinned at different versions. The reason I know this is that I had the great joy of dealing with upgrading all of them after a critical hole was not only discovered (the company knew about it for some time, but just didn't want to bother updating all those apps) but exploited... repeatedly.

> it's perhaps not surprising that you can import code from github .... but not specify which version you want. (unless that is now fixed?)

If by "fixed" you mean there are dozens of solutions to pin versions -- then yes. If you mean baked into the go tool, then no.

comment 11y ago · link · parent

I think the point was implicit interfaces, that can actually be easily created before or after the implementation is finished.

comment 11y ago · link · parent

Clewn for GDB.

comment 11y ago · link · parent

> * in my IDE I can search for classnames, I can press ctrl-T to find who inherits from something, ctrl-alt-H to find who uses something etc...

>> -> I believe there are some plugins for but here i haven't seen anything good so far.

Language dependent, Go has "Oracle" for example, for finding callers, etc.

> * debug inside your IDE

>> -> good point. have to wait for Neovim for this - I believe. Installing current WIP version from neovim is on my todolist. ;)

Clewn.

> * auto refactor (I.E. extract method, move variable, extract class etc...)

>> -> good point. don't know any good plugin.

Language specific, Go has multiple and lots of people write small bits of script to do this -- but it is a place IDEs are far ahead of Vim.

> * showing when files are/aren't in version control and integrating version control so that you view history in your IDE.

>> -> if you need to do in the editor... there is plugin for that. However, i found git command line is usually find. and for more serious committing I use GitX (L).

Nerdtree & git-nerdtree.

comment 11y ago · link · parent

Absolutely. That said, I think modern IDEs suffer from huge discoverability problems as well. The truth is, when you have thousands of features, discoverability had to give way to documentation.

comment 11y ago · link · parent

Way more than half, everything except great refactoring support really.

comment 11y ago · link · parent

There have been a lot of replies addressing a few of your concerns, I will attempt to hit all of them. The only one that really has any no great solution is the refactoring support.

> * no tabs

There actually are tabs, but they probably don't work the way you expect, they are closer to viewports or workspaces, but they are there. You can also use assorted plugins to improve tabs and/or emulate them.

> * no project structure

Not sure I understand this way -- no enforced structure? Neither to IDEs, no tree viewer -- there are bunches of tree based file viewers.

> * in my IDE (eclipse based or intellij based) I can ctrl-click a class/object/other to navigate into that object's definition

This is supported by the tags system in Vim, which depends on ctags. :tselect, C-], lots more -- this exists out of the box.

> * in my IDE I can search for classnames, I can press ctrl-T to find who inherits from something, ctrl-alt-H to find who uses something etc...

This obviously very specific to some language you have in your head, as many of those things don't make sense in some languages. That said, this is supported in various languages by various plugins (In Go, Oracle for example).

> when I find myself actually writing code, it's usually a line or two in each of several files (because modern programming paradigms tell us we should split code as much as possible), or modifying some copy pasted snippet I found on google - so navigation is extremely important even when editing.

Agreed, which is why Vim has so many ways from jump-to-def to jump-to-file to various smart plugins for rails and C and <X>.

> * auto-complete(with annotation to tell you what the function variables are)

Gobs of plugins do this for Vim -- normally language specific and they tend to work rather great.

> * debug inside your IDE

See Clewn, full gdb support integrated with vim.

> * run code-lint, auto-build on typing to detect errors, etc...

Vim has all of that, syntastic will show errors in the left bar as you type, setting things to autorun is trivial, all major languages already have this.

> * auto refactor (I.E. extract method, move variable, extract class etc...)

Language specific (as is your IDE's features, because to do requires understand the language), but this exists in limited form for Go and C++ -- and I am sure others. The level isn't up to major IDEs. That said, many of these things are easily scriptable in vim.

> * format all your files according to your pre-specified project guideline.

Tons of vim support for this, even supporting standard 3rd party like EditorConfig.

> * sharing you IDE configuration with other contributors

I think you will find far more vimrc files shared in the wild than any IDE.

> * showing when files are/aren't in version control and integrating version control so that you view history in your IDE.

Fugitive has great time travel features for flipping through versions of files and seeing differences. Use git-nerdtree to add git status to nerdtree.

comment 11y ago · link · parent

Tip: Whatever sound/song you set your alarm to you will grow to hate.

Right now that Deep Note has good feeling by association, it will grow to be your nemesis as your alarm. Then movies will remind you of your alarm. :(

comment 11y ago · link · parent

http://www.vimperator.org/vimperator / http://www.vimperator.org/muttator

comment 11y ago · link · parent

Yeah, it is still a big deal in a lot of environments (including home, making your signification other want to kill you is never good).

Years ago I switched from Cherry to Topre when that was a fancy import-only thing. Now, you can get Topre all over the place. I use the Novatouch TKL currently with dampeners (which come right in the box) -- which is office friendly, has MX compatible stems and is just an all around awesome keyboard.

comment 11y ago · link · parent

Reddit might be a unique case because of "passion hires" -- like gaming studios. People will take far less than market rate if they are working on a project they are passionate about.

That said, I suspect "outside signaling" will become a huge thing. You tell your recruiter you need $X, your recruiter tells Reddit that you need $X, you get offered $X, how convenient for both you and Reddit! On the executive side, over dinner you discuss what it would take you to leave your current company -- of course, not negotiating, just two people talking -- and low and behold, the offer will be exactly what was discussed, of course, no negotiating.

comment 11y ago · link · parent

There are a lot of ways to make arguments nicer in Go. The simple on is to just use a configuration struct (or anon struct) at that has nice names. But, for complex stuff, functional options as laid out by Dave Cheney: http://dave.cheney.net/2014/10/17/functional-options-for-fri... (video: https://www.youtube.com/watch?v=24lFtGHWxAQ)

comment 11y ago · link · parent

Sadly, deployment of Python (or Ruby, Perl, etc) is horrific pain at scale.

If you are automating a large organization -- Powershell has one massive edge, already deployed and able to be managed sanely via the domain management tools with a permission model around it.

Some large (30k+ machine) organizations actually have fairly decent sized research projects on best ways to automate deployments and system management. It ends up being far trickier than it appears on the surface and any tool blessed by MS and shipped by default has a huge edge. Powershell might not be great -- but it is already on the machine and the competition is batch files.

comment 11y ago · link · parent

Additional benefit of the TKL: office friendly with included dampeners, first mechanical(ish) I feel non-rude wanting to use in a shared office environment.

Just realized I didn't mention the actual keyboard, too much inside baseball on this thread I guess -- you knew what I was talking about at least, the Novatouch TKL: http://gaming.coolermaster.com/en/products/keyboards/novatou...

It is interesting that in the time since I purchased it, they toned down the gaming aspect in the marketing.

comment 11y ago · link · parent

I think the implication was an infinite amount of those 1Gb chunks -- IE: they can grow the infrastructure as fast are you can use it.

It is almost assuredly a lie (as someone who is working on a project scaling to PBs -- I pressed a lot of vendors on "unlimited" or "infinite" and most said they simply couldn't scale to X).

12345
24