Better HN
topnewbestaskshowjobs
Log inSign up

pythonaut_16

1,567 karma · joined Nov 23, 2016 (10y ago) · 686 submissions

Submissions

comment 8y ago · link · parent

Let's be honest though, if someone's copy-pasting from Stack Exchange, they're probably not reading or understanding the whole thing they're copying either.

My rule in code reviews is if you're basing/copying something from the internet, you better be able to explain everything it's doing, and if you're pulling a dependency you better be able to explain why we need it and why you think it's trustworthy enough to put in our application.

comment 8y ago · link · parent

Couldn't the thief pretty easily set up an account and call from a burner phone?

comment 8y ago · link · parent

Firebase seems to be pretty integrated with Google's GCP strategy, as well as Android push notifications with FCM.

Not saying concern over Google's commitment to various tools is unfounded, but it seems that generally things that are tied into their core goals are pretty safe.

GCP is very important to Google, Inbox was an interesting UI built on top of Gmail.

comment 8y ago · link · parent

I believe the running containers share the host's kernel, so maybe if you were doing certain low level kernel level stuff, maybe the version of the kernel matching would matter?

comment 8y ago · link · parent

Is that similar to the functionality provided by Twist from Doist? It's not email based but it seems to be a hybrid of Email and Slack. I've only messed with it a few times and never with Google Wave, but it sounds similar to what you're describing.

comment 8y ago · link · parent

It's not really supported, but you can run GUI programs with some amount of success by setting up X forwarding. Some programs work better than others, but I probably wouldn't want to run my code editor in it.

comment 8y ago · link · parent

Which Elixir extension are you using for VS Code? Are you on Windows, Linux or Mac?

I've had the best luck with the ElixirLS extension on Linux but there are still a few weird things here or there.

comment 8y ago · link · parent

In this case the article is talking about 24 MB of additional bandwidth used by the server to serve 100k pageviews using JWTS

comment 8y ago · link · parent

We'll have to agree to disagree about Django. I think Django and Rails both offer good developer productivity/velocity, they just make different tradeoffs. Django tends to be more explicit, which might lead to a slightly higher learning curve, but after that I've found it's easier to trace through Django applications to understand what's happening.

I've seen my fair share of terrible Django and terrible Rails applications. Bad code can be written in any language and framework.

Don't get me wrong, Django definitely has its pain points, but I think it offers a very competitive alternative to Rails.

