# יוני ויפתח - ככה לא כותבים קוד

- Speaker: 
- Event: [Reversim Summit 2022](/wiki/years/2022.md)
- Video: https://www.youtube.com/watch?v=OjA5sxDzz0Y
- Transcript: [/transcripts/2022/46-OjA5sxDzz0Y.md](/transcripts/2022/46-OjA5sxDzz0Y.md)
- Language: Hebrew · Type: ignite · Level: general
- Topics: [Software Engineering](/wiki/topics/software-engineering.md), [Technical Debt](/wiki/topics/technical-debt.md), [Architecture](/wiki/topics/architecture.md), [Soft Skills](/wiki/topics/soft-skills.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

This talk is a musical performance and humorous critique of common anti-patterns and bad habits in software development. Through song, the speaker addresses issues such as excessive code duplication, bad copy-pasting, over-clever one-liners that break functionality, and poor naming conventions. The audience learns to recognize these everyday coding mistakes and is encouraged to write cleaner, more maintainable code.

## Key points

- [0:11](https://www.youtube.com/watch?v=OjA5sxDzz0Y&t=11s) The speaker highlights the frustration of seeing duplicate code, excessive copy-pasting, and messy codebases.
- [1:27](https://www.youtube.com/watch?v=OjA5sxDzz0Y&t=87s) The speaker points out the danger of trying to be too clever with overly condensed one-liner refactors that ultimately break functionality.
- [2:39](https://www.youtube.com/watch?v=OjA5sxDzz0Y&t=159s) The song continues with a humorous chant emphasizing the core theme that this is not how code should be written.
- [4:04](https://www.youtube.com/watch?v=OjA5sxDzz0Y&t=244s) The performance concludes with interactive calls involving different seniority levels in the audience chanting the main chorus.

## Takeaways

- Avoid excessive copy-pasting and code duplication across your codebase.
- Do not sacrifice code readability and correctness just to write a shorter one-liner.
- Use meaningful names instead of generic placeholders like strings.

## Questions this talk answers

- How can developers identify and eliminate code duplication effectively?
- Why do overly clever one-liners often cause production bugs?
- What are some best practices for maintaining readable variable and function names?

## Tags

anti-patterns, clean code, code quality, humor, refactoring
