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())
💻
Apple platforms engineer | Software Engineer | Gamer | Hacker | CEO @Donut-Consulting | CTO @OneClick-Dental
- México
-
08:07
(UTC -06:00) - https://jdanvz.netlify.app/
- @jdanvz
Highlights
Pinned Loading
-
DamascenoRafael/reminders-menubar
DamascenoRafael/reminders-menubar PublicSimple macOS menu bar application to view and interact with reminders. Developed with SwiftUI and using Apple Reminders as a source.
-
-
ADNavigationBar
ADNavigationBar PublicAdd a navigation bar in your iOS app and re-use components while you develop amazing features.
Swift
-
-
Blockchain
Blockchain PublicSmall blockchain project for know more about this technology and their implementations
Python
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.