Day 18 — 2D Arrays, Virtual Envs, and the CSS Box Model

Debadrita PalDebadrita Pal
2 min read

📦 Day 18 — Arrays, Environments, and a Box Around Everything

Today felt sharp — focused and filled with stuff that really matters.

From sorting arrays in C++ to building Python environments the proper way, and finally understanding the CSS box model — it was a solid deep-work day.


✅ What I Did

💻 C++ – 2D Arrays and Sorting

  • Learned:

    • How to declare, initialize, and access 2D arrays

    • Nested loops for input/output

    • Practiced basic sorting algorithms like selection sort and bubble sort

  • Tried small logic-based problems on arrays and matrix traversal

🐍 Python – venv and CLI Practice

  • Created and activated virtual environments using:

    • python -m venv env

    • source env/bin/activate (Linux/Mac) or .\env\Scripts\activate (Windows)

  • Learned how to:

    • Use pip inside venv

    • Run and test code from CLI efficiently

🌐 Web Dev – CSS Box Model

  • Finally understood how margins, borders, padding, and content interact

  • Practiced using box-sizing, border, and spacing techniques

  • Made demo cards to visualize each layer of the box model


🔗 GitHub Pushes

  • cpp-practice/day18-2darray-sorting.cpp

  • python-vault/day18-venv-cli.md

  • web-dev-start/day18-css-box-model.html


🧠 Reflections

Today wasn’t flashy — but it was real work.
And real work stacks up fast.

Felt in control today. Like I’m building a base that I’ll actually use.

That’s Day 18. Logged and done.

10
Subscribe to my newsletter

Read articles from Debadrita Pal directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Debadrita Pal
Debadrita Pal

🎓 CSE @ VIT Bhopal | Romantic at heart, dev at war 💻 Learning C++, Web Dev & AI — one bug at a time ✍️ Writing the raw truth of a Tier-3 coder building toward Stanford & self-made success 💖 16 novels in 2 months. 💀 0 cardio sessions by choice. Soft energy. Hard code. Sharp mind.