Better HN
topnewbestaskshowjobs
Log inSign up

coding123

3,044 karma · joined Jul 2, 2013 (13y ago) · 2,751 submissions

Test
Submissions

comment 9y ago · link · parent

You know they are not perfect, I've seen them between 2 and 5 months behind, typically 2 months though. But it beats Samsung and all the big brands - they update all their older phones not just the latest.

comment 9y ago · link · parent

This is why I will only ever buy the OnePlus brand at this point. I used to buy Nexus until they started skyrocketing the price (Ting user here) not to mention my last nexus bricked itself when the battery got low.

comment 9y ago · link · parent

And the govt. controls the lightning man...

comment 9y ago · link · parent

I recently wrote and submitted a pull-request to DefinitelyTyped. Find non-Typescript packages and add the typings :).

comment 9y ago · link · parent

This is not fully true. Amazon used DHL with me once - they didn't deliver because of a code/gate thing I used to live at. I called Amazon and they got the DHL DRIVER on the phone - me, Amazon customer support, DHL Driver on a single phone call. Amazon CS fucking rocks sometimes. So yes, there are companies that can go the extra mile and seriously dial up the heat on the delivery company.

I think the best CS will call and deal with shipping issues. Crappy companies will have none of that.

comment 9y ago · link · parent

All of this is hyper-focused on cars. The amount of investment still needed in this space for SEMIs, RVs, extra-wide SEMIs, etc...

I don't think we'll have complete autonomous driving until we have true AI. Sure we'll continue to innovate the standard car, but most everything else will wait.

One of the things I do is drive on roads that have 3-4 inch rocks everywhere (I drive my truck camper to places far away from humans). How do I tell my truck to drive 3 inches forward onto a leveling block so that my RV is more level without a steering wheel, breaks or gas it forward.

RVs specifically have a lifespan of anywhere from 20-40 years - and I'm pretty sure the owners are not going to suddenly stop driving them.

comment 9y ago · link · parent

You can't put up a wordpress site with more than 4 plugins selected at random on a linux box that is secure. I even experienced a THEME that was hacked.

comment 9y ago · link · parent

90% towards class action to sue spammers on my behalf (in US)

comment 9y ago · link · parent

I had the 360 and finally broke down a long time ago to get the PS3 for a few games that were exclusive at the time. I was a PS hater for most of my adult console life. Then I started to realize I was paying Microsoft a yearly fee for a system I already bought and PS wasn't asking anything for the same services. The next system I bought was the PS4. There was some FUD about PS4 to start charging the same way XBox does, but alas, I can play my Call of Duty games ONLINE without paying Sony a cent per year. I believe the yearly subscription killed the Xbox.

comment 9y ago · link · parent

Seems like JSON should have already been overturned. It hasn't and I don't think it will. My personal belief was that XML was kicked out because it allowed this: <books:book> stuff here <xsd:schema .../> <xslt:transform .../> </books:book>

And so you couldn't just READ that, you had to have a parser that fully understood EVERYTHING going on there. JSON won't get namespaces, and therefore it will remain good. We will continue to replace what namespaces did for XML, but will keep that data in its own metadata document, outside the main document. I think that's why JSON won't be replaced as quickly as XML.

Also XML didn't kill XML, webservices (ws-* standards) killed XML.

comment 9y ago · link · parent

If npm or even a single popular npm package is compromised, almost every website will be compromised.

comment 9y ago · link · parent

Thanks for the note, I am looking into it right now. One area that may grind my head with async await however is that there is a lot of Promise.all work in this codebase. Would you still use async/await constructs when you need to do a lot of fork/join/merge stuff? (sorry for the derail HN)

comment 9y ago · link · parent

I'm converting a codebase of Javascript of about 200+ js files to Typescript today. I am about 5% complete... already found two places where the argument list was wrong and was being sent into a void. I also see the code that was making up for the fact that the third argument was being ignored (basically patching downstream because they thought the feature was broken).

Now this codebase was written with a high degree of quality (it's pretty good but not perfect), but the lack of compile (and of course runtime)-time checks has caused waste.

The second phase of my project to convert all promises to RX Observables :)

comment 9y ago · link · parent

The movie business and playstation lines alone would make sense for Apple. Most other product lines would be liquidated. The playstation technical employees would probably not have any job changes. I would suspect the codebase of Playstation would remain the same, except for supporting Swift as a language on the platform.

I'm not sure how long the Apple and Playstation stores would take to be integrated, but they would probably make that happen.

Beyond that there could be many opportunities to integrate apple hardware with your playstation account.

comment 9y ago · link · parent

We used to be in an era where Java developers had JSF and .NET developers had Webforms - two technologies that were the perfect storm for component vendors. This is all falling apart now that we have npm and webpack - and the only thing Java or .NET are good for is the REST service infrastructure they provide. No company should be using Webforms or JSF type technologies anymore.

comment 9y ago · link · parent

