Better HN
topnewbestaskshowjobs
Log inSign up

Merad

2,800 karma · joined Mar 14, 2015 (11y ago) · 772 submissions

Submissions

comment 6y ago · link · parent

What exactly would you be hoping to see the candidate do in such an interview? I’m moderately experienced on the front end (mostly jQuery and React, a bit of AngularJS) but if the task is making a SPA in vanilla JS I’d barely know where to begin. It’s pretty likely that I’d do hours of reading and researching before writing a single line of code. It would be one thing to talk about how you’d approach the task, but the GP specified their interview was apparently expecting workable code to be produced during the interview.

comment 7y ago · link · parent

Ive worked on several apps that tried this approach and each of them was a mess. I’ve seen two fundamental problems with building your app on top of stored procs:

* Tooling around sql is generally inferior to what’s available for <pick your favorite language>. I’ve yet to see a company with effective automated tests around their database... it’s far more common to have _no_ tests around the database. Even if you’re the unicorn that does have all of that figured out, it still tends to be more difficult for your devs to write and test code.

* Most devs are poor to mediocre when it comes to sql. You’re either going to have to hire more specifically for sql, or force your devs to do complex work (your business logic) in a toolset that they aren’t that good at.

IMO this is a case where a few applications may have significant concurrency issues that warrant the database business logic approach... but for your average app, it’s unnecessary and makes life more difficult for your team.

comment 7y ago · link · parent

Have you tried thunks using async/await? IMO its all the benefits of being easy to read and understand without having to learn a totally new concept (generators).

comment 7y ago · link · parent

Thanks for taking the time to respond!

Re squash commits: as a MR author what I want is the ability to set the commit message in advance (even if it's just a check box to say "use the MR title and description". Using a commit message is a sane default behavior, but not extremely helpful most of the time (IMO). If I'm going to rely on it for the message in my squashed commit I'm going to have to remember to check my branch history, and most of the time I'll probably have to do an interactive rebase to clean things up and ensure Gitlab grabs the correct commit message. It also negates the value of "squash on the server" - if I need to do an interactive rebase anyway, it only requires about 30 seconds extra to just do the squash myself.

comment 7y ago · link · parent

Our devops team loves Gitlab pipelines and pushed the decision through. If you're looking for a "killer feature" on Gitlab, pipelines is probably it.

As a developer I don't think there's a huge difference, especially since we don't use the issue tracking or wiki stuff (we're all in Jira/Confluence). My main complaint about Gitlab is that there are a lot of places where the UI is rough around the edges (lots of pages lack or have very minimal search/sort options) or has outright bad UX, as well as lacking some features that feel pretty basic to me.

My main complaints about Gitlab at the moment:

* Lack of search/sort, as mentioned above

* We created teams in Gitlab to mirror our scrum teams... when you look at the team list in Gitlab, it shows everyone who has access to the team, which is our whole damned Gitlab account. The only way to find the actual team members is to scroll down the list looking for users with a delete icon by their name (which removes them from the team).

* If you want to set a required number of approvals on merge requests, you also have to set the list of reviewers. I wanted to set two required approvers but let the devs assign who (normally their team)... no can do.

* Poor support for making merge requests build the result the merge (instead of just the branch). We've tried setting it up a couple of times, but usually end up with MR's hung because Gitlab doesn't firing the right builds and end up having to turn it off.

* If you have the server squash commits when closing a MR there's no way to set the commit message in advance; you have to type in the message just before you click the merge button. This wouldn't be an issue if it defaulted to using the MR description as the commit message, but it doesn't do that either...

comment 7y ago · link · parent

> Epstein was clearly a pedophile. Even at the time in question, it was already quite clear that he was a pedophile.

He wasn't a pedophile, at least from what I've read. Pedophilia specifically refers to an attraction to prepubescent children - Epstein was interested in adolescent girls, which would make him a hebephile. If Epstein was going around with an entourage of 10 year old girls it would've been extremely obvious, and he would've been arrested in about 5 minutes. OTOH it can be legitimately hard to tell the difference between a 14 year old and an 18 year old. People may have heard rumors or had their own suspicions, but they probably weren't sure and that uncertainty made it easy to take the safe route and stay silent...

comment 7y ago · link · parent

> It's also frustrating that every time a user leaves an organization, my entire chat history with them is deleted as well.

