Skip to content
View HusainCode's full-sized avatar
💻
Busy coding
💻
Busy coding

Block or report HusainCode

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
HusainCode/README.md

Straw Hat Pirates Logo

Hi there, I'm Husain 👋

🚀 I am a Software Engineer | 🔍 Passionate about Building & Solving | 🎯 Lifelong Learner
👉 Check out my Software Engineer Roadmap

Software Engineering Badge YouTube Badge


🌟 About Me

I'm passionate about continuous learning and growth as a Software Engineer. I enjoy working on a variety of technical challenges, from system-level programming to backend development, and I'm constantly exploring innovative technologies.

I'm not aiming to be the best this year, or the next, or even the one after that. I’ve got my whole life to master this craft. I’m here for the long run, dedicated to becoming one of the best in the field.

⚠️ Warning: If you didn’t hire me, that decision might age poorly. I’m not just here to code. I’m here to lead, innovate, and outgrow expectations. And yes this one's very personal.

📝 Interviewer Note

❌ Please don’t ask me “How do you stay up to date with tech?”
If you can’t already tell from my work, my consistency, and my drive. I genuinely can’t help you answer that.


💬 Quotes That Drive Me

💡 "Find a job you enjoy doing, and you will never have to work a day in your life."Mark Twain
🧠 "Once you stop learning, you start dying."Albert Einstein
🔁 "Commit yourself to lifelong learning. The most valuable asset you’ll ever have is your mind and what you put into it."Albert Einstein

from abc import ABC, abstractmethod
from dataclasses import dataclass
from typing import Protocol


# --- Core Interfaces & Abstractions (Interface Segregation) --- #
class Logger(Protocol):
    def log(self, message: str) -> None: 

class Debuggable:
    """Mixin providing lightweight debug logging (Strategy pattern)."""

    def __init__(self, logger: Logger):
        self._logger = logger

    def debug(self, message: str) -> None:
        self._logger.log(f"[DEBUG] {message}")


# --- Concrete Implementation (Dependency Inversion) --- #
class ConsoleLogger:
    """Concrete logger that writes to the console."""
    def log(self, message: str) -> None:
        print(message)


# --- Domain Layer (Single Responsibility) --- #
@dataclass(frozen=True)
class Education:
    bachelors: str
    masters: str
    specialization: str


# --- Application Layer --- #
class Engineer(ABC):
    """Abstract base class for different types of engineers."""

    @abstractmethod
    def introduce(self) -> str:
        pass


class SoftwareEngineer(Debuggable, Engineer):
    """A well-structured Python representation of an engineer."""

    def __init__(self, name: str, passion: str, location: str, education: Education, logger: Logger):
        super().__init__(logger)
        self._name = name
        self._passion = passion
        self._location = location
        self._education = education
        self.debug("SoftwareEngineer instance initialized.")

    def introduce(self) -> str:
        self.debug("Generating introduction...")
        return (
            f"Hi there, I'm {self._name}!\n"
            f"Passionate about {self._passion} and solving real-world problems.\n"
            f"Based in {self._location}.\n"
            f"I hold a Bachelor's in {self._education.bachelors}.\n"
            f"Currently pursuing a Master's in {self._education.masters}, "
            f"specializing in {self._education.specialization}."
        )


# --- Composition Root (Dependency Injection) --- #
def main() -> None:
    logger = ConsoleLogger()
    edu = Education(
        bachelors="Computer Science",
        masters="Data Science",
        specialization="Machine Learning & Embedded Intelligence",
    )

    husain = SoftwareEngineer(
        name="Husain",
        passion="building smart software & embedded systems",
        location="Texas",
        education=edu,
        logger=logger,
    )

    print(husain.introduce())


if __name__ == "__main__":
    main()

### 🖨️ Output:
[DEBUG] SoftwareEngineer instance initialized.
[DEBUG] Generating introduction...
Hi there, I'm Husain!
Passionate about building smart software & embedded systems and solving real-world problems.
Based in Texas.
I hold a Bachelor's in Computer Science.
Currently pursuing a Master's in Data Science, specializing in Machine Learning & Embedded Intelligence.


🏆 GitHub Trophies

Trophies

🏅 Certifications

Linux Essentials Certified Microsoft Certified: Azure Data Fundamentals Certified Blockchain Expert Red Hat Certified System Administrator Certified Associate Python Programmer Pending Certification Badge

🧾 Certification 🏛️ Issuer
Linux Essentials Certified Linux Professional Institute (LPI)
Microsoft Certified: Azure Data Fundamentals Microsoft
Certified Blockchain Expert Blockchain Council
Red Hat Certified System Administrator Red Hat
Certified Associate Python Programmer Python Institute
Next Certification 🔄 Pending...

GitHub Stats

Husain's GitHub Stats Husain's GitHub Streak


📊 Contribution Graph

HusainCode's Contribution Graph


Languages and Tools

Top Langs

Languages & Tools:

C C++ Python Java Go MySQL Linux Docker Kubernetes AWS


Connect with Me


Visitors count

## Contribution

snake animation

Pinned Loading

  1. Threat-Detection-URL-Checker Threat-Detection-URL-Checker Public

    [Completed] Threat Detection URL Checker – A Python tool that retrieves public API URLs, checks their safety using the Google Web Risk API, and categorizes them as safe or threats. Results are logg…

    Python 5

  2. localedge-env-monitor localedge-env-monitor Public

    [In progress] Real-time environmental monitoring system for Raspberry Pi

    Python 3

  3. pico-firmware pico-firmware Public

    [In progress] This firmware sends data to the [env-monitor-server](https://github.com/husaincode/env-monitor-server) over HTTPs

    Python 3

  4. C-Talk C-Talk Public

    [Completed ] C-Talk is a simple chat client and server written in C using Linux sockets.

    C 3

  5. Rock-Paper-Scissors-C Rock-Paper-Scissors-C Public

    [Completed] A classic Rock, Paper, Scissors game

    C 4

  6. core core Public

    Forked from home-assistant/core

    🏡 Open source home automation that puts local control and privacy first.

    Python