I was in this thread looking for this reply. If nothing else, the ability to run code on your Mac laptop running MSSQL server in docker is a huge win, even for what may later be a Windows deployment of MSSQL server. I definitely see the use-case for automating QA workloads and running tests against a real MSSQL server on what is otherwise a fully Linux based build system. The cheapest way to run MSSQL server (TCO which includes the human cost) is still likely Windows, but the docker-izing of MSSQL opens up soo many doors now.

That all being said, I would expect that there are also companies moving to use MSSQL in Linux for production as well, but personally, I would wait a couple of years to hear other's experiences.

comment 9y ago · link · parent

Can someone with an idea about this post other languages that actually attempt to modulerize it's own API? I'm not aware of any.

comment 9y ago · link · parent

Yep this was bought on an upswing that will be impossible to sell at this value again for 100 years.

comment 9y ago · link · parent

Well when you combine all views on anything and try to abide by everyone's demands, the end result is immediate end of all motion. There is a divided view on everything.

comment 9y ago · link · parent

Same here... We can probably add another 5% to account for that

comment 9y ago · link · parent

I've been saying this for about 15 years, but the moment Eric joined google the phrase "Don't be evil" mostly disappeared from almost every location they used to publish the phrase.

comment 9y ago · link · parent

I just moved 25% of my savings account into Ethereum yesterday... over ACH (DOH!)

comment 9y ago · link · parent

Actually my major complaint of React is the state of state. There seems to be no common knowledge about how to do this right. I just joined a team that has two React projects that development started about two months ago (I just joined like a week ago). There is a a large component that I am working on that is completely bound to Redux. There are major state update issues and the team had opted to assign IDs and data to the DOM elements and use those to look up state in the redux store before modifying it. On top of all that, the application is completely unable to handle 2 instances of any component they wrote. I am trying to re-write some of it to encapsulate the state in at the component level. It's pretty awful compared to the Angular (not AngularJS) app I recently rolled off of.

Edit : Also wanted to add, while I think a lot of people really don't like JSX, I actually do like it but I think someone could take that aspect and come up with a better state management system outside of redux and friends. I think something along the lines of Angular (not AngularJS) with JSX would be great.

comment 9y ago · link · parent

I completely agree here. and I think if most people followed these last 3 lines, there might be what, 6 projects using React?

I find the highlighted article on Facebook's "reason" for inventing Flux/Redux very laughable. - This message unread indicator kept saying (1). And how it went away with bug fixes and came back...

Did they ever stop to realize they just had some really bad devs working on the chat app? Any re-write, whether they had to invent flux or not would have fixed that indicator. It's a false story.

comment 9y ago · link · parent

Yes, but I sense that he's in a similar boat as me right now. I just joined this team that's already using React/Redux, and the code quality is... very sad.

comment 9y ago · link · parent

I do this:

    docker build -t $APPNAME:$timestamp .
    OUTPUT="$(docker service inspect -f '{{.Spec.Name}}' sv-$APPNAME || true)"
    if [ "$OUTPUT" == "" ]; then
      # Service does not exist
      echo "Creating service"
      docker service create --update-delay 5s \
        --publish $PUBPORT:8080 --replicas 2 \
        --mount type=bind,source=$(cd ../images; pwd),target=/images,readonly=true \
        --mount type=bind,source=$(cd ../processed_images; pwd),target=/app/images \
        --mount type=bind,source=$(cd ..; pwd)/config.json,target=/config.json,readonly=true \
        --mount type=bind,source=$(cd ~/.aws; pwd),target=/root/.aws,readonly=true \
        --name sv-$APPNAME $APPNAME:$timestamp
    else
      # Service exists
      echo "Updating service"
      docker service update --image $APPNAME:$timestamp sv-$APPNAME

I haven't looked in a while, but it would be nice if they had some kind of "upstall" (update/install) kinda like upsert (update/insert) in CRUD land.

comment 9y ago · link · parent

Clone your self by 300 million and tell me you won't forget the keys over a period of 20 years one time.

I'm not sure all 300 million us adults subscribe to your newsletter.

'forget things all the time' - so you admit there is a chance 100 percent can drop to 99.9999?

A friend of a friend had their child eat a battery that was left lying around in the house, I'm pretty sure there are a million other potential killer forgetful actions that parents face.

comment 9y ago · link · parent

I'd go a little further than Wikipedia however - in my book you need to have a variable that represents more variables. In Java you can do this with a class and an object of that class. In C you can do this with a struct. Both languages are capable of being OOP. Now, in both languages you can also make mistakes, as a programmer. In Java I can decide to make a class called "Monitor" that has a bunch of static methods to control the monitor... such as on/off, change resolution, etc... I would personally consider that a poor design, because while in 1990 a computer had 1 monitor, in 2017, a computer may have unlimited monitors (think controlling monitors over a network for example).

We can make the same mistake of assuming a single monitor in Java or C, but both languages can also easily support multiple monitors ;)

comment 9y ago · link · parent

Why does everything have to be subject to govt control?

comment 9y ago · link · parent

Regarding tech people knowing ev vs non-ev, there are very few companies that need to know about them at all, the ones that get more than 10k hits per day through a login. And if you work at say Apple a different team would be taking care of certs, not everyday programmers, so we're talking a small percentage of the tech crowd that needs to know about EV certs.
1
868788
92