package main
import "fmt"
type Developer struct {
Name string
Role string
Country string
CurrentJob string
Hobbies []string
Goal string
}
func main() {
highlander := Developer{
Name: "Highlander",
Role: "Backend Developer",
Country: "Brazil",
CurrentJob: "Software Engineer SSr",
Hobbies: []string{"Exploring 'Go way' programming", "Building cool Go projects"},
Goal: "Software Architect",
}
for {
code(highlander)
}
}
func code(dev Developer) {
fmt.Printf("%s is coding...\n", dev.Name)
}
Kotlin
data class Developer(
val name: String,
val role: String,
val country: String,
val currentJob: String,
val hobbies: List<String>,
val goal: String
)
fun main() {
val highlander = Developer(
name = "Highlander",
role = "Backend Developer",
country = "Brazil",
currentJob = "Software Engineer SSr",
hobbies = listOf("Exploring OOP programming", "Building cool Kotlin projects"),
goal = "Software Architect"
)
while (true) {
code(highlander)
}
}
fun code(dev: Developer) {
println("${dev.name} is coding...")
}
Haskell
data Developer = Developer
{ name :: String
, role :: String
, country :: String
, currentJob :: String
, hobbies :: [String]
, goal :: String
}
code :: Developer -> IO ()
code dev = putStrLn $ name dev ++ " is coding..."
main :: IO ()
main = do
let highlander = Developer
{ name = "Highlander"
, role = "Backend Developer"
, country = "Brazil"
, currentJob = "Software Engineer SSr"
, hobbies = ["Exploring functional programming", "Building cool Haskell projects"]
, goal = "Software Architect"
}
let loop = do
code highlander
loop
loop
๐ Backend Developer from Brazil, Software Engineer SSr at Mercado Livre, and Haskell enthusiast on the side! I'm on the path to become a Software Architect and love creating Kotlin libs and personal projects in my spare time. ๐ฏ
Feel free to ask me about anything, I'm happy to help! ๐
My name is based on the movie Highlander (1986). There can be only one! โ๏ธ
- ๐ LinkedIn: Highlander Paiva
package main
import "fmt"
func main() {
myStack := []string{"Kotlin", "Go", "Haskell", "Java", "Spring"}
fmt.Printf("Highlander stacks: %s\n", strings.Join(myStack, ", "))
}
Kotlin
fun main() {
val myStack = listOf("Kotlin", "Go", "Haskell", "Java", "Spring")
println("Highlander stacks: ${myStack.joinToString(", ")}")
}
Haskell
import Data.List (intercalate)
main :: IO ()
main = do
let myStack = ["Kotlin", "Go", "Haskell", "Java", "Spring"]
putStrLn $ "Highlander stacks: " ++ intercalate ", " myStack
Keep exploring, learning, and having fun! ๐