Skip to content
View zydeico's full-sized avatar
💻
💻

Block or report zydeico

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
zydeico/README.md
import Foundation

enum Location: String, CustomStringConvertible {
    case mexico = "Mexico"
    
    var description: String {
        return rawValue
    }
}

enum Language: String, CustomStringConvertible {
    case spanish = "Spanish"
    case english = "English"
    
    var description: String {
        return rawValue
    }
    
    var spanishName: String {
        switch self {
        case .spanish:
            return "Español"
        case .english:
            return "Inglés"
        }
    }
}

class Daniel {
    
    let name = "Daniel Vázquez"
    let location: Location = .mexico
    let languages: [Language] = [.spanish, .english]
    let programmingLanguages = ["Swift", "Objective-C", "JavaScript", "Python", "TypeScript", "Kotlin", "Java"]
    let frameworks = ["NodeJS", "Django", "SwiftUI", "VueJS", "ReactJS", "NextJS", "JetPack Compose"]
    let cloudStack = ["AWS", "Google Cloud Platform", "Azure"]
    let databasesStack = ["NoSQL", "SQL", "PostgreSQL", "MongoDB"]
    let markup = ["HTML", "CSS"]
    let introduction = "Hello world! I'm a software engineer. What are your superpowers?"
    let skills = ["Mobile developer", "Backend developer", "AI & ML researcher"]
    private let reachMe = "LinkedIn: https://www.linkedin.com/in/jdanvz/"
    
    func details() -> String {
        let mirror = Mirror(reflecting: self)
        let details = mirror.children.compactMap { child -> String? in
            guard let label = child.label, label != "reachMe" else { return nil }
            
            let value: String
            if label == "languages" {
                value = (child.value as? [Language])?.map { $0.spanishName }.joined(separator: ", ") ?? ""
            } else if let array = child.value as? [CustomStringConvertible] {
                value = "[\(array.map { $0.description }.joined(separator: ", "))]"
            } else {
                value = String(describing: child.value)
            }
            
            return "\(label.capitalized): \(value)"
        }.joined(separator: "\n")
        
        return details + "\n\(reachMe)\n"
    }
}

print(Daniel().details())

Pinned Loading

  1. DamascenoRafael/reminders-menubar DamascenoRafael/reminders-menubar Public

    Simple macOS menu bar application to view and interact with reminders. Developed with SwiftUI and using Apple Reminders as a source.

    Swift 2.5k 112

  2. POST POST Public

    Web API client

    Swift

  3. ADNavigationBar ADNavigationBar Public

    Add a navigation bar in your iOS app and re-use components while you develop amazing features.

    Swift

  4. FakerJob FakerJob Public

    Demonstrating how to move the mouse using python

    Python

  5. Blockchain Blockchain Public

    Small blockchain project for know more about this technology and their implementations

    Python

  6. AndroidRansomware AndroidRansomware Public

    Android Ransomware for study case

    Java 1 1