HNHacker News
TopNewBestAskShowJobs

ninjakeyboard

1,181 karma · joined February 6, 2013

moo.
submissionscomments
ninjakeyboard··on Elixir v1.6 released: code formatter, dynamic supervisors, and more
I was thinking that too and had actually created a ticket for it https://github.com/jasongoodwin/emacs-elixir-formatter/issue... . I'm relatively new to elisp and this was a good way to jump in a little deeper - I'll try to tackle this soon. Publish it somewhere etc. I save on navigate away so that would be ideal for me too. I'll try to make that change shortly. Or feel free to make a pr.
ninjakeyboard··on Elixir v1.6 released: code formatter, dynamic supervisors, and more
Some extra stuff I've been working on to supplement the the formatter in your workflow a bit:

Pre commit hook: https://github.com/jasongoodwin/elixir-mix-format-pre-commit...

Emacs format current file: https://github.com/jasongoodwin/emacs-elixir-formatter

Generally the formatter is good, but we've noticed a couple cases where it would be nice to override

EG:

it would be nice to have the join and on statements on the same line so you can see as the reader what relates to what

  u in Db.User,
  distinct: u.id,
  join: c in Db.Comment,
  on: u.id == c.user_id,
  join: p in Db.Profile,
  on: u.profile_id == u.id,
  join: x in Db.SomethingElse,
  on: x.profile_id == u.id,
  join: y in Db.AnotherThing,
  on: y.profile_id == u.id,
...

I can see why it's like that, but it would be nice to be able to override it.

Also the formatter requires () so you end up with ecto code differing from the styles recommend in the docs

  schema "thingy" do
    field(:name, :string)
    field(:abbreviation, :string)
  end
instead of

  schema "thingy" do
    field    :name,         :string
    field    :abbreviation, :string
  end
Anyway, still useful and good for the team.
ninjakeyboard··on GitHub down
yep.
ninjakeyboard··on The State of Atom's Performance
Ya I do periodically spend time in intellij when I work with scala, just because of the discovery and refactoring capabilities. Particularly very large/involved refactoring is helped by the tools. I did a core redesign to support an entirely new use case in a product I'm working on now. I tried to do it by hand and burnt a day, threw away everything, opened intellij, and applied a couple refactoring. In 40 minutes I had the tests passing for what was a very broad and wide refactor.
ninjakeyboard··on The State of Atom's Performance
emacs core is written in C. All of your extensions are mostly in elisp. A few run servers and talk to them though. (Eg ensime)
ninjakeyboard··on The State of Atom's Performance
emacs can be very slow to start if you install everything and the kitchen sink. I had spacemacs installed with everything for working with elixir and it took maybe 5 or 6 seconds to start. I started over from a blank init.el and I have it much quicker but it doesn't really matter because you just run a daemon and connect to it.
ninjakeyboard··on The State of Atom's Performance
I've been learning emacs over the last 6 month or so. How is the "hackability" of atom compared to emacs? I threw away spacemacs, started over, built all my config, am starting to build plugins etc. While the learning curve was steep, the flexibility of emacs is quite amazing and I've only just scratched the surface of the extensibility. It makes me very intrigued to hear about how other people are using editors like Atom.
ninjakeyboard··on Show HN: HNCute, a pretty pink Hacker News theme
I have my hn bar set as pink with the Karma-unlocked feature. This is tempting though...
ninjakeyboard··on Ask HN: What would be your new niche?
I just want to write music. Here is my stuff but I do it 100% for fun only. https://soundcloud.com/decklyn/tracks
ninjakeyboard··on Open Beta of Texpad 1.8, macOS LaTeX editor with integrated realtime typesetting
Whatever happened to ITeX? (rings bell)
ninjakeyboard··on How Hard Is It to Generate a 10X Return on an Investment?
whew it's not about crypto. Getting fatigued by the btc talk.
ninjakeyboard··on FoldingText – Plain text productivity for Mac users
It's like org-mode for normies.
ninjakeyboard··on Excel team considering Python as scripting language: asking for feedback
Or at least a compiler to catch foot shooting (I used to agree 100% but elixir sort of changed my mind)
ninjakeyboard··on Show HN: Culture Queries – The best questions to ask during your job interview
At my startup, we don't have the luxury to spend time pairing every day. I agree it's a great practice though.
ninjakeyboard··on Show HN: Culture Queries – The best questions to ask during your job interview
Pairing is "extreme programming's" (XP) peer review. I'd probably replace Pairing with something that's inclusive of both Extreme approaches as well as run of the mill code reviews.
ninjakeyboard··on Son: A minimal subset of JSON for machine-to-machine communication
You have to compile the protocol buffers so there is overhead. Also the messages aren't human readable eg through kafka so you need to write something to look through the messages. JSON is faster if your dev team need to get from A to B in a hurry, but protocol buffers are a generally a better long term choice if you can put in the effort up front. Both have pros and cons.
ninjakeyboard··on Ask HN: What software/service helps you be an effective remote developer?
I don't like working from home personally. I pollute my personal space with working habits. And pollute my working habits with my activities from my living space. So for me, going away from home to work - even just a coffee shop.

If I need to be working from home I like to use pomodoro to keep me on task. Having a clear list of tasks is good. Taking notes in org-mode on the activities that I'm working on is also good. Basically anything that I would normally do to deal with complexity I need to do when I'm working at home or I end up wasting swathes of time unless I'm really well slept and on point (which I'm usually not because I work at a tiny startup)

