HackerTrans
トップ新着トレンドコメント過去質問紹介求人

moodguy

no profile record

投稿

Edbrowse, a Command Line Editor Browser

edbrowse.org
55 ポイント·投稿者 moodguy·3 年前·19 コメント

Edit: Vi and Acme

c9x.me
4 ポイント·投稿者 moodguy·3 年前·0 コメント

Turning Suckless into Suckmore

unixsheikh.com
6 ポイント·投稿者 moodguy·3 年前·5 コメント

Why OpenBSD Rocks

why-openbsd.rocks
3 ポイント·投稿者 moodguy·3 年前·0 コメント

Programming Style Influences (2022)

tratt.net
14 ポイント·投稿者 moodguy·3 年前·1 コメント

C Needs Better Syntax and Macros (2020)

andreyor.st
3 ポイント·投稿者 moodguy·3 年前·0 コメント

Metadesk – An Ergonomic Parser Library

dion.systems
3 ポイント·投稿者 moodguy·3 年前·0 コメント

Lisp C Compiler, Lisp-like syntax for writing C code

github.com
2 ポイント·投稿者 moodguy·3 年前·2 コメント

One Big Header File

wiki.c2.com
1 ポイント·投稿者 moodguy·3 年前·1 コメント

Expert Beginners

daedtech.com
33 ポイント·投稿者 moodguy·3 年前·10 コメント

C for All

cforall.uwaterloo.ca
7 ポイント·投稿者 moodguy·3 年前·2 コメント

We don’t need no stinking expression templates

gieseanw.wordpress.com
1 ポイント·投稿者 moodguy·3 年前·0 コメント

Coma Editor – my personal editor

github.com
1 ポイント·投稿者 moodguy·3 年前·0 コメント

コメント

moodguy
·3 年前·議論
For my hobby projects i do the following.

I adopted the style of writing all macros in lower case with the prefix "macro_", so i can grep through all macros. So macro_ becomes like a keyword. Same with enum.

I use almost the same naming scheme for i32,f32, etc., but i typedef for example size_t const to usz, and size_t to usz_ (or use macro mut(x) x ## _) . So all shorter type names are const by default. I use a single header of 35 sloc to do that.

I see that this way of coding can be confusing for other people, so i avoid it when writing code that other people have to work with. But for personal code its really enjoyable for me.
moodguy
·3 年前·議論
Oh wow! Didn't know that. Thanks for the link!
moodguy
·3 年前·議論
can you give an example for the function like macro?