Skip to content

Instantly share code, notes, and snippets.

View matiasdim's full-sized avatar

Matías matiasdim

View GitHub Profile
@matiasdim
matiasdim / SingleResponsability.swift
Created December 2, 2020 20:22
Single-Responsability
class Employee {
let name: String
let emailAddress: EmailAddress
init(name: String, emailAddress: EmailAddress) {
self.name = name
self.emailAddress = emailAddress
}
func getInfo() -> String {
@matiasdim
matiasdim / SingleResponsability.swift
Last active December 2, 2020 20:22
Single-Responsability(Broken)
class Employee {
let name: String
let email: String
init(_ name: String, _ email: String) {
self.name = name
self.email = email
}
func getInfo() -> String {
@matiasdim
matiasdim / test.swift
Created December 2, 2020 15:14
Swift gist test
let test = "Test"
print("test")
def nombre_funcion(usuario)
@usuario = usuario
mail to: usuario.email, subject: 'Bienvenido.’
end
def nombre_funcion(usuario)
@usuario = usuario
mail to: usuario.email, subject: 'Bienvenido.’
end