Day 1 of building my own shell in Rust. Started small: print a `$` prompt, read a line of input, and trim it. First new trick, using variable shadowing to rebind the input to its trimmed value under the same name. No loop yet. Documenting the whole thing, day by day.
Day 5 of building my own shell in Rust, part 2.
Added navigation: pwd and cd. cd handles absolute, relative, and ~ paths.
cd has to be a builtin. A child process can only change its own cwd β it can't reach back to the parent shell. So the shell must do it itself.
#Rust
Day 4 of building my own shell in Rust.
It can now run actual programs. If a command isn't a builtin, the shell searches each directory in PATH for a matching executable, then spawns it as a child process with process::Command.
ls, cat, grep: all working now, like a real shell.
Day 3 of building my own shell in Rust.
Got the REPL loop running with exit, echo, and type. But my eval logic was turning into an if/else chain, so I refactored: a Command trait, each builtin its own struct, and a Registry (HashMap of trait objects) to dispatch them.
#Rust
Day 2 of building my own shell in Rust.
No code today, spent it on Chapter 17 of the Rust Book (OOP in Rust). Generics vs trait objects, why `dyn Trait` needs a pointer.
Not every day is shipping. Some are just loading up on the concepts you'll need next.
#Rust#BuildInPublic
7 problems solved, ranked #1 locally π³π¬ and #124 globally out of thousands of participants. The grind is real and the results are showing! π»
Proud to see that my efforts are finally paying and progress is more visible. π
#Codeforces#CP#Coding#Div4#ProblemSolving
Back In Senior Secondary School. I was in this group where questions on concepts like Number Theory were regularly sent, most of the group members were in Uni. So I thought they were the norms.
I started learning dem rigorously, cause I found them actually fun
I can remember the first time I solved a question of the form "what is the last three digits of X^Y (a very large number)".
The joy in my heart ππ
"How in the world is this possible"
Fast forward to year 1, where I found out I won't be needing them ever.
My name is Ladipo Samuel, a software engineer and 11x hackathon winner currently exploring Developer Relations.
The past few months have been full of motion.
- Stepped into the role of Community Lead at @gdgoc_unilag .
- Strengthened my speaking through @TechpulseC75071 and Hult prize, and Iβm currently training a bootcamp on pitching for both technical and non-technical opportunities.
- Spent more time sharpening my problem-solving skills and thinking deeper about system design and project structure.
- Got inaugurated as the Public Relation Officer at @NACOS_UNILAG where Iβm working on creating opportunities in diverse fields computer science students are interested in @UnilagNigeria
- Built projects with clients and received solid feedback along the way.
Iβll be judging and mentoring at Devcon 2.0, and Iβm open to opportunities in SWE & DevRel, community building, and technical speaking.
Excited for whatβs ahead.