HNHacker News
TopNewBestAskShowJobs

mytochar

111 karma · joined September 25, 2014

Software Developer with interests in machine learning
submissionscomments
mytochar··on Outcome-Oriented Programming
This is where my knowledge gets weak; but, isn't this the type of programming that Ada and various languages that have a matching system are built around?

You have a function that returns an enum and you have to match all the different states of the enum in your handling code. The ones that call your given function have to do the same and so on and so on.

You can still have bugs in this model if I recall, they're just harder to have, I think. Admittedly, this is getting outside of my area of recent experience and expertise, I just swear I've read about something like this before.

mytochar··on Outcome-Oriented Programming
That whole article was an introduction to this: https://gist.github.com/mikermcneil/be8ced394c53edd92e57 which, to me, was a bit hard to realize in the article that it was a link.
mytochar··on A shrinking Firefox faces endangered species status
Doesn't Apple use Webkit, same as Google? Isn't that functionally the same, except for Google's optimizations?
mytochar··on Motion Experiments
The numbers are backward for English-speaking countries, which I find interesting, but I'll reference them based on the numbers I see given:

17: I like it. It's a bit of a double-edged sword though, as sometimes people pause videos to not be distracted, and that sort of flickering back and forth would certainly distract me if I still had the window visible.

16: cool

15: This would be interesting to integrate with what happens when you actually click a link and it's still working on getting there, especially if you pulled your mouse away from the link before the actual page had resolved in DNS (I think that's when the URI changes on link click? I'm not sure, honestly and that's an assumption)

14: Neat trick and very pretty

13: I like how the length of the arrows increases as the system processes. As long as it's not an indeterminate progress bar (I don't know how that would be represented in this model, but that doesn't matter since it doesn't have to be), that is a beautiful way to do it. I like it.

12: I like it, as long as you could start typing during the animation. I don't like having to wait.

11: standard. good. I like it.

10: It could be useful

9: If that's what the client wants, then that's great! I certainly think it's cool.

8: I'm a bit conflicted with this one. On one hand, it's a neat trick, and exploding out at the same time as shrinking in (in the center) looks nice; but at the same time, it might get a bit old? I dunno.

7: I don't think this is rendering right on Chrome... it either has a very long animation loop, or I'm not seeing the whole thing? The button kinda gets a boil around it somewhat, or part of the way? My computer may be slowing down when trying to render it.

6: This looks like a lot of ones that already exist except more animated maybe? I find it interesting; but, I think my OCD would get frustrated since the change happens /after/ I get to the place I want to be, not at the same time. I'd end up jabbing the down or up button longer than intended. Eh.

5: there's a lot of circular activity in these options. I think I would prefer to see the button just grow in all directions at the same rate and disappear where it wasn't finished, if I were going this route; but, I'm not sure. It's okay, and something I'd tolerate if a phone OS already had it, but not something I'd add myself.

4: I don't know what this is meant for, so I can't comment

3: I'm going to guess there is a text box that would grow to the right side of this icon? I like reusing the icon as both a start search and stop search. Very nice.

2: It may just be my machine, but the graph line changes speed. I don't like that. Is it going at the same speed just laterally, making the line seem to speed up since it has to cover more distance for the rises and falls? If so, then that's okay I guess? It still feels hasty and upsetting.

1: I like the spinner. Could it just be 2 rotations instead of 3? Oh, I get it, grow, be one size, shrink. Nevermind, 3 is fine. I wonder what it would look like if it were extend to its proper size at the start of its first rotation, make a whole rotation and then shrink. I wonder how that would go. I like how it is right now, though :)

All in all, some cool ideas, many of them useful :)

