HNHacker News
TopNewBestAskShowJobs

amirkdv

741 karma · joined August 9, 2013

amirkdv.ca
submissionscomments
amirkdv··on Most common mistakes during interviews
Funny how everyone here, myself included, assumed the numbers were integers!

I like the follow up question of "what if they are floats?" to see if the interviewee knows not to use `==` with floats.

amirkdv··on Most common mistakes during interviews
> > given a list of numbers, return two numbers such that one times the other results in 220

> > is the list sorted?

> this barely qualifies as a clarifying question in my opinion.

Maybe I'm being too charitable but whether or not the list is sorted is very relevant to the first solution that came to my mind as I read the problem.

  for i from 1 to n:
    for j from i+1 to n:
      prod = a[i] * a[j]
      if prod == 220:
        # found it
      if prod > 220:
        break
        # don't waste time, assumes sorted
amirkdv··on Show HN: Healthcare Is Dumb
> given the choice between building the current system and some alternative, there is no way you'd say, "for sure, build again what we have now, it's great".

> Yet that's what we kind of do every year implicitly by continuing through inertia. Healthcare, financial/banking, transportation, rocket launches, etc.

Also on this absurd list: academic publishing

amirkdv··on ‘Surge Capacity’ Is Depleted – It’s Why You Feel Awful
Can't upvote this enough! Virtually every paragraph of the article _only_ makes sense from a middle-class perspective.
amirkdv··on Tired of note-taking apps
> I've become less fussed about the tools and more focused on the process

This has been my conclusion after years of trying different tools or even trying to make my own. Once I started focusing on the process I realized that not only I don't need a lot of features from a tool, I'm actually better off without any complex features.

I just use markdown, vim, and git. This specific choice of tools for me is only guided by one thing: I don't want to waste any brain cycles on figuring out / deciding how my note taking tools should behave. For someone else this could've been a Word doc and a folder structure. When you do that, then taking notes becomes as trivial as writing with pen and paper, except for the ability to edit and grep which is really all you need.

Bonus: it's ridicuously easy to work with markdown (and friends) with pandoc. I routinely convert all my markdown notes to html and use < 100 loc of ad-hoc JS to give it a decent browsing UI.

amirkdv··on Perl 7 is going to be Perl 5.32, mostly
I'm not the original comment author, neither am I fluent in Perl. But I suspect they meant nested hashes and not a hash whose values are arrays of arrays. As you point out, the latter is trivial.

To be clear, even a nested hash is all well as long as the depth and the keys are literals (as in your example). It is when keys are dynamic that things get unruly. And god forbid if the _depth_ of nesting is dynamic. All of these are trivial to implement in Python, Ruby, JS, PHP, ...

amirkdv··on Stagnation and Scientific Incentives
I have an agreement and a disagreement with your take:

* I agree that reducing salaries for academics will only make the currently misplaced incentives worse. It will deprive society from the valuable research that more competent and talented folks would have done. In my mind, the key point in all these budgetary conversations is the ballooning bureaucratic/administrative layer that is eating up more and more of the budget and making it harder for universities, as collectives of teachers and researchers, to adapt to the evolving priorities of the real world.

* I disagree that there should be less researchers. Fewer academics, maybe, but we definitely need more people who can make a lifestyle out of entirely or partially doing research. My admittedly anecdotal impression is that for every "not exactly scientifically smart" person who secures tenure, there are a handful of would-have-been-great researchers who just get fed up and leave academia despite having the passion, competence, and the willingness to even make a few sacrifices.

IMHO we have cornered ourselves into a false dichotomy (broad strokes here, there are exceptions of course): either (a) you are an academic, you have to pull 60 hr weeks to do any meaningful research, and you have to deal the ossified structural issues of academia, or (b) you are out in the wild, make a lot more money, but you spend your 40 hr weeks towards maximizing short-term profits of your employer. I would think were there a viable alternative to this dichotomy that many passionate and competent people would happily make some reasonable sacrifices (in pay, work hours) to engage meaningfully in much-needed research.

amirkdv··on What Companies Are For
It would have been odd if corporations were democratically run and had internal mechanisms for reflecting the values and aspirations of the large group of people that work for it.

At a traditional corporation however the emergent "mind of its own" is there but it is effectively only influenced by the minuscule group of people who control it. And in this sense it is soulless in the same way that an army is soulless.

amirkdv··on Ask HN: Who is hiring? (January 2019)
Streamline Genomics | Montreal | Onsite

We are a growing team of scientists and engineers with startup experience working on a genomics analysis platform to help bring the power of bioinformatics directly to clinicians. The company has secured investments and established working connections with multiple hospitals and research institutes in Montreal. If you are passionate about bringing cutting edge bioinformatics research to the clinic, building robust data processing pipelines, designing creative ways to present data, and taking ownership for the product you help imagine and build, Streamline Genomics is the place for you!

Compensation: Salary, equity negotiable

Work culture: learning together, empowered engineers, regular feedback from clinicians, flexible working hours.

Stack: Python, JavaScript, docker, AWS.

We are hiring for multiple positions:

- Full-stack web developer: https://angel.co/streamline-genomics/jobs/459839-full-stack-...

- Bioinformatics/Software engineer: https://angel.co/streamline-genomics/jobs/459840-junior-soft...

We expect that for the right candidate an appropriate role that suits their skill set and interests can be imagined. We also have collaborations with genomics labs in Montreal who are open to hiring post-doctoral research fellows for collaborative projects with Streamline Genomics.

To apply, send your CV and a cover letter to info@streamlinegenomics.com.

For any questions you can reach me at amir@amirkdv.ca.

amirkdv··on Watch a machine-learning system parse the grammatical structure of sentences
I don't see how it got it wrong (and it would be surprising if it did given the sentence is not syntactically ambiguous). It does use a visual notation which, AFAIK, differs from the standard in linguistcs [0].

[0]: https://en.wikipedia.org/wiki/File:Syntax_tree_for_Colorless...

amirkdv··on New Search Strategy for Firefox
Same here. FF + DDG + FastMail is a quite low action path away from Google for individual users. Migration took me only a day (FastMail's mass migration is truly a breeze) and after almost a year: no complaints (maybe minor wishes, but hey!).

EDIT: and K-9 (for Android) as mail-client.

amirkdv··on I got hired at a Bangladesh sweatshop. Meet my 9-year-old boss [video]
I would add a minor footnote, namely the only part of the story that can be concievably considered morally relevant to us: what can be done here? And by "here" I mean the countries to whose jursidiction these multinational giants belong.

Just take the recent Supreme Court ruling [1] that made it even harder than it already was to sue corporations for human right abuses overseas. The ruling is already being used as precedent [2] to dismiss overseas abuse charges.

[1] "Kiobel v. Royal Dutch Petroleum Co." http://www.supremecourt.gov/opinions/12pdf/10-1491_l6gn.pdf

[2] "Al Shimari v. CACI et al." http://ccrjustice.org/ourcases/current-cases/al-shimari-v-ca...

← PreviousPage 4 of 4