Ndeye Fatou Diop's Avatar

Ndeye Fatou Diop

@ndeyefatoudiop

Senior Frontend Engineer | 5+ years of experience I share tips to help overwhelmed junior frontend developers ๐ŸŽ‰ . Join for free ๐Ÿ‘‰ https://www.frontendjoy.com/subscribe

196
Followers
370
Following
910
Posts
30.10.2024
Joined
Posts Following

Latest posts by Ndeye Fatou Diop @ndeyefatoudiop

Youโ€™re not โ€œbehind.โ€

Youโ€™re exactly where someone whoโ€™s trying should be.

25.07.2025 07:00 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Writing bad code is part of writing better code.

Itโ€™s the only way you learn.

23.07.2025 07:00 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Writing code that runs is one level.

Writing code thatโ€™s easy to read is the next.

22.07.2025 07:00 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Dear junior dev,

One year of relentless practice will put you ahead of people who dabbled for five.

21.07.2025 07:00 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
const expensiveValue = useMemo(   () => compute(a, b),    [a] );

const expensiveValue = useMemo( () => compute(a, b), [a] );

What is wrong with this #react code?

20.07.2025 11:00 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

If your CSS doesnโ€™t work, add a bright border.

Debug visually. Old trick, still gold.

20.07.2025 07:00 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
const timestamp = Date.parse('2025-07-06'); console.log(timestamp); // e.g. 1751760000000

const timestamp = Date.parse('2025-07-06'); console.log(timestamp); // e.g. 1751760000000

JavaScript Tip ๐Ÿ’ก

Use ๐™ณ๐šŠ๐š๐šŽ.๐š™๐šŠ๐š›๐šœ๐šŽ() to convert a date string to a timestamp

19.07.2025 11:00 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Dear junior dev,

Itโ€™s better to write simple code you understand than clever code you donโ€™t.

19.07.2025 07:00 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
useEffect(() => {   const interval = setInterval(doStuff, 1000);   return clearInterval(interval); }, []);

useEffect(() => { const interval = setInterval(doStuff, 1000); return clearInterval(interval); }, []);

What is wrong with this #react code?

18.07.2025 11:00 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

You canโ€™t compare your progress to someone whoโ€™s been at it twice as long.

Stay in your lane.

18.07.2025 07:00 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
// Reloads the browser tab location.reload();

// Reloads the browser tab location.reload();

JavaScript Tip ๐Ÿ’ก

Use ๐š•๐š˜๐šŒ๐šŠ๐š๐š’๐š˜๐š—.๐š›๐šŽ๐š•๐š˜๐šŠ๐š()โ€‚to force reload the current page

17.07.2025 11:00 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Dear junior dev,

Stop trying to learn everything at once.

โ€ข Pick one thing.
โ€ข Go deep.

Thatโ€™s how you grow.

17.07.2025 07:00 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
const MyComponent = () => {   <div>Hello</div>; };

const MyComponent = () => { <div>Hello</div>; };

What is wrong with this #react code?

16.07.2025 11:00 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Most of software development is just figuring out why something doesnโ€™t work.

16.07.2025 07:00 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I love doing this. Great share ๐Ÿ™

15.07.2025 19:14 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

๐Ÿ’ฏ

15.07.2025 19:14 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Always happy to help ๐Ÿ™

15.07.2025 19:13 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
document.designMode = "on";

document.designMode = "on";

JavaScript Tip ๐Ÿ’ก

Use ๐š๐š˜๐šŒ๐šž๐š–๐šŽ๐š—๐š.๐š๐šŽ๐šœ๐š’๐š๐š—๐™ผ๐š˜๐š๐šŽโ€‚=โ€‚"๐š˜๐š—" to ๐—บ๐—ฎ๐—ธ๐—ฒ ๐—ฎ๐—ป๐˜† ๐˜„๐—ฒ๐—ฏ๐—ฝ๐—ฎ๐—ด๐—ฒ ๐—ฒ๐—ฑ๐—ถ๐˜๐—ฎ๐—ฏ๐—น๐—ฒ (great for quick mockups or demos)

15.07.2025 11:00 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Dear junior dev,

Googling/using AI tools isnโ€™t cheating.

Itโ€™s part of the job.

15.07.2025 07:00 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
useEffect(() => {   fetch('/api/user');   setLoaded(true); }, []);

useEffect(() => { fetch('/api/user'); setLoaded(true); }, []);

What is wrong with this #react code?

14.07.2025 11:00 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Promise.resolve(42).then(console.log); // 42

Promise.resolve(42).then(console.log); // 42

JavaScript Tip ๐Ÿ’ก

Use ๐™ฟ๐š›๐š˜๐š–๐š’๐šœ๐šŽ.๐š›๐šŽ๐šœ๐š˜๐š•๐šŸ๐šŽ(๐šŸ๐šŠ๐š•๐šž๐šŽ) and ๐™ฟ๐š›๐š˜๐š–๐š’๐šœ๐šŽ.๐š›๐šŽ๐š“๐šŽ๐šŒ๐š(๐šŽ๐š›๐š›๐š˜๐š›) to quickly create resolved or rejected promises.

13.07.2025 11:00 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Dear junior dev,

Youโ€™ll look back one day and be shocked at how far youโ€™ve come.

Keep going ๐Ÿ’ช.

13.07.2025 07:00 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
const MyComponent = () => {   const inputRef = useRef(null);    // ... some logic that uses inputRef      return <input ref={inputRef.current} />; };

const MyComponent = () => { const inputRef = useRef(null); // ... some logic that uses inputRef return <input ref={inputRef.current} />; };

What is wrong with this #react code?

12.07.2025 11:00 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Debugging is 80% of coding.

Once you accept that, everything gets easier.

12.07.2025 07:00 ๐Ÿ‘ 31 ๐Ÿ” 3 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 0
console.log(String.raw`Line1\nLine2`);  // => "Line1\nLine2" (no actual newline)

console.log(String.raw`Line1\nLine2`); // => "Line1\nLine2" (no actual newline)

JavaScript Tip ๐Ÿ’ก

Use ๐š‚๐š๐š›๐š’๐š—๐š.๐š›๐šŠ๐š  with template literals to output raw strings, ignoring escapes.

11.07.2025 11:00 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Dear junior dev,

You donโ€™t need more fancy tools.

You need more reps.

11.07.2025 07:00 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
const handleSubmit = () => {   setIsSubmitting(true);   if (isSubmitting) {     return;   }   sendData(); };

const handleSubmit = () => { setIsSubmitting(true); if (isSubmitting) { return; } sendData(); };

What is wrong with this #react code?

10.07.2025 11:00 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
FrontendJoy Learn how to become a Senior Frontend Engineer without a CS Degree or natural talent.

Most devs are stuck because they wait for a managerโ€™s roadmap.

It rarely comes.

Yesterday, 3,128 devs learned how to steer their careers.

Miss it?

Catch up here โ†“
www.frontendjoy.com/p/devs-own-...

10.07.2025 07:00 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

JavaScript Tip ๐Ÿ’ก

Use ๐™พ๐š‹๐š“๐šŽ๐šŒ๐š.๐šŽ๐š—๐š๐š›๐š’๐šŽ๐šœ()โ€‚+ ๐™ฐ๐š›๐š›๐šŠ๐šข.๐š๐š’๐š•๐š๐šŽ๐š›() to filter object properties

09.07.2025 11:00 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Dear junior dev,

The seniors you admire once panicked over a merge conflict too.

09.07.2025 07:00 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0