The Unix command line tools are a great metaphor for good software engineering and they follow the Unix Philosophies of: Writing simple parts connected by clean interfaces - each tool does just one thing and provides a simple CLI that handles text input from either files or file streams.
Aug 23, 2023·edited Aug 23, 2023Liked by John Crickett
For calculating the number of bytes, should we assume a specific encoding of the characters into bytes? If not, is there a way to determine this encoding in case of reading from the standard input? I am using c++ for reference.
Here is my solution using good old C 😊 70-80% done ✔️
https://github.com/clovisphere/wc
(I just came across these challenges. Let's see how far I will go)
I am a begginner , I tried this in golang , any experienced golang engineers can leave me a review and I will correct my code . It can be found here
https://github.com/UnplugCharger/coding-challenge/blob/master/01_wc/main.go
Hi John,
I have completed this coding challenge
Here's my implementation : https://github.com/sahilraj1915374/coding_challenges/tree/main/ccwc
I had a great time working on this!
For calculating the number of bytes, should we assume a specific encoding of the characters into bytes? If not, is there a way to determine this encoding in case of reading from the standard input? I am using c++ for reference.
Here is my solution in Scala: https://github.com/Ghurtchu/wc
I'm planning to add more unit tests and property based tests later.
Hi John,
My solution with Java 17 and GraalVM for conversion to binary, 100% done :D
https://github.com/valentinsoare/wordtally