Open in app

Sign In

Write

Sign In

Pedro Alvarez
Pedro Alvarez

769 Followers

Home

Lists

About

Mar 13

Combine: Reimplementing the URLSession `dataTask` Publisher in 3 different ways

This article focus on providing you some possible implementations of a Publisher to the URLSession API request. In Combine, a Publisher is simply an instance that emits values in an asynchronous way. As we described in this past article. …

Swift

4 min read

Combine: Reimplementing the URLSession `dataTask` Publisher in three different ways
Combine: Reimplementing the URLSession `dataTask` Publisher in three different ways
Swift

4 min read


Published in Better Programming

·Feb 21

Implementing Device Binding in iOS Applications

Bump up your app’s security — Sometimes, logging users into your app with their e-mail and password is enough for security purposes. You need a way of authenticating the user, so it becomes impossible for someone else to enter their account. …

IOS

4 min read

Implementing Device Binding in iOS Applications
Implementing Device Binding in iOS Applications
IOS

4 min read


Feb 5

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…

IOS

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
IOS

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. …

IOS

6 min read

Implementing a Custom NotificationCenter Efficiently in iOS
Implementing a Custom NotificationCenter Efficiently in iOS
IOS

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…

IOS

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?
IOS

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…

IOS

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
IOS

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. …

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…

IOS

6 min read

iOS VIPER: The most suitable design patterns that come together
iOS VIPER: The most suitable design patterns that come together
IOS

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

Pedro Alvarez

Pedro Alvarez

769 Followers

iOS developer- WWDC19 scholarship winner- Blockchain enthusiast

Following
  • KD Knowledge Diet

    KD Knowledge Diet

  • ShreeThaanu Raveendran

    ShreeThaanu Raveendran

  • Bel Martins

    Bel Martins

  • Trey Huffine

    Trey Huffine

  • Millie Sturgeon

    Millie Sturgeon

See all (38)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech