Better HN
topnewbestaskshowjobs
Log inSign up

ashtonjamesd

195 karma · joined Oct 9, 2025 (1y ago) · 21 submissions

Fanatical C Developer
Submissions

comment 1y ago · link · parent

No problem! With C, I started with the K&R book. This provided a great foundation for C and some fundamental CS concepts. I am unsure of the best way to obtain a more structured curriculum outside of college, as that is how I received mine. There are many YouTube video courses to choose from if that is the type of content you learn best from. And many for CS fundamentals. I would also highly recommend a combination of project-based learning with theory, as that will accelerate your understanding quite a bit. You could try looking for a programming buddy on Reddit on r/programming, too! Having someone at a similar skill level to you will make learning easier as you both share knowledge.

comment 1y ago · link · parent

Thank you for the feedback! I agree it does obfuscate the signature, possibly too much. I think it's okay as long as the user has the option to do both, with this made clear in the docs.

Also, yes I agree, RequestContext makes more sense!

comment 1y ago · link · parent

Hi, I have been coding on GitHub for about 2 years. There's no trick other than enjoying it and relentlessly programming for fun. You probably know this, but if you enjoy something, you'll likely be better at it than someone who doesn't! More concrete advice would be to become an expert on the fundamentals and then try to tackle large projects, things that you think you could definitely not do, but do them anyway.

comment 1y ago · link · parent

That's a very good idea actually and I had wanted to do that but it didn't click that you could do that with a macro!

Thank you, I'll will implement that :)

comment 1y ago · link · parent

Thank you, I really appreciate you saying that!

Yes it's on the backlog and will be fun to implement :)

comment 1y ago · link · parent

Thank you for the feedback, it is appreciated!

I did intend to implement parallelization as a later feature so it's good to bring it up.

comment 1y ago · link · parent

Yes, I'm sure that is something I can add to it.

I will add it to the backlog of things to do :)

comment 1y ago · link · parent

Haha, the example could be better. All of the other things combined, I would say it could be called a framework.

There are some more examples in doc/

comment 1y ago · link · parent

Thank you, that means a lot! :)

comment 1y ago · link · parent

Wow! That really means a lot because I always make a lot of effort to make sure my code is just that :)

Appreciate you saying that!

comment 1y ago · link · parent

Thank you so much! I appreciate it :) And yes, totally agree.

comment 1y ago · link · parent

Haha, I have used AI in some parts of it - mainly the JSON part because I could not wrap my head around it for the life of me. But I am proud that 90% is self written!

comment 1y ago · link · parent

No of course not, I understand where they are coming from in all honesty. Thank you that means a lot!

comment 1y ago · link · parent

That's amazing to hear and motivates me to solidify the framework further. I appreciate you showing interest! :)

I'd love to hear about your project when you get round to it.

comment 1y ago · link · parent

That's fair. And I do agree. The use cases for something like this are very thin compared to what tools you can use out there instead, Django, Rails, Express, etc. All of which offer a much safer development experience. However, I still believe it will have a use case for some.

comment 1y ago · link · parent

True. Also, I love the C language and I don't get joy out of writing in many other languages. Additionally, I've wanted to make something like this just to learn more about how web servers work. I appreciate your thoughts.

comment 1y ago · link · parent

Hi, sorry maybe I should've added a comment for that.

The 'appRoute' is a macro that expands to a function signature.

The macro is: '#define appRoute(name) HttpResponse name(AppContext ctx)' and the parameter I passed as 'home' is expanded into the function name. The reason is because all controller function signatures are the same, so just writing 'appRoute' allows the developer to save time writing endpoints!

It is a tradeoff between readability and development speed. And one of the ideas behind the framework is succint and minimal code.

comment 1y ago · link · parent

C finds a way.

comment 1y ago · link · parent

Right now, it's just a framework for building backends. So yes, server-side applications. However, I have thought about implementing a templating engine for serving HTML files.

comment 1y ago · link · parent

For fun! And because I wanted to create a framework that makes coding in C feel like a high level language (mainly for fun though).

21.

Show HN: I built a web framework in C(github.com ↗)

420 points · by ashtonjamesd · 1y ago · 218 comments