Writing Swift Like a Pro: Clean Code, Separation of Concerns, and AI-Assisted Development

Swift is a powerful, multi-paradigm language that blends object-oriented programming (OOP), protocol-oriented programming (POP), and functional programming (FP). With the rise of artificial intelligence (AI) tools such as GitHub Copilot, Cursor, and Tabnine, it has become easier than ever to generate code quickly. However, while AI accelerates development, it does not replace software craftsmanship. If you already have strong coding practices and discipline, AI can be a valuable assistant. If you rely on AI blindly, you risk generating unreadable, unmaintainable, and inefficient code at scale.

Writing high-quality Swift code requires discipline in applying good naming conventions, maintaining a clear separation of concerns (SoC), following the five principles of SOLID design (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion), and ensuring maintainability through best practices. While AI-generated code can be useful, it must be refactored and reviewed for clarity and correctness.

Continue reading “Writing Swift Like a Pro: Clean Code, Separation of Concerns, and AI-Assisted Development” →

Swift Coding Conventions: Writing Maintainable, Readable, and Elegant Code

Swift – Apple’s slick and safety-focused (? still not sure I’m bought in on that phrasing) programming language – has become the backbone of Apple’s development. Whether you’re hacking on an indie app or shipping production-grade enterprise software, writing consistent, readable, and idiomatic Swift is non-negotiable. Swift has a robust set of guidelines to follow, and I wrote a thing or three about it’s style of OOP, POP, and FP rolled into one language here, but let’s cut through the noise and hit the key conventions that will level up your Swift code.

Continue reading “Swift Coding Conventions: Writing Maintainable, Readable, and Elegant Code” →

Swift: A Multi-Paradigm Powerhouse—OOP, POP, and FP

Swift is a versatile toolkit that lets you solve problems in multiple ways. Whether you’re leveraging the familiar object-oriented principles, diving into Swift’s protocol-oriented magic, or harnessing the power of functional programming, Swift has you covered. In my latest swift dive I’ve put together a break down of these paradigms per Swift usage.

Continue reading “Swift: A Multi-Paradigm Powerhouse—OOP, POP, and FP” →

Keeping it Lean: Building the Bare Essentials for Project Management

When you’re running a project that needs to stay lean — and I mean lean like taking a cargo bike to grab groceries instead of a 2+ ton automobile that’s slower, more cumbersome, and way overkill for the job — the tools you choose and the processes you define matter as much as the work itself. It’s easy to go overboard, drowning in Gantt charts, sprint boards, and daily standups that spiral into mini-retrospectives. But what if the goal is simplicity, agility, and clarity?

Let’s break it down.

1. Define Your Central Hub

The first thing you need is a single source of truth. This doesn’t mean a bloated Jira instance with workflows for every imaginable scenario. For a lean project, a simple Kanban-style board can do wonders. Tools like Trello or GitHub Projects (especially if you’re already using GitHub for version control) offer clean, intuitive interfaces that keep everything in one place.

Continue reading “Keeping it Lean: Building the Bare Essentials for Project Management” →

A Successful Deploy to Vercel + Adding More Auth & Login Features to The Web Interface (Plus an Error!)

In the last few posts I knocked out a slew of initial work. Much of it was just to get things up and running and make sure the database was live, the site was live, and that there was a good connection between the two. I did this by building the first basic login page with a dashboard that just shows that the user is logged in, along with a few pages to display general static content. That can be found in:

  1. Building “Adron’s Core Platform”: Starting a React App on Vercel
  2. Getting a Vercel PostgreSQL Database and Basic Authentication Operational
  3. The Confederacy of Errors Starting With Next Auth; Error, Error, npm ERR!

The tasks I’ll accomplish in the following post:

  1. I want a horizontal menu across the top that will link to the dashboard, login, and about page.
  2. I want an account creation page.
  3. I want to make sure that I set things up for the post-login action to be a redirect to the dashboard page.

Adding a Horizontal Menu

For this menu I’m going to add a div with links, assign it as a flex space (css), and add the pertinent links. The changed ./src/app/components/Navigation.tsx with changes looks like this now.

Continue reading “A Successful Deploy to Vercel + Adding More Auth & Login Features to The Web Interface (Plus an Error!)” →