515 karma · joined Dec 27, 2017 (8y ago) · 421 submissions
comment 8y ago · link · parent
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
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
comment 8y ago · link · parent
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
https://github.com/toml-lang/toml
Its the thing Pipfile uses.
The point is, don't invent file types!
comment 8y ago · link · parent
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)
comment 8y ago · link · parent
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'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
comment 8y ago · link · parent
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
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
I find this very absurd as a programmer who's written code directly on the PC since like forever.