Better HN
topnewbestaskshowjobs
Log inSign up

pythonaut_16

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

Submissions

comment 9y ago · link · parent

Linus literally talks about Edison and that quote in the article

comment 9y ago · link · parent

10/10 post. It was interesting, short, and to the point and matched precisely to the title (i.e. no clickbait)

comment 9y ago · link · parent

That's a rather different point though. In the case of Yankee Doodle, the Americans new what it meant and used it as an act of defiance, where the other poster was talking about people missing the point entirely

comment 9y ago · link · parent

Interestingly enough, Gitlab also supports that project:

https://about.gitlab.com/gogs/

comment 9y ago · link · parent

I think the point is that Gitlab faces unique challenges because anyone can host Gitlab on their own hardware, so they're always trying to solve performance problems in a way that any typical user could also solve it.

Github on the other hand can use strategies solely targeted at their SaaS performance. It seems that Github also maintains more control over their enterprise version than Gitlab but I'm not 100% sure there.

comment 9y ago · link · parent

Redux is actually (at least partially) inspired by the Elm Architecture[0]

[0] http://redux.js.org/docs/introduction/PriorArt.html#elm

comment 9y ago · link · parent

Would it be better for everyone to preface their comments with "This is only my opinion but..."? Making a statement in a comment implies speaking your opinion, unless you start making strong claims to fact or citing sources. We don't need the extra linguistic clutter of framing every statement as a matter of opinion.

comment 9y ago · link · parent

I think a better interpretation of the title/article is "Don't assume that rewriting from scratch will fix all of your problems"

comment 9y ago · link · parent

If you already have a big Java code base and/or your employer forces you, or there's some killer bit of code that is absolutely crucial to you and it's more effective/efficient to choose Java to be able to use it than to find an alternative or rewrite it in another language.

comment 9y ago · link · parent

I think Javascript is generally a safe bet for the next few years because the Frontend is firmly embroiled in Javascript as well.

Elixir seems poised to keep growing on the backend, so it's probably not a bad one to learn either.

My real advice to someone starting out would be to learn a language but focus on learning general programming and computing concepts through it. The better you are at programming and computing, the more easily you can pick up new languages and switch between them seamlessly.

Also, as you learn new languages, focus on learning the right way to do things in that language. It's extremely helpful to be able to separate programming concepts from language constructs.

comment 9y ago · link · parent

The cool thing about Git is that the underpinnings ultimately boil down to a key-value data store.

I'm not an expert on these innerworkings, but in theory there's nothing stopping someone from creating a new UI that maintains most or all of the same strengths, except that everyone already uses and is used to the current way.

I suspect if you came out with "SuperVCS" that was ultimately just a new UI on Git you'd have more success than releasing the exact same project as some kind of Git enhancement.

comment 9y ago · link · parent

Supposedly whenever it exits beta they will publish a stable API/ABI, at which point hopefully different software platforms and IDEs (e.g. IntelliJ, Visual Studio) can target it and interface more directly with it.

My only holdout for Linux right now is that I can't just tell Pycharm to use WSL for the Python interpreter; you still have to register the WSL Python as a remote SSH connection.

comment 9y ago · link · parent

Here's another pretty cool one using Elixir and Phoenix Channels (Websockets): https://github.com/ernie/venture

It also has markdown based slides but syncs the presentation to clients via websockets, and allows for interactive slides with things like Polls and live chats.

comment 9y ago · link · parent

This is definitely a more technical solution than the average user might use, but I've had some great success with network wide adblocking via the Pi-hole package for Raspberry Pi, and setting my DHCP server to point to it as the primary DNS.

It runs a local DNS cache that blacklists ad domains (so basically how uBlock Origin works but utilizing DNS instead of just dropping the elements on the page).

There are a few sites I've had to whitelist but in general I don't even think about it running anymore, but all devices on my local newtork are ad free.

comment 9y ago · link · parent

I would second waiting for Ryzen. So far the demos we've seen look promising.

Best case scenario: Ryzen matches or beats Intel at a lower price point. Ryzen processors are cheap and Intel has to come down in price to compete.

Worst case scenario: Ryzen flops completely and Intel's prices are unaffected.

The truth is likely somewhere in the middle, but either way, it's worth waiting at least until then to find out.

comment 9y ago · link · parent

I actually have that one and Programming Phoenix, I'm bouncing back and forth between them right now

comment 9y ago · link · parent

I've been learning it an enjoying it so far. It's going a little slow for me due to my limited time to commit to it and being fairly different from OOP, but there are a ton of really powerful concepts and features in it.

The biggest thing holding me back is really just picking a project and getting some momentum going on it.

comment 9y ago · link · parent

Those small things are actually the ideal use case for VMs.

Imagine wanting to spin up a new server so you go and buy that small tower, bring it back, and hook it up.

Now imagine using a VM where you literally go onto a webpage and click a button to provision the same amount of resources.

Additionally, most hardware sits idle most of the time. When you're using tons of towers, it's likely that most of them will sit under 50% load 90+% of the time. With a VM setup, the hypervisor can balance that better so you can get better utilization of your hardware.

comment 9y ago · link · parent

How do issues like this happen? I'm fairly new to software development and I haven't really seen issues like this, and I'm having trouble thinking of what types of code would cause it.

I'm assuming it's usually related to things using multiple threads or at the boundaries of different programs communicating?

comment 9y ago · link · parent

What if you put the FarmBot plotter on wheels or rails and let it move up and down rows of boxes?

I haven't looked a ton at its performance characteristics but I would imagine it spends a lot of time sitting idle with the current plot they're maintaining.

But a similar bot that could maintain 4'x8' boxes and then roll on to the next one could be interesting. Or even one that could manage continuous line of plots of a given width, e.g. 4' wide

comment 9y ago · link · parent

I think there's a solid chance that Amazon will help drive down delivery prices, at least on the consumer end.

If they can use automated deliveries to lower their UPS/FedEx/USPS costs, and to help them beat Brick and Mortar prices, you can bet that they'll take full advantage of it.

Retail stores to would likely deliver some of the savings to customers because they have to compete with Amazon and other online retailers.

comment 9y ago · link · parent

Check out the Thinkpad T400 series (e.g. T460s) and X1 series (e.g. X1 Carbon and X1 Yoga). They're lightweight and durable with big screens at pretty reasonable prices.

comment 9y ago · link · parent

I have a Unifi AC Lite and I just use the power injector that came with it. I think for the non-pros they use a non-standard POE, but I'm pretty sure the Pro's can use either Ubiquiti or standard PoE equipment

comment 9y ago · link · parent

My personal experience would suggest that this isn't a 60% allow workers telecommute whenever they want, but rather allow workers to telecommute sparingly when circumstances require.

comment 10y ago · link · parent

Those are all intentional choices and benefits of Python

1. This gives you flexibility to structure your app in a way that makes sense for what you're doing. In addition, I've found Django's approach to modular apps to be far more manageable and approachable than Ruby's "all the controllers go in the controllers folder" approach.

2. Explicit imports is a Python thing and a huge benefit. I've looked at plenty of Rails code bases where I had no idea where different functions and variables were coming from. In Python/Django, you can always see the explicit definition at the top of the file.

3. The "crippled down" templating language is very intentional as well. Django is preventing you from writing your application in the templating logic (something I've seen too much of in Rails) All your template should be doing is specifying how the data is to be rendered in HTML/whatever.

Really Python/Django could be said to be Ruby/Rails flipped on it's head.

Ruby itself isn't very opinionated (there are usually several ways to do something), while Rails is.

Python itself is pretty opinionated (there should be one right way to do things), while Django isn't.

In general it's a matter of opinion and perspective but I personal find Python and Django to be much easier to work with than Ruby and Rails.

comment 10y ago · link · parent

I would probably keep a running total as I read through each line, then store `line_number: running_total` in a dictionary.

At the end, return the highest key in the dictionary for your total, and then run a reduce that returns the first key/value pair that is >= half the total

1
1920212223