I'm here to blend code with a sprinkle of fun. Hereโs a bit about me:
type Mood = 'excited' | 'chilled' | 'tired';
interface WorkLifeBalance {
task: string;
mood?: Mood;
}
const funEmojis: Record<Mood, string> = {
excited: '๐',
chilled: '๐',
tired: '๐ด'
};
const professionalAdvice: Record<Mood, string> = {
excited: "Awesome! Keep that energy going but stay sharp.",
chilled: "Nice! Remember to keep the momentum going.",
tired: "Take a break, recharge, and come back with fresh eyes."
};
function workLifeBalance({ task, mood = 'chilled' }: WorkLifeBalance): string {
if (!funEmojis[mood]) {
return "Oops! I think there's a mood typo. Try 'excited', 'chilled', or 'tired'.";
}
return `Task at hand: ${task} ${funEmojis[mood]}.\nAdvice: ${professionalAdvice[mood]}`;
}
// Example usage
const message = workLifeBalance({ task: "Refactor my latest web project", mood: "excited" });
console.log(message);
๐ฏ Coding Enthusiast: I write clean code when the stars align. Otherwise, embrace the chaos.
โ๏ธ Chess Lover: If my code is messy, at least my chess game is strategic.
๐ Web Developer: Check out my work and about 'me' at drasticcoder.in.
If Iโm not at the keyboard, Iโm probably analyzing my chess game or plotting my next coding project.
Feel free to reach out if you share similar interests or just want to chat about code or chess!