Better HN
topnewbestaskshowjobs
Log inSign up

prophittcorey

273 karma · joined Feb 28, 2018 (8y ago) · 18 submissions

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

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

Submissions

comment 2w ago · link · parent

I've been working on a small search engine for content creators that play and/or review indie games. It's written in C and has been a lot of fun to work on.

https://marketyour.games

https://prophitt.me/writing/a-modern-web-app-in-c

comment 4w ago · link · parent

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

3.

Find Creators to Play Your Game(marketyour.games ↗)

2 points · by prophittcorey · 4w ago · 1 comment

comment 1mo ago · link · parent

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.

comment 1mo ago · link · parent

Don't give me any more ideas!

comment 1mo ago · link · parent

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.

comment 1mo ago · link · parent

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.

comment 1mo ago · link · parent

I didn't want to state why C and not "X" because the comments would have devolved into an all out language war.

comment 1mo ago · link · parent

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 :)

comment 1mo ago · link · parent

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.

comment 1mo ago · link · parent

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.

comment 1mo ago · link · parent

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 :)

13.

A Modern Web App in C(prophitt.me ↗)

716 points · by prophittcorey · 1mo ago · 329 comments

comment 2y ago · link · parent

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...

comment 3y ago · link · parent

I have written quite a few things in Go.

https://github.com/prophittcorey