That may be a setting in the organization or something that your Slack admins are doing? I'm able to look up DM history with former employees in our Slack, their account is just tagged as having been deactived.

comment 7y ago · link · parent

I'm doubtful that recursion would ever be more performant than iteration. Iteration with a stack gives you all the capability of recursion without the function call overhead. As others have said, the main advantage of recursion is ease of designing and understanding the solution.

comment 7y ago · link · parent

I have no idea what the context for this article is, but my main takeaway is that I'm very glad that I never got into Twitter.

comment 7y ago · link · parent

I don’t know about modern astronauts, but bear in mind that at the point when the Skylab missions happened there were only about 50 astronauts total in the US. Only about half of those had actually flown in space. I have a feeling that being one of the ~25 people in the country with space flight experience was enough to open doors at basically every aerospace company, most large defense contractors, etc.

comment 7y ago · link · parent

A helicopter's rotor has a complex control system that has you changing the pitch of the rotor blades and the angle of the rotor disk, with the rotor behaving similarly to the wing of an airplane. Quadcopters usually rely purely on thrust for control. For example to bank, the motors on one side spin faster (more thrust) and the motors on the other side spin slower (less thrust). If you lose a motor, or lose the ability to control a motor, you lose the ability to control the quad.

In comparison, a helicopter will have a clutch that can disengage the rotor from the engine and let it turn freely. The pilot still has the ability to control the rotor, so she has some control during the autorotation. At the end, just before landing/impact, she will perform a flare, using the rotational energy in the rotor to slow the helicopter's descent.

comment 7y ago · link · parent

> I asked her why we had to play an hour long cat-and-mouse game to get this done. She had no explanation.

Because she's quite literally given a set of rules that says, "if the customer says X, you're allowed to take action Y."

comment 7y ago · link · parent

You have to include supporting documentation if you claim > 10 hours spent.

comment 7y ago · link · parent

> So many comments here missing the point. As a developer, I can use wasm to ship a single binary that works on Windows, Mac, Linux, Android, and iOS.

But we've accomplished that by effectively turning web browsers into VM's that have a complexity on par with a full operating system. I have a sneaking suspicion that we're going to end up deciding that was a huge mistake.

comment 7y ago · link · parent

Depends on how you look at it, but IMO: yes. Eve is one of the few (maybe the only?) MMOs with a direct and legitimate conversion between real currency and in-game currency.

You can purchase (with real money) an item called PLEX, which can either be applied to your account to extend your subscription, or sold to another player for in-game currency. There are many players who pay for their subscription by farming in-game.

comment 7y ago · link · parent

Having played Eve for the better part of 6 years (2003-2009) I can tell you that it's a lot more fun to read about than to play. In some ways the game is way too close to real life. You typically have to put in a lot of work in-game to support your in-game fun time. PvP combat itself is plenty fun, but there were many times I spent all day (18-20 hours straight) logged in and participating in fleet ops in order to get perhaps 15-20 minutes of actual combat.

comment 7y ago · link · parent

Deepfake voices would twist the knife even deeper, but they aren't necessary. This kind of scam already hits seniors all the time:

https://www.chicagotribune.com/opinion/commentary/ct-perspec...

https://www.aarp.org/money/scams-fraud/info-2018/grandparent...

https://www.consumer.ftc.gov/articles/0204-family-emergency-...

comment 7y ago · link · parent

I'm struggling to see how try/catch is either magic or surprising unless you simply aren't familiar with exception handling.

comment 7y ago · link · parent

That video is incredible. It's hard to estimate size from the shaky footage late in the video, but I would say the fire grows to be almost 50 meters wide in the course of... three minutes? And that's with a dozen men trying to fight it. I was looking at some other grass fire videos and found a great demonstration by a fire department [1]. It's pretty clear that even on a calm day in short grass your window to stamp out an accidental fire is perhaps 10 seconds.

1: https://www.youtube.com/watch?v=rcYVt0DMlos

comment 7y ago · link · parent

Unless you limit yourself to flying very near the ground and very near sea level, the speed of an aircraft is more complex than a single number. In fact four different speed numbers are commonly used: indicated airspeed, calibrated airspeed, true airspeed, and ground speed.

* IAS is the raw airspeed reading from the pitot tube.

* CAS is IAS corrected for instrument errors, e.g. if the plane is at an angle that disrupts air flow around the pitot tube.

* TAS is basically CAS adjusted for altitude and air pressure. It’s the aircraft’s speed relative to the air around it.

