HNHacker News
TopNewBestAskShowJobs

prophittcorey

273 karma · joined February 28, 2018

I'm a husband, a father of two and a creator of software.

I can be reached via email at corey@prophitt.me.

submissionscomments
prophittcorey··on Find Creators to Play Your Game
Finding relevant content creators for outreach takes far too long. I've been building a curated dataset to make the process easier.

I add new data daily and submission forms are coming soon so creators can add their own channels or claim and update their listings.

I previously wrote about the tech behind it here: https://prophitt.me/writing/a-modern-web-app-in-c

prophittcorey··on A Modern Web App in C
Thanks for the feedback.

The assets that are compiled into the binary are the css, js and some svgs.

I generally avoid static assets like pngs. They are bloated, tend to only work well on certain device resolutions, etc. Plus, they tend to go out of date and need to be updated (like when changing UI and a screenshot is no longer accurate).

As for the overall design, I tried to keep it simple and monochromatic but I can see how it's pretty dreary. I think a single accent color may improve the overall look and feel.

prophittcorey··on A Modern Web App in C
Don't give me any more ideas!
prophittcorey··on A Modern Web App in C
I meant to express the layers of abstraction feel strange to me in a typical setup.

A typical setup today looks like:

nginx -> puma/unicorn/gunicorn/etc -> your code

With cgi that middle layer is gone. It's just:

nginx -> your code

The layer reduction is nice when it comes to things like debugging. You don't have to guess if the middle server is removing a header, failing to forward a header, etc.

It's obvious who does that with cgi.

prophittcorey··on A Modern Web App in C
I generally like "C-style C++", but I find it difficult to draw the line between C and C++. It's too easy to keep reaching into C++ for "just one more thing."

That may be a me problem.

prophittcorey··on A Modern Web App in C
I didn't want to state why C and not "X" because the comments would have devolved into an all out language war.
prophittcorey··on A Modern Web App in C
I wanted to try my hands at a monochromatic website and chose two shades that were far enough apart to pass a AAA contrast rating for accessibility. I'll try to improve it soon.

It was 100% human slopped :)

prophittcorey··on A Modern Web App in C
The standard string functionality is painful. I wrote my own string view and string builder that work with fixed size strings. No memory allocations, etc.
prophittcorey··on A Modern Web App in C
SQLite can handle multiple concurrent requests if it's set to WAL mode. Reading is all non-blocking/concurrent but writing is still synchronous. You should also set the "busy timeout" or else your blocked writes will timeout immediately.
prophittcorey··on A Modern Web App in C
To be fair, the HTML and CSS in C wasn't too bad.. the Youtube scraper was also written in C and that was a lot more painful :)
prophittcorey··on Kivy – a cross platform Python UI framework
Kivy led to one of my first open source contributions in 2014. I submitted Kivy file support to Vim. It was done via patch diffs over email with Bram Moolenaar. It's still in Vim today[1].

RIP Bram.

[1]: https://github.com/vim/vim/blob/master/runtime/syntax/kivy.v...

prophittcorey··on Ask HN: Cool side projects you have written using Golang
I have written quite a few things in Go.

https://github.com/prophittcorey