[As an aside, 7->0 don't seem to load on Firefox 36.0.1, so I had to look at them in Chrome. I'm not sure why it wouldn't work in Firefox.]

mytochar··on Human generated semi-random binary stream
I wonder how close to true random we would approach if several people had automated scripts sending 1's or 0's to the script?

What about if they were sending a random string themselves?

What if they were sending a script that analyzed the last so many entries and tried to provide the opposite, to have some particular desired ratio?

I wonder, given latency and other network features, could this ever achieve true randomness, despite being generated from actors with an agenda?

mytochar··on Speed Cameras and the City
30 is still a very painful accident for a pedestrian; but, yes, ideally there'd be less pedestrian incidents... [1, random thought footnote]

That said, most of the things I was suggesting had more to do with highway situations, where I imagine most of the speed cameras would be situated. I was mainly ranting about things that I see almost every single time that I go driving, if not every single time I go driving, that erks me as a safety hazard that seems more dangerous than speeding (where speeding is defined as above the posted limit, but within a modest delta of other adjacent cars on the highway)

[1, random thought footnote] Unless we had some sort of ironic situation where since cars are going slower, pedestrians become more presumptuous about their powers and the car's stopping abilities / driver's attentiveness and it'd result in more accidents. Who knows

mytochar··on Speed Cameras and the City
Before we get speed cameras, I would rather have:

   * always use blinker when turning / change lanes cameras
   * turn your lights on:
        * 30 minutes from dusk / dawn
        * when it's raining
     cameras
   * bikers without safety lights cameras
   * runners without reflective gear yet running in the
     road at night cameras
   * hand-held cellphone while driving and not stopped
     cameras
   * tailgating cameras
Speeding is the least of my worries about the road.
mytochar··on Speed Cameras and the City
That was absolutely brilliant! Thank you for sharing!
mytochar··on Speed Cameras and the City
"let the traffic engineers run simulations and adjust those limits to maximize flow and minimize accident rates"

Wasn't there a discussion about how it's hard to raise a speed limit in an area? If the safe / max flow speed turns out to be higher than it currently is, I suspect it would be hard to get it raised. I am in great support of this idea, though..

I'd also like more aggressive variable speed limits instead of "60 all the time, between bone-dry land and torrential rain"

mytochar··on Speed Cameras and the City
"city driving"

Then we get into the argument of what constitutes city driving and that gets fun. What's a city. Is a road connecting two roads a city road? What if it has side-walks or a bike lane? What about the small town that has a bike lane, too?

We'd have to see a case-by-case basis of the speed limit in a given location to give an appropriate speed limit for an area.

.. I wrote that, but now I'm thinking that if we had a reasonable, almost static speed limit for driving inside a city, then that would be one less thing the driver has to think about while driving in the city, so that would be good. Some sort of testing would be needed to decide on an appropriate speed, but I imagine somewhere between 25 and 35 would prove to be a good speed.

mytochar··on Speed Cameras and the City
So I find this interesting; and, I'm glad they provided at least this statistic:

   Vehicle crashes near cameras declined 3.9%
   Crashes with injuries near cameras declined 13.4%
If that's the case, I'm pleased. That's a noticeable decline. I wonder what else could be done to safely reduce the number of crashes, while still allowing drivers the freedom to drive.

Another interesting piece:

Referring to 'The Busy Crossing', "This is the kind of location one might expect for a speed camera. They target busy crossings near some of the city's most dangerous boulevards. These cameras are more common than the "speed traps" but they issue far fewer tickets."

I imagine knowing that there is a speed camera near a given light reduces the amount of people willing to test that. When it comes to traffic lights and busy crossings, I think this is a good thing; and not having very many tickets there should by no means be indicative of the systems failing. In fact, I would argue they might be working. You'd have to do a blind test of some sort with unmarked cameras (that don't give out tickets either) at other locations; but ... that's most likely illegal. (IANAL)

And then regarding this:

"Almost half of the city's speed cameras are mobile — mounted on NYPD vehicles, they watch different spots for a day or two. Officials won't say how those spots are picked, though school principals and community groups can make requests. The mobile cameras each issue just a few tickets a day; as a group they issue only 11.5% of all tickets."

That's to be expected. It's a camera mounted to a police vehicle. People tend to act more civil on the road and more accurate to the rules when there's a police officer around.

Personally, I'd love to find out the statistics around red-light cameras, as well. I imagine they might be even more useful in quelling negative activity (though they probably won't bring in as much money as speeding cameras)

mytochar··on What's It Like to Live Without Electricity? Ask an Indian Villager
In the article, it talks about how they do everything by hand, literally by hand, not using any tools.

Why don't they use livestock for their work? It seems ... inefficient. Other countries didn't have electricity for a long, long time; but they still had machines and assistance through livestock and others, what makes this place different?

mytochar··on The U.S. economy is killing off the middle class
When I think of an accountant, I'm thinking of the kinds of ones that do company structuring.

And, congratulations, you can find people who are willing to do voice over work quickly. That doesn't mean it doesn't take a lot of creative work to get the right feel and urgency for the situation. Improvisers sometimes use scripts, too, as a stage gag, and they'll read the things they're using too, but it's them that adds personality, intensity, everything.

And managers, they manage /peeople/. Maintaining a store's stock isn't too bad. Managing people and solving disputes in a pleasing way for all involved, that's a much harder problem.

mytochar··on I feel like a fraud and that’s a good thing
"Or it just erodes your self confidence until you're committing fixes that miss obvious details which then goes to production and breaks things"

I read your statement earlier and I wanted to get to a keyboard before I responded to it. Dude, whenever a bug makes it into production, it's not just a mistake on your part. It's a mistake on everyone's part. You've been in this company, from what I've gathered, for 6 months. That's not a long time at all. You're still wet behind the ears there; but there's something you need to know about bugs making it to production.

They're not exclusively your failing. Yeah, you wrote the code, and so I get how you feel responsible, but let's just think of all the steps that it had to go through, all the eyes that saw it that didn't see your mistake, remembering that you've only been there 6 months.

   1) your code reviewer didn't catch it
   2) the QA person didn't catch it when it was tested
If there wasn't a code reviewer, that was a weakness in the process that permitted the mistake to make it there. If there wasn't QA, then that's all the more reason for people to have a close eye on details.

But those people didn't see it either, because the bug made it to production. And if they saw it and didn't say anything, then it's their failing for not letting you know about a potential weakness.

You're going to make mistakes, that's why code reviews happen. That's why people test code. We make mistakes, even really dumb ones. They happen all the time.

Don't beat yourself up, man. Just live and learn. You'll still make mistakes, but as you get experience screwing up, you'll make fewer of that particular kind of mistake.

Keep at the craft. We all screw up pretty hard from time to time, that's why we need each other and help each other :)

mytochar··on The U.S. economy is killing off the middle class
Feel free to tell voice-over artists and other actors that their jobs are following basic instructions. Same with sales, managers and tax accountants.
mytochar··on The New Space Race: One Man's Mission to Build a Galactic Internet
150ms is an incredible number, and the volume of satellites required will also increase bandwidth. This seems like a good situation to be in all around. I hope he succeeds at this work.
mytochar··on Show HN: Bubbles – A minimalist visualization of what's new on Twitter
Is this bad? It's a site to see what's currently trending on Twitter. I figured it'd update more often, actually
mytochar··on Details Unveiled for Twitter’s Native Video Player to Rival YouTube
Yes, really. In one or two tiny tweets and maybe a hashtag from someone there. It may not be a big event; but, "acronym #hashtag-describing-event" is a thing. And that would be "happens on twitter" in Twitter terms.
mytochar··on Arctic Fibre Project to Link Japan and U.K
For those of you hunting to see the length of the cable like I was, it's 15,600 km long. I wish they'd provided a top-down view rather than a lateral view like they did, since that would make more sense and have the image look shorter.

Anyway...

I wonder if this will have a positive impact on the arctic communities that the cable goes through. Is there any history on technological booms and hubs appearing in places where a new cable went through previously low-occupancy areas?

mytochar··on India Orders 32 Websites Blocked, Including GitHub, Archive.Org, Pastebin
That cert is expired...
mytochar··on Why Sweden Has So Few Road Deaths
That's so incredibly true! But, I'd rather have the passing lane appear periodically than not.

One of my favorite roads in Washington State is Highway 2. On this road, we have the periodic passing lane, at least when we're going Eastbound, we do. Westbound has fewer of those passing lanes; though, I think the lane in the Eastbound side is dashed, so you can actually pass using it if there's not much traffic going Eastbound. Nevertheless, when stuck behind someone who is clearly not following the "more than 5 people behind you: pull over" rule, I long desperately for the passing lane to come, as it appears all the time for the Eastbounders.

I have seen exactly the problem you're describing on /several/ occasions; but, I wouldn't give up the double-lane road, because sometimes people do stay their previous speed and you /can/ pass them. This road is a mountain pass, and so there are several curvy sections, all of which are too dangerous to pass in because you can't see far enough to confirm no cars are coming. When the road grows to 2 + 1 again, you'll see several people enthusiastically pass the slow person and from their slower speeds.

