Programming Language
These are the main programming languages I use for development tasks. I prefer these languages for its suitability to my current projects, while my secondary language offers additional capabilities for diverse needs.
Primary Programming Language
Kotlin
// Define
// Extension function
fun Int.years() = "$this years"
val language = "Kotlin"
val yearOfExperience = 5.years()
val introduction = "My primary programming language is $language"
val body = "I have been developing android apps" +
"using $language for $yearOfExperience"
val nextLine = "\n"
// Process
// High order function
val message: () -> String = {
// return
" $introduction. $nextLine $body."
}
// Print output
println(message())
My primary programming language is Kotlin.
I have been developing android apps using Kotlin for 5 years.
Secondary Programming Language
Java
My secondary programming language is Java.
I have been developing android apps using Java for 5 years.
public class Main {
// Define extension function
static String years(int years) {
return years + " years";
}
public static void main(String[] args) {
// Define variables
String language = "Java";
String yearOfExperience = years(5); // Corrected to 5 years
String introduction = "My secondary programming language is " + language + ".";
String body = "I have been developing android apps using " + language + " for " + yearOfExperience;
String nextLine = "\n";
// Define message
String message = introduction + "." + nextLine + body + ".";
// Print output
System.out.println(message);
}
}
Python
My secondary programming language is Python.
I have been using Python for my scripts relating to android for 1 year.
# Define
language = "Python"
yearOfExperience = "1 year"
introduction = f"My secondary programming language is {language}."
body = f"I have been using {language} for my scripts relating to android for {yearOfExperience}"
nextLine = "\n"
# Process
message = f"{introduction}.{nextLine}{body}."
# Print output
print(message)
Last modified: 07 March 2024