* Ground speed (or speed over the ground) is TAS adjusted for the wind. This is the number that GPS is going to give you.

IAS and CAS are particularly important for describing performance characteristics - if an aircraft stalls at 100 knots CAS, then it always stalls at that CAS. If you try to describe the stall speed in terms of TAS you go from a single data point to a graph of speed and altitude.

comment 7y ago · link · parent

Anandtech was sold (or maybe Anand left, I don’t recall exactly) about 5-6 years ago. The depth of their technical writing isn’t what it used to be.

comment 7y ago · link · parent

I worked for a few years in enterprise app development at a Fortune 500, and our bread and butter (probably 75% of new code written) was making replacements for people's homegrown "apps" build on top of Excel or Access that had grown so large that they needed a real SQL back end.

I say this not to disparage those apps (though they were often horrifying to us as devs) but to point out that huge portions of your average large business probably run on stuff like that.

comment 7y ago · link · parent

What fascinates me is that my cat understands the difference between when I've left the house and when I've gone somewhere in the house that she can't follow. I got her in college, and the first few years when I would take her home to my parent's house my mom put up barriers limiting the cat to the ground floor of the house. If I went upstairs to take a shower she would sit at the bottom of the stairs crying the entire time, but if I went out to the store she'd curl up and nap or whatever without a care in the world. Likewise in my current house if I go out to get the mail she won't make a sound. If the windows are open she'll run to the open window and sit in it watching me, but won't cry. If I go into the basement, on the other hand... We actually came to a compromise on that, because the clothes washer & dryer are in the basement. If I'm just doing laundry I'll leave the basement door open so she can sit at the bottom of the stairs and watch me. Naturally if I'm busy in the basement for more than a few minutes she'll start to creep in, but a gentle rebuke will send her back to the door. Not once has she tried to run into the basement and hide or anything like that.

This cat will also come to the door and greet me every day when I get home. I remember one day maybe three years ago when for some reason I came home during the middle of the day. I came inside and and nothing - silent house, no cat, so I came inside far enough to look down the hall towards the bedrooms where I figured the cat was sleeping. At the far end of the hall was a kitty face just barely peeking around the corner, and as soon as she recognized me she let out a machine gun burst of meows and came running at full speed.

comment 7y ago · link · parent

Perhaps "deprecated" isn't quite accurate. I could have sworn one of their documentation pages basically said, "there's a good chance you'll run into problems if you use the CLI, and we don't recommend using it." If there was something that explicit I can't find it at the moment. There is [0] that says "please use the in-process runner if possible," [1] discussing problems with the cli migrators, and [2] where the maintainer seems to have a preference for removing the cli's in the long run.

[0]: https://fluentmigrator.github.io/articles/migration-runners....

[1]: https://github.com/fluentmigrator/fluentmigrator/issues/1006

[2]: https://github.com/fluentmigrator/fluentmigrator/issues/1016

comment 7y ago · link · parent

How do you apply your migrations? I was setting up a project a few weeks ago and reached for FluentMigrator as it used to be my go to tool... but apparently the command line tool is now deprecated and they recommend writing custom code to do migrations. I eventually decided to give EF Core migrations a try, which is working pretty well so far.

comment 7y ago · link · parent

Visual Studio's debugger is especially magical with .NET. With the debugger paused on a breakpoint you can drag the "next statement" pointer backwards to rerun pieces of your code. You can also edit the code while paused and your changes will be reloaded on the fly when you continue execution.

comment 7y ago · link · parent

I was under the impression that there were already devices on the market that would monitor your blood sugar and dispense insulin as needed. Is that not the case? Or does this system provide some additional functionality?

comment 7y ago · link · parent

It sounds like those builds weren’t quite set up correctly. I’ve used TeamCity’s build chains quite a bit and haven’t seen this behavior. Depending on exactly how the builds are triggered it will sometimes enqueue redundant builds, but as the duplicates come to the top of the queue the server realizes they’re unnecessary and doesn’t run them.

comment 7y ago · link · parent

"Add a sensor" is a non-trivial exercise in the aviation world. If you're doing things correctly you need triple redundancy so you can determine when one sensor is returning bad data. Adding sensors for every little thing would add enormous complexity to what are already extremely complex machines.

comment 7y ago · link · parent

I would tend to attribute this to the fact that butter is delicious before I'd say it was an instinctual craving for fats.
1
151617
26