Code Adventure

Code Adventure

Share

Every adventure begins with a quest, perhaps a desire to build a game, develop a website, or automate a tedious task.

Along the way, you'll encounter obstacles that test your problem-solving skills and push you to expand your knowledge.

06/10/2026

Choose wisely when deciding how to code a given task and when to ask AI.
Follow me for more videos and codes: Code Adventure

06/10/2026

🌙 Dark Theme Toggle Button with JavaScript | Light & Dark Mode Switch
I demonstrate how to create a modern Dark Theme Toggle Button using HTML, CSS, and JavaScript. Users can easily switch between Light Mode and Dark Mode with a single click, improving user experience and accessibility. The project features a clean UI design, smooth theme transitions, and responsive layout support.

✅ Dark Mode / Light Mode Toggle
✅ Responsive User Interface
✅ HTML, CSS & JavaScript
✅ Beginner-Friendly Project
✅ Modern Web Design Concept
✅ Smooth Theme Switching
Follow me for more videos and codes: Code Adventure

06/09/2026

Count occurrences of each character in a string.
Follow me for more videos and codes: Code Adventure

06/08/2026

ASP .NET Core RouteEndpoint, which represents an Endpoint that can be used in URL matching or URL generation.

GetEndpoints returns all endpoints in an application.
Follow me for more videos and codes: Code Adventure

06/08/2026

"Only Admins can do this."

That check is easy to add to an API.

Then the app grows.

Now you have Admins, Managers, Editors, Support Agents, and custom access rules for a few users.

Soon, your code is full of questions like:

→ Is this user an Admin?
→ Or a Manager?
→ Or a Manager with one extra rule?
→ Do we need a new role for this one action?

This is where role checks start to break down.

A better approach is to think in permissions:

→ Users have roles
→ Roles contain permissions
→ Endpoints require a permission

For example, an endpoint does not need to know that a user is a Manager.

It only needs to know whether they can update users or export reports.

This gives you access rules that are easier to read, change, and test.

And you can add new permissions without spreading new role checks across your API.

I break down how to build this in ASPNET Core, using permission-based policies, claims, and clean endpoint rules.
Follow me for more videos and codes: Code Adventure

06/08/2026

Responsive and collapsible sidebar built with , and 🚀

Code available for 24h then within Atheros Pass 🧑‍💻
Follow me for more videos and codes: Code Adventure

06/07/2026

ASP.NET Core Entity Framework Model Configuration | PackageDetail Class
I demonstrate how to create and configure a PackageDetail model in ASP.NET Core using Entity Framework. You'll learn how to use Data Annotations such as [Table], [Key], [ForeignKey], and [Column] to define database relationships and map your model to SQL Server tables.

✅ Create Entity Models
✅ Define Primary Keys and Foreign Keys
✅ Configure Table Mapping with Data Annotations
✅ Set Up Product and Package Relationships
✅ ASP.NET Core & Entity Framework Best Practices
Follow me for more videos and codes: Code Adventure

06/06/2026

📧 ASP.NET Core Email Template Model | Entity Framework Database Mapping
Email Template model in ASP.NET Core using Entity Framework Core. In this tutorial, we define the EmailTemplate class with properties such as Id, Subject, Description, and Type, and map it to the database using the [Table] attribute.

✅ Create EmailTemplate model
✅ Use Data Annotations for table mapping
✅ Define properties and enums
✅ Entity Framework Core integration
✅ Clean and scalable code structure
Follow me for more videos and codes: Code Adventure

06/06/2026

Example for removing a property from json.
Follow me for more videos and codes: Code Adventure

06/06/2026

Interface helpers
Follow me for more videos and codes: Code Adventure

Want your school to be the top-listed School/college in Washington D.C.?
Click here to claim your Sponsored Listing.

Category

Telephone

Address


Washington D.C., DC
20001