tl;dr: live in the US, love the 2+1 lane when it's around.

mytochar··on Why Sweden Has So Few Road Deaths
They said at night. That's not early in the morning when they're eating a McMuffin and too busy to be doing their real job of driving around. This is at night.

There's probably an equal number of:

    * giggling drunkards crossing the street
    * jaywalkers who think it's the middle of the night
      and obviously no car would be coming
    * people who think black is reflective as they walk
      into the road to cross a street on a dark road
    * giggling people not paying attention
    * pedestrians staring at their phones crossing the
      street without looking
And

    * inattentive drivers
    * sleepy drivers
    * drivers looking at their cell phone
It's not always the driver's fault, especially in cities where speeds tend to be lower. In some cities, people meandering around inattentively are VERY hard to predict movement of.

Please note, I'm not saying that it's never the driver's fault either; but, the whole situation is a give and take for everyone. No cars in city centers except maybe public transit of some description would be pretty great, I think, in general.

mytochar··on Why Sweden Has So Few Road Deaths
"Crud. I'm stuck in traffic. I gotta let them know I'm going to be 15 minutes late! D:"

It just takes one time to screw up.

mytochar··on Why Sweden Has So Few Road Deaths
I found this part particularly interesting, for strange reasons: "now less than 0.25% of drivers tested are over the alcohol limit"

Why are they testing those other 399 people (0.25% = 1 in 400)? Driving while drowsy? drunk driving checkpoints? Someone's a little swervy and gets noticed?

mytochar··on Why Sweden Has So Few Road Deaths
So, jay-walkers in non-reflective clothing, at night?
mytochar··on How workers ended up in cubes – and how they could break free
I've worked in short cubes, tall group-cubes (3-4 people were cube room) and offices (both shared and solitary). In my current cube layout, we have a general practice where if a conversation is going to be large and boisterous enough, generally it's held in a private room off to the side. We have several of those.

I'm comfortable in all of them. I do find myself needing headphones more often in the short cube environment; but, that's not really a big issue to me.

I don't think I would like the open layout. Something about people walking by always being able to see what's on my monitor bothers me; and I'm currently in a situation where my boss could see my monitor if he chose to look up. Still not as bothering as a completely open layout.

So, I don't see anything wrong with cubes.

edit: I should have also mentioned that I wore headphones when I had my own office, too, because walls aren't soundproof, generally.

mytochar··on The Nth Fibonacci Number in O(log N)
I honestly didn't know that until it was mentioned in another part of this thread. My point was that someone can memorize the formula. Chances are, they'll see the matrix form and actually know how to use that in other situations.

Now, if you derived the formula on the board from the matrix, that'd be incredibly impressive. The idea here is how the person's brain thinks. When I see them write an equation on the board, I think "Oh, they memorized it" when I see them step through the process of creating a matrix and doing matrix multiplication, I think "Wow, they /really/ know their stuff". If they just threw up the matrix and couldn't explain it, I wouldn't be as impressed. Same as if they wrote the equation and couldn't explain it.

At the end of the day, if they could explain either approach, I'd be impressed, I think the matrix form just lends itself to more likely be in a way that the person can explain it

mytochar··on The Nth Fibonacci Number in O(log N)
Personally, I think the matrix powers method is more impressive. You're using the matrix as a state engine to get to whatever state you intend to reach. That has more applications than just the closed form, which a lot of people know about, and you most likely just happened to memorize.

Don't get me wrong, it'd still be impressive "Woah, he memorized this!" but seeing someone do the matrix trick would be even more impressive, to me.

mytochar··on Can a simple algebra test predict programming aptitude?
By writing incorrect recursion? Or in some other way?
mytochar··on Ask HN: Is this common in the gaming industry?
Unless you want to make games, then it's not such a bad idea. Get a few AAA titles under your belt and go hunt for the company that you want to work for.

Money isn't everything, some people just want to work in the gaming industry.

(edit: adding more)

That said, making any sort of racist joke (presuming it's properly racist) about the person you're ABOUT TO INTERVIEW and during the interview is just plain bad form. It's a good indicator that that company isn't the one you should be interested in anymore. My two cents.

← PreviousPage 2 of 3Next →