Skip to content

DrasticCoder/DrasticCoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Hello, World! 🌍
I'm Deep - aka [DrasticCoder] 👋

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);

About Me

🎯 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.

Fun Fact

If I’m not at the keyboard, I’m probably analyzing my chess game or plotting my next coding project.

Let’s Connect

Feel free to reach out if you share similar interests or just want to chat about code or chess!

LinkedIn    Twitter    Mail

Github Profile Views

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors