Better HN
topnewbestaskshowjobs
Log inSign up

devxpy

515 karma · joined Dec 27, 2017 (8y ago) · 421 submissions

https://github.com/devxpy
Submissions

comment 8y ago · link · parent

Not sure about Linux but the surface book 2 is a really good one.

comment 8y ago · link · parent

Any discussion on documentation is incomplete without mentioning Django

https://docs.djangoproject.com/en/2.0/

comment 8y ago · link · parent

There is also the tooling behind react, that makes it hard to use in NON node environments.

Create react app is wonderful, but only if you're writing node backends.

Here is partial solution to this problem

https://github.com/pycampers/react-pages

(I created that)

comment 8y ago · link · parent

Threads are not hard. In fact, threads are extremely easy to implement.

However, real Threading code is just incredibly difficult to reason, just by looking at it. This makes it easy for you to introduce race conditions without even knowing that there is one!

There is also the fact that locks don't lock anything! They are just a flag, that a any code may choose to ignore.

They are a not an enforcing tool, just a cooperative one.

(More here: https://www.youtube.com/watch?v=9zinZmE3Ogk)

P.S. I created a library, that makes it easier to write safer multiprocessing code

https://github.com/pycampers/zproc

comment 8y ago · link · parent

I am not sure, but serverless requires more config and tweaking as compared to arhitect. In contrast, serverless is a more mature and flexible platform.

comment 8y ago · link · parent

> The equiv CloudFormation YAML is 700 lines

Accepted, but that's not the topic of debate.

The issue here is that you can write the example you gave in YAML like this

    app:
       hi
    html:
       get /

And it could still generate the same result. But this way people can write the config in a more familiar syntax.

Hope I explained my point correctly.

This is just a matter of UX/ API, not how it works.

If you somehow felt that I disrespected your work, forgive me.

comment 8y ago · link · parent

exactly

comment 8y ago · link · parent

If you want human, you can look at TOML

https://github.com/toml-lang/toml

Its the thing Pipfile uses.

The point is, don't invent file types!

comment 8y ago · link · parent

Yup, serverless works quite well. have used it myself.

Albeit, I'm not fully sold on this whole fake-serverless architecture.

A major part of it is that AWS is arguably frustrating, since the docs are __clearly__ written by marketing people, not engineers. Every aspect feels non-dev friendly.

I would love to see something like Captain Duck Duck, so you can host your own serverless platfrom, sort-of a personalized AWS?

(Captain Duck Duck is a personalized Heroku)

Link - https://github.com/githubsaturn/captainduckduck

comment 8y ago · link · parent

Great! Another file format for me to learn. Why can't everyone use one of the standard file types, like YAML/JSON?

comment 8y ago · link · parent

This kind of makes sense if you look at how this should work..

Having a single port for everything is bad idea, because the electrical interface can't possibly be the same for everything.

Making this happen is obviously a really hard task from an engineering standpoint. Device makers have to employ various adapters internally, so that everything works on the same interface.

No wonder manufacturers are suffering to keep up!

comment 8y ago · link · parent

I hate how people don't mention the quality of work one is doing on Github, or anywhere for that matter.

I've personally seen people make one-liner commits deliberately, to get a good graph.

On the other hand, some people write code because they actually created something real, which solves a real problem.

And the difference is quite clear if you're looking for it.

Arguably, the github community suffers from the "celebrity" effect that facebook/Instagram have.

But I digress.

Comparing a Github account to a college degree is crazy.

Once a piece of paper, and the other is a full history of the guy's work, presented at a mouse click away.

I am about to clear the first year of my univ, and honestly couldn't care less about what the univ taught me. I can't even recall most of it.

What I can show you is my Github profile, where I did real work, and built real software that actually works (including some IoT projects that I personally use myself, every day)

Not to mention the other projects that didn't made on Github, but did make it on a Bitbucket private repo.

comment 8y ago · link · parent

That's quite generous

comment 8y ago · link · parent

I saw it has a C API, if someone made bindings, that would be nice

comment 8y ago · link · parent

Speaking from a python user's perspective, the batteries included philosophy works great when you have a neutral implementation. Python does a good enough job, and provides extensibility in a way that I don't need to download a package to do basic things. On the other I have to spend hours trying to find a package in JS that just gets shit done. The third party package way is only required for ui parts because you don't want everything to look generic. But having a good standard library to do non user facing stuff is essential. That's why every node project ends up with a thousand dependencies. Because the language is not batteries included. There in JS there is no "one correct and obvious way to do everything" which makes doing basic programming painful.

comment 8y ago · link · parent

Maybe, but it works really well for most applications, and its available on almost every language you can use.

comment 8y ago · link · parent

Related video (by exurb1a) -

https://www.youtube.com/watch?v=psaCM1j9LEM

comment 8y ago · link · parent

I agree, Microsoft can't stop breaking windows

comment 8y ago · link · parent

https://github.com/nucleic/enaml

We're just starting. IMO, if we started from a better language than JS, we would take stuff like data-binding in react for Granted, since it would be much easier to this stuff it in other languages.

410.

Show HN: ZProc, a library for doing multiprocessing in python(github.com ↗)

3 points · by devxpy · 8y ago · discuss

comment 8y ago · link · parent

I recently discovered zyre. Its from the same guy that brought us the wonderful zeromq library

While it does a lot of the connection and communication part, it lacks a way to bypass nat routers.

Here is a book on zyre http://zguide.zeromq.org/php:chapter8

I also found this thing called pwnat which bypasses nat routers without the need for UDP hole punching !

https://github.com/samyk/pwnat

I feel like if someone made a high level wrapper combining these two, we can have a very good framework.

comment 8y ago · link · parent

Exactly

comment 8y ago · link · parent

https://wiki.gnome.org/Initiatives/Wayland/GnomeShell/GnomeS...

comment 8y ago · link · parent

I've been there. Eventually moved to kde plasma as well. Its much more reliable than gnome but it requires some getting used to. It's a little cluttered when compared to rather simple gnome

comment 8y ago · link · parent

The gnome JavaScript rant is real. I had to move on to kde plasma because of it. Kde plasma is more powerful but a little cluttered. Gnome has managed to keep things very simplistic. There is a silver lining though, gnome4 has plans to ditch js.

comment 8y ago · link · parent

I shit you not, but in India, at our university, we are not allowed to write code on the PC unless we present the code, pseudo code and flowchart first. Same story for the CAD subject. (Cs majors have to study that)

I find this very absurd as a programmer who's written code directly on the PC since like forever.

comment 8y ago · link · parent

That talk is truly awesome. Thanks.

comment 8y ago · link · parent

It's actually my semester textbook
1
1112131415