I definitely agree with you on Phoenix though! Elixir/Phoenix is my current stack of choice. I actually think they do a really great job of capturing the high points of both Rails and Django while also improving on the weak points of both as well. (For example, Phoenix offers a lot of the "magic" of Rails but it's all backed by explicit code that Phoenix generates while creating your project.)

comment 8y ago · link · parent

> Root of all evil is state.

That's such a funny thing to say. You'd be hard pressed to have a program without state. Every program is made up of a combination of 3? components: logic, data(state), and time.

The thing that differentiates different programming languages and tools is what abstractions they build around those three things and how they are exposed to the programmer.

comment 8y ago · link · parent

You might know Python but it sounds like you don't know Django very well.

Django does have built in JSON support[1]. There's also Django Rest Framework[2], which while not built into the core, is well supported and hardly a burden to add.

And finally, Django's "scaffolding" functionality is built around its models. You define your model as a plain Python class inheriting from Django's model class, and then the various generic[3]/"scaffolding" views work by being told what model they're for, with the ability to override and extend whatever you want to.

[1]-https://docs.djangoproject.com/en/2.1/ref/request-response/#...

[2]-http://www.django-rest-framework.org/

[3]-https://docs.djangoproject.com/en/2.1/topics/class-based-vie...

comment 8y ago · link · parent

If it just renewed and this changes breaks your use case you can probably request a refund since your system is no longer supported.

comment 8y ago · link · parent

Everyone being aware of an issue without it ever being raised or acknowledged is equally demotivating and results in the same attitude.

comment 8y ago · link · parent

That was my thought too.

If it's an unnecessary mental load (for developers or managers) to find out about the tasks currently being worked on and what they are, then the problem is with your work/task tracking system, not with your developers.

comment 8y ago · link · parent

More efficiently for what?

comment 8y ago · link · parent

I feel like you're being a little disingenuous to the OP. He's obviously talking about the economic/productivity value of the land, which is to say that the BLM considers large parts of the country to have little economic value beyond growing grass and thus designates it as free range grazing land.

It doesn't mean it has no value as a wild, natural environment, just that from an economic development perspective there's not a lot going on there.

comment 8y ago · link · parent

I don't think Tesla is really considered a serious competitor in the self driving car industry by anyone besides Tesla.

Which is probably fortunate for all the other players since all of the Autopilot issues get attributed mainly to Tesla rather than to self driving cars.

comment 8y ago · link · parent

They do have an app, although it's based on GPS + selecting a location rather than iBeacons.

It's actually one of the more interesting challenges of beacon (and QR) adoption; most of the obvious/easy to implement use cases are already well supported by GPS

comment 8y ago · link · parent

I'm not talking about personal risk, I'm talking about risk of loss in absolute value, i.e. the investor is risking more capital so they claim a bigger share of the reward.

If the musician was able to provide enough capital/resources on their own by risking their entire livelihood they'd have no need for an investor and could take the entire profits of the venture for themselves.

I'm not making a moral judgement here, I'm just saying that it's a fairly straight forward logic as to why people who "only contributed financing get a bigger cut". The OP is wrong to claim they get a bigger cut because they're already rich, they get a bigger cut because they're risking more capital in the venture. It is secondary that them being rich means they have more capital available to take risks.

comment 8y ago · link · parent

There is little to no evidence of this.

I don't think I've ever seen someone claim to use Linux because it's free (no cost). It's almost always because it's an open platform or because it has the best tools for the job they're doing (e.g. development work).

So in that sense, a Linux user might be less likely to use a product if they care most about the openness of the platform.

comment 8y ago · link · parent

They get a bigger cut because they bore the most risk and were willing to support a venture that otherwise wouldn't have had the resources to happen.

Their exact cut is generally a balance between the risk, reward, and ability of the venture to happen without them.

comment 8y ago · link · parent

I'd love to see a game where cheating and scripting is the primary means of gameplay. By default the game would present a very simple UI but players would be encouraged to write and share scripts enabling varying levels and types of functionality.

As a game developer your job then would be to write interesting enough systems for players to exploit to come up with interesting gameplay. I can imagine a scenario where different Overwatch-style "classes" emerge all built from the same basic game elements.

comment 8y ago · link · parent

You can already order McDonald's from the app, just without the NFC.

It's actually an interesting challenge when it comes to mobile. A number of things that could be handled with NFC (and QR, beacons, etc) end up being implemented using GPS and the phone's network connection.

comment 8y ago · link · parent

What kind of development are you doing on it? Have you found a good workflow yet?

I've given up running Linux natively on my computers and I'm trying to find the best Windows 10 workflow

comment 8y ago · link · parent

They're both tools used to build interactive websites.

The parent didn't understand why developers would be happy that React got the greenlight. My response was that React (and Vue) really is a much better tool for building interactive websites than many older tools like jQuery.

comment 8y ago · link · parent

Sounds like you really don't understand development if you think getting to use React isn't a big deal.

React (and others like it, e.g. Vue) really is a huge win and solves a ton of pain points common to front end development. It still has its own pain points, but it's hard to overstate how much of an improvement it is over other older approaches like jQuery.

comment 8y ago · link · parent

It's fine because you can just turn on the Autopilot while you adjust the radio and everything will be fine.

comment 8y ago · link · parent

Without any evidence to back up your claim I could just as easily claim that for every hiring manager who cares about seeing a GPA on a resume there are three others who think there's something wrong with an applicant with any experience who does put their GPA on their resume.

comment 8y ago · link · parent

I think it's kinda like Google working with Android as an open source project. Google makes money on Android primarily by using Android as a means of delivering the Google ecosystem. They don't care that it's open source because they don't make money by selling it.

Apple could do the same thing with maps. Support a robust open mapping initiative to make sure their primary business (selling iPhones and other devices) has a solid platform for emerging technologies like AR. Making sure they have a solid maps offering supports the Apple (aka iPhone) ecosystem.

Also similarly to Google, they can still push plenty of proprietary things on top of the open parts of the initiative.

comment 8y ago · link · parent

If you have a function that's using if statements to decide which boolean to return, it's almost always better to return the expression directly.

`if (foo) { return true } else { return false }`

is the same as `return boolean(foo)`

1
131415
23