ninjakeyboard··on Keeping Time with Amazon Time Sync Service
Does this actually work? We had horrible issues with time drifting between services in AWS at scale in distributed systems.

Something like eg Google Spanner relies on atomic clocks - it's a combination of hardware and software that enable the use of wallclock time.

ninjakeyboard··on What's wrong with the default build tool for Scala
Mostly it's slow. Otherwise it's okay.
ninjakeyboard··on A Founder Salary Calculator
Ya in the last company I founded I would go without paychecks to let my co-founder pay himself when we were running out of money/struggling to collect payment. It's a lot more about the needs of the people to be able to get through the initial phases than it is about 'equality and fairness'
ninjakeyboard··on Simple blood tests may soon be able to deliver news about your cognitive health
I take it as a choline supplement, nootropic, and companion to racetams (especially oxiracetam.)
ninjakeyboard··on Simple blood tests may soon be able to deliver news about your cognitive health
3 years or so.
ninjakeyboard··on Simple blood tests may soon be able to deliver news about your cognitive health
I eat centrophenoxine and racetams and meditate ~daily. I quit drinking/using anything stronger than caffeine. Try to be good to myself.
ninjakeyboard··on Duolingo Emailed My Wife with Her Password in the Subject Line
So Duolingo unofficially replied here! Author, take note.
ninjakeyboard··on Software architecture is failing
I'm working at a startup and we're starting to use event sourcing and CQRS a lot more in the replatforming of core components of the application with kafka for an event log.

Personally, I find these patterns and approaches coupled with sound domain modelling to be perfectly fine. There is some technical overhead for event sourcing so some places we do not use a journal but instead persist current state but we still emit events and do interesting things with those events. CQRS is pretty safe if you're investing into event driven architecture across your organization. You don't need to use both - one or the other is okay too.

I wouldn't have designed this system any other way - there are so many opportunities to do interesting things with the event stream that we discover almost daily.

Event sourcing is more dangerous and you need to have some really sharp people around to fix issues that come up and make it hum. We have multi-million line logs and I've had to spend some time going through open source libraries and changing implementations for projections from the log that were creating contention and performance issues, as well as modifying how the open source libraries recover to paginate through the events. All in, we can now recover from json in postgres at a rate of 20k events/s (although usually we recover from snapshot!) and we can tear through thousands of commands a second in the running system. After these hurdles, everything is contant time or logarithmic so we can handle orders of magnitude growth without any issue. One day we'll have to flip our aggregates to have a clean journal. It's just life in engineering though - software isn't an event, it's a process so if you want to get the gains sometimes there are some costs. As long as you are smart about your choices and have a good team, you can make anything work.

I'll add that the existing stack uses ORMs/active record and the performance overhead of all those damn queries is now too expensive so we're building some screaming fast Eventsourced and commandsourced apps SPECIFICALLY TO GET AWAY FROM THOSE TRIED AND TESTED CLASSICAL PATTERNS. Mind you, we could make the existing application hum too with some careful analysis - I'm not saying one is better or worse, just that they are both equally viable with some smart minds around and good decisions being made. DDD is never a bad thing and ES/CQRS happen to be a reallly incredible fit in spaces where the domain is central as you end up very easily discovering you can have pure and beautiful domain models when you think in commands and events.

I'll just leave a caveat that, while I think we're having good success with the decisions, we also work in a domain with enough complexity that we get a lot of benefit in how ES acts as a heuristic in our modelling. Doing the same with a shopping cart may be overkill.

ninjakeyboard··on Ask HN: Is my career doomed if I don’t become an AI/ML Developer?
I'm a distributed systems person. Not worried at all. There are lots of specializations - just choose one that is interesting to you!
ninjakeyboard··on Java at Alibaba [pdf]
Commodity doesn't mean dumb. There is a general set of skills that most java developers have, and there are a lot of people that have them. So you can replace a developer with another one fairly easily. It's much harder to do with scala. And much harder with elixir or haskell.
ninjakeyboard··on Java at Alibaba [pdf]
I'm a scala engineer. I also work with elixir a bit but Scala is preferred.
ninjakeyboard··on Java at Alibaba [pdf]
Java is well suited to very large projects only because developers are "commodity." With the modern language updates, the core java collections library is really broken for modern multi-paradigm programming. There are no true immutable collections in the core lib which makes Java really show its age with the newer language features compared to other more modern languages such as scala. Functions are bolted on as "Single Abstract Method" classes, which make functions essentially syntactic sugar instead of a first class language feature. Java9 makes some improvements but I wouldn't consider using Java for any new projects unless I was at a big enterprise that can only hire really cheap developer and needs to hire a whole lot of em really fast.
ninjakeyboard··on Tensorflow sucks
I'm not a comp-sci grad and I worked at Google for a bit after a startup I was at was acquired. I didn't proceed far after that 2 years due to the need to commute and/or relocate but I had a clear path into full time work without much else. Although I was granted a bit of a pass, I believe anyone can work at Google given they are 1) slightly above average and have learned every base that they run into in reasonable depth 2) motivated enough to try to interview at least a couple times including extensive "refreshing." Not many people pass the interview the first time so it's a +6 month play. Maybe longer. They look at progress from one interview to the next. Google is a big organization full of lots of people and not many of them are strictly that far above average. Maybe the Dunning Kruger effect may be shifting what I think of myself and the average developer there a bit but it's not unrealistic for any developer to think they can work there. It just takes interest and effort.
← PreviousPage 6 of 17Next →