Given that you have archetypes: programming.md, hiking.md and commandline.md
Running
hugo new --kind="programming" programming/c/post.md
should work with one caveat. If the archetype files are in the theme folder, you have to specify the theme in the config file for it to pull from there.