Learning to Code While at University in Kenya: A Practical Plan
Kenyan university students can learn to code alongside their degree by dedicating 8 to 12 hours per week to structured practice. Start with free resources like freeCodeCamp during first year, move to a part-time bootcamp or structured course by second year, and build portfolio projects during long holidays. The key is consistency over intensity. Two hours daily beats a weekend binge every two weeks.
Why University Is Actually the Best Time to Start
Most people think you should wait until you graduate to pick up a new skill. Finish your degree first. Get sorted. Then learn something extra. That logic sounds safe until you graduate into a job market where 500 people applied for the same position and the one who got it had a portfolio on GitHub.
University gives you something that disappears the moment you leave: structured free time. Yes, you have units and CATs and group assignments that nobody else in the group does. But you also have gaps. Two-hour breaks between lectures. Weekends where the only plan is doing laundry at the hostel. Entire months during long holidays when the campus is a ghost town.
That time is not wasted if you scroll through TikTok. It is wasted because it could have built you a second skill that pays. Coding is one of the few skills where two hours a day, five days a week, for twelve months turns you into someone who can bill clients or pass a technical interview. The maths works in your favour while you are still on campus.
A Semester-by-Semester Plan That Actually Fits
This is not a rigid timetable. Adjust it based on your course load. But the structure helps because the biggest enemy of learning to code at campus is drift. You start strong, skip a week during CATs, and never come back.
Year 1, Semester 1: Foundations. Install VS Code on your laptop. Complete the Responsive Web Design certification on freeCodeCamp. That is HTML, CSS, and basic layout. It takes roughly 300 hours at the site's estimate, but most people finish faster. Aim for 2 hours per day on weekdays. By the end of the semester you can build a static website from scratch.
Year 1, Semester 2: JavaScript. Start the JavaScript Algorithms and Data Structures section on freeCodeCamp. This is where coding gets real. Variables, loops, functions, DOM manipulation. It will frustrate you. That frustration is the learning happening. Push through.
First Long Holiday: Build something real. Three months with no lectures. This is your runway. Build a personal portfolio site. Build a simple calculator app. Build a to-do app with local storage. These are beginner projects, but they teach you how to go from idea to working product.
Year 2: Structured training. If you can afford it, enrol in a part-time coding programme. McTaba runs a part-time track that takes 6 months. You attend sessions in the evenings or weekends while still going to class during the day. Alternatively, follow a structured curriculum like The Odin Project from start to finish.
Year 3 and 4: Portfolio and freelance. By now you should have React, a backend framework, and database skills. Start building projects that solve real problems. A budgeting app. A campus event listing site. An M-Pesa payment integration demo. Start applying for freelance gigs on Upwork or approaching small businesses in your area who need websites.
Tools You Need and What They Cost
You do not need much. But you need these things to be reliable.
Laptop: Any machine with at least 4GB RAM and 128GB storage. A refurbished ThinkPad from Luthuli Avenue costs KES 18,000 to KES 30,000. If you already have a laptop for campus, it probably works. Chrome OS machines are limiting for development, so avoid those if you can.
Internet: Campus Wi-Fi is unreliable at most Kenyan universities. Budget KES 1,000 to KES 2,000 per month for a Safaricom or Airtel data bundle. If you live near a fibre zone, a shared home connection at KES 2,500 per month split between housemates is cheaper per GB.
Code editor: VS Code. Free. Download it once when you have Wi-Fi and you are set.
Learning platforms: freeCodeCamp (free), The Odin Project (free), MDN Web Docs (free), YouTube channels like Traversy Media and The Net Ninja (free). Paid options: Udemy courses at KES 1,500 to KES 2,500 during sales, McTaba Tech Foundations at KES 2,999.
Total startup cost if you already have a laptop: KES 0 to KES 3,000. If you need a laptop: KES 18,000 to KES 33,000. That is less than one semester's accommodation at most Nairobi campuses.
Finding Hours Without Dropping Your GPA
The fear is real: if I start coding, my grades will suffer. Here is what actually happens when students manage it well.
You need 8 to 12 hours per week. That is 1.5 to 2 hours on weekdays and maybe a longer session on Saturday morning. Look at your actual timetable. Not the ideal one where you study for six hours after lectures. The real one, where you spend two hours in the hostel watching reels before dinner.
Those two hours are your coding window.
Some practical tactics that work on Kenyan campuses:
- Code between lectures in the library. Two hours between a 9 AM and a 1 PM class is a full coding session.
- Use the Pomodoro technique: 25 minutes of focused coding, 5 minutes of rest. Four rounds and you have done two solid hours.
- During CAT and exam weeks, pause coding completely. No guilt. Your degree comes first. You can always catch up in the holiday.
- Keep your coding projects on GitHub so you can work from any machine. If your laptop dies, you can continue from a friend's computer or the campus lab.
The students who fail at this are the ones who try to code for eight hours on Saturday and then do nothing for two weeks. Consistency beats intensity. Every time.
Building a Coding Community on Campus
Learning alone is hard. Learning alone while everyone around you is doing something different is harder. Your roommate is studying accounting. Your friend group meets at the pitch every evening. Nobody understands why you are staring at a screen full of coloured text.
Find your people. Every major university in Kenya has at least one tech or coding club. JKUAT has GDSC. UoN has multiple tech communities. Kenyatta University has KU Tech. If your campus does not have one, start a WhatsApp group with three or four people who are interested. That is enough.
What a good campus coding group does:
- Weekly check-ins: "What did you build this week?" Accountability is the single most effective motivator.
- Pair programming sessions: sit together and code. One person drives, the other watches and suggests. You learn faster by watching someone else think.
- Project collaborations: build something together for a hackathon or just for fun. A campus event app. A meal-planning tool. Anything that goes beyond tutorials.
You do not need a big community. Three serious people who show up consistently will push you further than a 200-person Telegram group where nobody codes.
What Coding Adds to Your Specific Degree
This is not just for computer science students. In fact, CS students often have the least to gain because their coursework already covers programming, even if the curriculum is outdated.
If you are studying business or commerce, coding lets you automate reports, build internal tools, and understand the tech products your company buys. You become the person in the office who can talk to both the marketing team and the developers.
If you are studying medicine or nursing, health-tech is growing across Kenya. Developers who understand clinical workflows build better EMR systems. Your medical knowledge combined with coding skills puts you in a niche that very few people occupy.
If you are studying education, ed-tech platforms need people who understand both pedagogy and software. You could build learning tools instead of just using them.
If you are studying journalism or communications, data journalism is a growing field. Reporters who can scrape data, build visualisations, and create interactive stories get hired faster and paid more.
The pattern is clear. Whatever your degree is, adding coding does not replace it. It multiplies it. A business graduate is one of thousands. A business graduate who can build a dashboard and integrate M-Pesa payments is rare.
How McTaba Works for University Students
We built the part-time track specifically for people who have something else going on during the day, including campus.
The McTaba marathon runs for 26 weeks. The part-time track spreads it across 6 months with evening and weekend sessions. You attend classes, do your assignments, and code in the gaps. By the end, you have built 8 production-grade applications using the African Stack: React, TypeScript, Node.js, M-Pesa via Daraja, WhatsApp Business API, and AI tools.
The cost is KES 120,000, payable in M-Pesa instalments. If that is too much right now, start with Tech Foundations at KES 2,999. It covers the fundamentals and helps you decide if coding is your thing before you invest further.
We are not the only option. Moringa School, Power Learn Project, and others also offer programmes for working learners and students. Compare them. Check their curricula, their project requirements, and their alumni outcomes. Then choose the one that matches your schedule and budget.
What we do not promise: a job the week you graduate. What we guarantee: by week 26, you will have a portfolio that looks like it belongs to someone who has been coding professionally. What you do with that portfolio is up to you.
Key Takeaways
- ✓You do not need to choose between your degree and coding. With 8 to 12 hours per week of focused practice, you can become job-ready in web development by the time you graduate.
- ✓Free resources like freeCodeCamp and The Odin Project are enough to start. Invest in paid training only after you have survived the first two months and confirmed you enjoy the work.
- ✓Long holidays are your biggest advantage. Three months of uninterrupted coding during the April or August break is worth more than a full semester of scattered weekend sessions.
- ✓Build projects, not certificates. Employers hiring junior developers in Nairobi care about what you can demo in an interview, not how many Coursera badges you collected.
- ✓Find one or two other students who are also learning. A small accountability group on campus keeps you going when the syllabus gets dense and coding feels optional.
Frequently Asked Questions
- Can I learn to code at university without studying computer science?
- Yes. Coding is a skill, not a degree requirement. Students from any faculty can learn web development, data analysis, or mobile app development through free online resources, part-time bootcamps, or campus coding clubs. Many successful developers in Kenya studied business, arts, or engineering before picking up programming.
- How many hours per week do I need to learn coding while at campus?
- Plan for 8 to 12 hours per week. That works out to about 1.5 to 2 hours on weekdays with a longer session on one weekend day. Consistency matters more than volume. Two hours daily beats eight hours on Saturday followed by nothing for two weeks.
- Will learning to code affect my university grades?
- Not if you manage your time well. Pause coding during CAT and exam weeks. Your degree is the priority. During regular weeks, use the gaps between lectures and the evenings you would otherwise spend on social media. Most students who struggle are the ones who try to do marathon coding sessions instead of short, consistent daily practice.
- What is the cheapest way to start coding as a Kenyan university student?
- Free resources like freeCodeCamp, The Odin Project, and YouTube tutorials cost nothing beyond your data bundle. If you have campus Wi-Fi, the cost is literally zero. Your first paid investment should be a structured course only after you have confirmed you enjoy coding. McTaba Tech Foundations at KES 2,999 is a low-cost entry point.
- Should I do a coding bootcamp or teach myself while at university?
- Self-teaching works for disciplined learners who can follow a curriculum without external accountability. A bootcamp provides structure, mentorship, deadlines, and a cohort that pushes you forward. If you have tried self-teaching and kept quitting after two weeks, a structured programme is worth the investment. If you are making steady progress on your own, keep going and save the money.
Ready to build real-world apps?
Join the McTaba Labs full-stack marathon (4 months full-time · 6 months part-time). Learn M-Pesa, USSD, and WhatsApp engineering while shipping 8 production apps.
Apply to the McTaba Marathon