Open in app

Sign In

Write

Sign In

Pedro Alvarez
Pedro Alvarez

714 Followers

Home

About

13 hours ago

iOS: Reimplementing the Set data structure in Swift

Aiming efficiency, the Set type in Swift comes as ideal when we just want a data structure where we need to know if a specific element of a given type belongs to the set or not and list all the elements that exist in there. Differently from arrays and lists…

Algorithms

4 min read

iOS: Reimplementing the Set data structure in Swift
iOS: Reimplementing the Set data structure in Swift
Algorithms

4 min read


Published in Better Programming

·Jan 13

Testing Legacy Classes Without Relying on Protocols for Dependencies in iOS

Abstracting legacy and native dependencies from the Apple environment — Imagine you have an old part of your iOS app that requires new features and adaptations to certain flows for regulatory purposes. Additionally, you have a continuous integration system that blocks pull requests that do not contain enough tests, so every function and class must be unit tested in an…

I OS

4 min read

Testing Legacy Classes Without Relying on Protocols for Dependencies in iOS
Testing Legacy Classes Without Relying on Protocols for Dependencies in iOS
I OS

4 min read


Published in Better Programming

·Jan 8

Implementing a Custom NotificationCenter Efficiently in iOS

Various ways to use the Observer class — If you work with object-oriented programming, certainly you are familiar with (or at least have already heard about) the Observer design pattern. This pattern consists of an Observable class that emits events with custom data attached to it. Other classes that subscribe to it may get a notification when a…

I OS

6 min read

Implementing a Custom NotificationCenter Efficiently in iOS
Implementing a Custom NotificationCenter Efficiently in iOS
I OS

6 min read


Jan 4

iOS technical interview: What should you ask in the final ten minutes?

If you are applying to a software developer position, all the companies have their own technical interview templates and it’s impossible to have a preview about what will happen during the board. But something is certain: You will be given 10(or maybe a different quantity) minutes to ask anything you…

I OS

7 min read

iOS technical interview: What should you ask in the final ten minutes?
iOS technical interview: What should you ask in the final ten minutes?
I OS

7 min read


Published in Better Programming

·Dec 8, 2022

iOS View Code: A Solution To Keep the Encapsulation of the Pipeline

Declaring the data inside some computed properties — In the last series, I presented the first solution to organize your pipeline with three steps. At the same time, you will never be confused about which step should come first. Indeed it is a good coding practice. However, there is an issue regarding encapsulation. Since the methods for view…

I OS

3 min read

iOS View Code: A Solution To Keep the Encapsulation of the Pipeline
iOS View Code: A Solution To Keep the Encapsulation of the Pipeline
I OS

3 min read


Published in Better Programming

·Dec 4, 2022

View Code’s Handbook for iOS Developers

An in-depth guide to best practices for your projects — Almost one hundred percent of iOS developers, except those conceived through SwiftUI API, started learning to build UI interfaces with storyboards. I still remember all the magic I experienced in 2017 when I took my first lesson about Swift by creating a simple Hello World app with a storyboard by…

Swift

13 min read

View Code’s Handbook for iOS Developers
View Code’s Handbook for iOS Developers
Swift

13 min read


Nov 9, 2022

iOS VIPER: The most suitable design patterns that come together

Resuming our iOS VIPER series, it's time to talk about the most important design patterns that fit a VIPER scene. Since VIPER is a complex architecture, there are multiple ways to create and bind its layers, establish a relationship between different sides and make your code more legible. I might…

I OS

6 min read

iOS VIPER: The most suitable design patterns that come together
iOS VIPER: The most suitable design patterns that come together
I OS

6 min read


Nov 4, 2022

iOS VIPER: Presenter x Interactor responsabilities in different situations

I think one of the most relevant questions regarding VIPER is about the separation of tasks between its layers. Its's clear enough, according to our previous article that View is only responsible of displaying our UI with proper content and build hierarchy; Router takes care of all context changes(popups, modals…

Viper Architecture

7 min read

iOS VIPER: Presenter x Interactor responsabilities in different situations
iOS VIPER: Presenter x Interactor responsabilities in different situations
Viper Architecture

7 min read


Nov 1, 2022

iOS: Principles of VIPER

I know, I have already written several articles regarding VIPER and other clean architectures, including which one is the best that fits your project, but since my first article was written 3 years ago, with all the grown knowledge I got across these years, it's time to write in deep…

I OS

13 min read

iOS: Principles of VIPER
iOS: Principles of VIPER
I OS

13 min read


Published in Better Programming

·Oct 14, 2022

Do You Know the Six Different Roles of an iOS Developer?

An in-depth guide into these fascinating areas — I have been developing iOS for the last five years and have worked for various companies — on different projects, architectures, teams, cultures, and approaches. As I have earned some experience in these huge environments, I decided to write this article for you, who is totally new to the corporative…

I OS

9 min read

Do You Know the Six Different Roles of an iOS Developer?
Do You Know the Six Different Roles of an iOS Developer?
I OS

9 min read

Pedro Alvarez

Pedro Alvarez

714 Followers

iOS developer- WWDC19 scholarship winner- Blockchain enthusiast

Following
  • Michał Ziobro

    Michał Ziobro

  • KD Knowledge Diet

    KD Knowledge Diet

  • Anupam Chugh

    Anupam Chugh

  • Jalal Al-Awqati

    Jalal Al-Awqati

  • Bruno Faganello

    Bruno Faganello

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech