Facebook Pixel
Searching...
فارسی
EnglishEnglish
EspañolSpanish
简体中文Chinese
FrançaisFrench
DeutschGerman
日本語Japanese
PortuguêsPortuguese
ItalianoItalian
한국어Korean
РусскийRussian
NederlandsDutch
العربيةArabic
PolskiPolish
हिन्दीHindi
Tiếng ViệtVietnamese
SvenskaSwedish
ΕλληνικάGreek
TürkçeTurkish
ไทยThai
ČeštinaCzech
RomânăRomanian
MagyarHungarian
УкраїнськаUkrainian
Bahasa IndonesiaIndonesian
DanskDanish
SuomiFinnish
БългарскиBulgarian
עבריתHebrew
NorskNorwegian
HrvatskiCroatian
CatalàCatalan
SlovenčinaSlovak
LietuviųLithuanian
SlovenščinaSlovenian
СрпскиSerbian
EestiEstonian
LatviešuLatvian
فارسیPersian
മലയാളംMalayalam
தமிழ்Tamil
اردوUrdu
The Clean Coder

The Clean Coder

A Code of Conduct for Professional Programmers
توسط Robert C. Martin 2011 210 صفحات
4.26
9k+ امتیازها
گوش دادن
گوش دادن

نکات کلیدی

1. حرفه‌ای‌گری در توسعه نرم‌افزار مستلزم پذیرش مسئولیت و گفتن "نه" است

"حرفه‌ای‌ها حقیقت را به قدرت می‌گویند. حرفه‌ای‌ها شجاعت گفتن نه به مدیران خود را دارند."

پذیرش مسئولیت در قلب حرفه‌ای‌گری در توسعه نرم‌افزار قرار دارد. این به معنای پذیرش اشتباهات، انجام تعهدات و ارائه کار با کیفیت بالا است. حرفه‌ای‌ها درک می‌کنند که اقداماتشان پیامدهایی دارد و آماده‌اند که مسئولیت آن‌ها را بپذیرند.

گفتن "نه" نیز جنبه‌ای مهم از حرفه‌ای‌گری است. این شامل:

  • رد کردن مهلت‌های غیرواقعی
  • مقابله با روش‌های ضعیف
  • امتناع از سازش بر سر کیفیت
  • اجتناب از تعهد بیش از حد

حرفه‌ای‌ها تشخیص می‌دهند که گفتن "نه" در مواقع ضروری، هم خودشان و هم تیمشان را از شکست‌های احتمالی محافظت می‌کند و یکپارچگی کارشان را حفظ می‌کند.

2. توسعه مبتنی بر تست (TDD) برای تولید کد با کیفیت بالا ضروری است

"هیئت منصفه تصمیم گرفته است. بحث به پایان رسیده است. TDD کار می‌کند."

مزایای TDD شامل:

  • بهبود کیفیت کد
  • کاهش نرخ نقص‌ها
  • طراحی و معماری بهتر
  • افزایش اعتماد به تغییرات کد

TDD شامل نوشتن تست‌ها قبل از نوشتن کد واقعی است. این رویکرد توسعه‌دهندگان را مجبور می‌کند تا قبل از پیاده‌سازی به طراحی و عملکرد کد خود فکر کنند، که منجر به کدی تمیزتر، ماژولارتر و قابل نگهداری‌تر می‌شود.

اجرای TDD نیاز به انضباط و تمرین دارد. ممکن است توسعه اولیه را کند کند، اما در درازمدت با کاهش باگ‌ها، بهبود کیفیت کد و آسان‌تر کردن بازسازی و نگهداری کد، سودمند است.

3. مدیریت زمان مؤثر و تمرکز برای بهره‌وری حیاتی است

"برنامه‌نویسی یک تمرین فکری است که نیاز به دوره‌های طولانی تمرکز و توجه دارد."

مدیریت مؤثر زمان برای توسعه‌دهندگان نرم‌افزار حیاتی است. این شامل:

  • اولویت‌بندی وظایف
  • اجتناب از حواس‌پرتی‌ها
  • استفاده از تکنیک‌هایی مانند روش پومودورو
  • گرفتن استراحت‌های منظم برای تجدید قوا

حفظ تمرکز نیز به همان اندازه مهم است. توسعه‌دهندگان باید ساعات اوج بهره‌وری خود را بشناسند و کار خود را بر این اساس سازماندهی کنند. ایجاد محیطی که برای کار عمیق مناسب باشد و به حداقل رساندن وقفه‌ها در این دوره‌ها ضروری است.

حرفه‌ای‌ها همچنین اهمیت تعادل کار و زندگی را درک می‌کنند و با مدیریت سطح انرژی خود و اختصاص زمان برای فعالیت‌های شخصی و استراحت، از فرسودگی جلوگیری می‌کنند.

4. تخمین‌زنی مهارتی است که نیاز به تمرین و ارتباط واضح دارد

"تخمین یک حدس است. هیچ تعهدی ضمنی نیست. هیچ وعده‌ای داده نمی‌شود."

بهبود مهارت‌های تخمین‌زنی شامل:

  • شکستن وظایف به قطعات کوچکتر و قابل مدیریت‌تر
  • استفاده از داده‌های تاریخی و تجربیات گذشته
  • در نظر گرفتن ریسک‌ها و عدم قطعیت‌های احتمالی
  • مرور و تنظیم منظم تخمین‌ها

حرفه‌ای‌ها درک می‌کنند که تخمین‌ها تعهد نیستند. آن‌ها به وضوح درباره عدم قطعیت‌های موجود ارتباط برقرار می‌کنند و در صورت لزوم محدوده‌ها را به جای اعداد واحد ارائه می‌دهند.

ارتباط مؤثر تخمین‌ها حیاتی است. این شامل توضیح فرضیات پشت تخمین، ارائه زمینه و به‌روزرسانی ذینفعان در صورت تغییر شرایط است. حرفه‌ای‌ها در برابر فشار برای ارائه تخمین‌های غیرواقعی یا تعهد به مهلت‌هایی که می‌دانند غیرممکن است، مقاومت می‌کنند.

5. مدیریت فشار به صورت حرفه‌ای شامل حفظ آرامش و تکیه بر انضباط‌ها است

"توسعه‌دهنده حرفه‌ای در زیر فشار آرام و قاطع است."

حفظ آرامش تحت فشار نشانه‌ای از حرفه‌ای‌گری است. این شامل:

  • حفظ دیدگاه
  • تمرکز بر راه‌حل‌ها به جای مشکلات
  • ارتباط واضح با اعضای تیم و ذینفعان
  • اجتناب از وسوسه برای کاهش کیفیت یا سازش

حرفه‌ای‌ها در زمان فشار بر انضباط‌ها و بهترین شیوه‌های خود تکیه می‌کنند. آن‌ها درک می‌کنند که رها کردن شیوه‌های خوب در زمان استرس اغلب منجر به مشکلات بیشتری در درازمدت می‌شود.

مدیریت انتظارات نیز در مواجهه با فشار حیاتی است. این شامل صادق بودن درباره چالش‌ها، ارائه به‌روزرسانی‌های منظم و پیشنهاد راه‌حل‌های واقع‌بینانه به جای وعده‌هایی است که نمی‌توان به آن‌ها عمل کرد.

6. همکاری و کار تیمی برای توسعه موفق نرم‌افزار اساسی است

"برنامه‌نویسی همه چیز درباره کار با مردم است."

همکاری مؤثر شامل:

  • ارتباط واضح
  • گوش دادن فعال
  • احترام به دیدگاه‌های متنوع
  • تمایل به سازش و یافتن راه‌حل‌های مشترک

حرفه‌ای‌ها درک می‌کنند که توسعه نرم‌افزار یک ورزش تیمی است. آن‌ها به طور فعال برای شکستن سیلوها، به اشتراک‌گذاری دانش و حمایت از همکاران خود کار می‌کنند.

برنامه‌نویسی جفتی و بازبینی کد از روش‌های ارزشمندی هستند که همکاری را ترویج می‌دهند و کیفیت کد را بهبود می‌بخشند. حرفه‌ای‌ها به بازخورد باز هستند و آن را به عنوان فرصتی برای رشد می‌بینند نه انتقاد.

7. یادگیری و تمرین مداوم برای رشد حرفه‌ای حیاتی است

"حرفه‌ای‌ها تمرین می‌کنند. حرفه‌ای‌های واقعی سخت کار می‌کنند تا مهارت‌های خود را تیز و آماده نگه دارند."

یادگیری مداوم در زمینه به سرعت در حال تحول توسعه نرم‌افزار ضروری است. این شامل:

  • به‌روز ماندن با فناوری‌ها و بهترین شیوه‌های جدید
  • خواندن کتاب‌ها و مقالات
  • شرکت در کنفرانس‌ها و کارگاه‌ها
  • آزمایش با ابزارها و تکنیک‌های جدید

تمرین عمدی نیز به همان اندازه مهم است. این شامل:

  • کار بر روی پروژه‌های جانبی
  • شرکت در چالش‌های کدنویسی
  • مشارکت در پروژه‌های منبع باز
  • مرور و بهبود منظم مهارت‌های بنیادی

حرفه‌ای‌ها درک می‌کنند که یادگیری یک سفر مادام‌العمر است و مسئولیت رشد و توسعه خود را بر عهده می‌گیرند.

8. تست پذیرش تضمین می‌کند که ارتباطات نیازمندی‌ها واضح است

"هدف از تست‌های پذیرش، ارتباط، وضوح و دقت است."

مزایای تست پذیرش شامل:

  • درک واضح‌تر از نیازمندی‌ها
  • کاهش سوءتفاهم‌ها بین توسعه‌دهندگان و ذینفعان
  • شناسایی زودهنگام مسائل و ناسازگاری‌ها
  • بهبود کیفیت کلی نرم‌افزار

تست‌های پذیرش به عنوان یک مشخصات رسمی از نحوه رفتار سیستم عمل می‌کنند. آن‌ها در همکاری بین توسعه‌دهندگان، تست‌کنندگان و ذینفعان تجاری نوشته می‌شوند تا اطمینان حاصل شود که درک مشترکی از نیازمندی‌ها وجود دارد.

خودکارسازی تست‌های پذیرش امکان بازخورد سریع‌تر را فراهم می‌کند و به شناسایی زودهنگام بازگشت‌ها کمک می‌کند. حرفه‌ای‌ها از تست پذیرش خودکار حمایت می‌کنند و آن را به عنوان بخشی از فرآیند توسعه خود پیاده‌سازی می‌کنند.

9. راهنمایی و مهارت‌ورزی برای توسعه حرفه‌ای‌های ماهر کلیدی است

"مدرسه می‌تواند نظریه برنامه‌نویسی کامپیوتر را آموزش دهد. اما مدرسه نمی‌تواند و نمی‌تواند انضباط، تمرین و مهارت یک صنعتگر بودن را آموزش دهد."

راهنمایی نقش مهمی در توسعه حرفه‌ای‌های ماهر ایفا می‌کند. این شامل:

  • به اشتراک‌گذاری دانش و تجربه
  • ارائه راهنمایی و بازخورد
  • به چالش کشیدن راهنمایی‌شوندگان برای رشد و بهبود
  • مدل‌سازی رفتار و شیوه‌های حرفه‌ای

مهارت‌ورزی در توسعه نرم‌افزار بیش از مهارت‌های فنی است. این شامل:

  • تعهد به کیفیت
  • بهبود مستمر
  • رفتار اخلاقی
  • افتخار به کار خود

حرفه‌ای‌ها مسئولیت خود را در راهنمایی و هدایت توسعه‌دهندگان کم‌تجربه‌تر می‌شناسند و به پرورش نسل بعدی از متخصصان ماهر و حفظ استانداردهای بالا در صنعت کمک می‌کنند.

آخرین به‌روزرسانی::

FAQ

What's "The Clean Coder" about?

  • Professionalism in Programming: "The Clean Coder" by Robert C. Martin is a guide to professional conduct for software developers, emphasizing the importance of professionalism in the field.
  • Code of Conduct: It outlines a code of conduct for programmers, focusing on responsibility, accountability, and ethical behavior in software development.
  • Practical Advice: The book provides practical advice on how to handle common challenges faced by programmers, such as dealing with pressure, managing time, and saying no.
  • Improving Software Craftsmanship: It aims to improve the craft of software development by encouraging developers to adopt disciplined practices and continuous learning.

Why should I read "The Clean Coder"?

  • Enhance Professionalism: Reading this book can help you enhance your professionalism and improve your reputation as a reliable software developer.
  • Practical Guidance: It offers practical guidance on handling real-world challenges in software development, making it a valuable resource for both new and experienced programmers.
  • Ethical Framework: The book provides an ethical framework for making decisions, which is crucial in maintaining integrity and trust in the workplace.
  • Career Growth: By adopting the practices and principles outlined in the book, you can advance your career and contribute positively to your team and organization.

What are the key takeaways of "The Clean Coder"?

  • Responsibility and Accountability: Programmers should take responsibility for their work and be accountable for their mistakes, striving to deliver high-quality software.
  • Saying No: Learning to say no is crucial when faced with unrealistic demands or deadlines, ensuring that commitments are realistic and achievable.
  • Continuous Learning: Developers should continuously learn and practice their craft to stay relevant and improve their skills.
  • Testing and Clean Code: Emphasizes the importance of writing clean, maintainable code and using test-driven development to ensure software quality.

What is the "do no harm" approach in "The Clean Coder"?

  • Avoiding Bugs: Programmers should strive to avoid introducing bugs into the software, as they can cause significant harm to the project and the business.
  • Testing Thoroughly: Code should be thoroughly tested to ensure it works as intended, with automated tests providing a safety net for changes.
  • Maintaining Structure: The structure of the code should be maintained to ensure it remains flexible and easy to change, preventing future issues.
  • Continuous Improvement: Developers should continuously refactor and improve the codebase to prevent it from becoming rigid and difficult to work with.

How does "The Clean Coder" suggest handling pressure?

  • Avoiding Pressure: The book advises avoiding pressure by managing commitments carefully and maintaining clean code to prevent last-minute crises.
  • Staying Calm: Under pressure, developers should remain calm and rely on their disciplines and training to guide them through challenging situations.
  • Effective Communication: Communicating effectively with the team and stakeholders can help manage expectations and reduce pressure.
  • Seeking Help: When under pressure, seeking help from colleagues and collaborating can provide support and lead to better solutions.

What is the role of acceptance testing in "The Clean Coder"?

  • Defining Done: Acceptance tests help define what "done" means for a feature, ensuring that all parties agree on the requirements and expectations.
  • Automated Tests: These tests should be automated to provide a reliable and repeatable way to verify that the software meets the specified requirements.
  • Collaboration: Acceptance tests are created through collaboration between developers, testers, and stakeholders, ensuring that all perspectives are considered.
  • Reducing Ambiguity: By specifying requirements in the form of tests, ambiguity is reduced, leading to clearer communication and fewer misunderstandings.

What does "The Clean Coder" say about saying no?

  • Importance of Saying No: Saying no is crucial when faced with unrealistic demands or deadlines, protecting the quality of the work and the well-being of the developer.
  • Professional Responsibility: It is a professional responsibility to push back against requests that cannot be reasonably fulfilled without compromising standards.
  • Negotiation: Saying no should be part of a negotiation process to find a mutually agreeable solution that meets the needs of the business and the capabilities of the team.
  • Avoiding Overcommitment: By saying no when necessary, developers can avoid overcommitment and ensure they can deliver on their promises.

How does "The Clean Coder" define professionalism in programming?

  • Taking Responsibility: Professionalism involves taking responsibility for one's work and being accountable for the outcomes, both good and bad.
  • Continuous Improvement: Professionals continuously seek to improve their skills and knowledge, staying current with industry trends and best practices.
  • Ethical Behavior: Ethical behavior is a cornerstone of professionalism, ensuring that developers act with integrity and honesty in all their dealings.
  • Commitment to Quality: Professionals are committed to delivering high-quality software, adhering to best practices and standards to achieve this goal.

What is the significance of test-driven development (TDD) in "The Clean Coder"?

  • Ensuring Quality: TDD is a discipline that helps ensure the quality of the software by writing tests before the code, guiding development.
  • Confidence in Code: By having a suite of tests, developers can have confidence that their code works as intended and that changes won't introduce new bugs.
  • Design Influence: TDD influences design by encouraging decoupled and testable code, leading to better architecture and maintainability.
  • Professional Practice: TDD is presented as a professional practice that developers should adopt to improve their craft and deliver reliable software.

What are the best quotes from "The Clean Coder" and what do they mean?

  • "Professionalism is all about taking responsibility." This quote emphasizes the importance of being accountable for one's work and actions as a software developer.
  • "QA should find nothing." This highlights the goal of developers to deliver software that is so well-tested and reliable that QA finds no issues.
  • "Saying yes to dropping our professional disciplines is not the way to solve problems." This warns against compromising standards and practices in the face of pressure or deadlines.
  • "The only way to prove that your software is easy to change is to make easy changes to it." This underscores the importance of maintaining clean and flexible code that can be easily modified.

How does "The Clean Coder" address time management?

  • Prioritizing Tasks: Developers should prioritize tasks based on their importance and urgency, focusing on what delivers the most value.
  • Avoiding Meetings: Unnecessary meetings should be avoided to maximize productive time, with developers attending only those that are essential.
  • Using Techniques: Techniques like the Pomodoro Technique can help manage time effectively by breaking work into focused intervals.
  • Balancing Work and Life: Time management also involves balancing work with personal life, ensuring that developers maintain their well-being and avoid burnout.

What is the role of mentoring in "The Clean Coder"?

  • Guiding New Developers: Mentoring is crucial for guiding new developers, helping them learn best practices and develop their skills.
  • Sharing Knowledge: Experienced developers should share their knowledge and experience with less experienced colleagues to foster growth and development.
  • Building a Culture: Mentoring helps build a culture of learning and improvement within a team, encouraging continuous development.
  • Professional Responsibility: It is a professional responsibility for senior developers to mentor and support junior team members, contributing to the overall success of the team.

نقد و بررسی

4.26 از 5
میانگین از 9k+ امتیازات از Goodreads و Amazon.

کتاب کدنویس پاک نقدهای متفاوتی دریافت کرده است، بسیاری از خوانندگان از دیدگاه‌های آن در مورد توسعه نرم‌افزار حرفه‌ای تمجید می‌کنند. خوانندگان از حکایات و توصیه‌های نویسنده در مورد اخلاق کاری، تخمین و ارتباطات قدردانی می‌کنند. برخی کتاب را قدیمی یا در انتظاراتش افراطی می‌دانند، به‌ویژه در مورد ساعات کاری. منتقدان به داستان‌های تکراری و لحنی خودمحور اشاره می‌کنند. با وجود اختلاف‌نظرها، اکثر منتقدان آن را به‌عنوان منبعی ارزشمند برای برنامه‌نویسان حرفه‌ای آینده توصیه می‌کنند و بر اهمیت انضباط، مسئولیت‌پذیری و یادگیری مستمر تأکید می‌کنند.

درباره نویسنده

رابرت سیسیل مارتین، که به عمو باب معروف است، یک مهندس نرم‌افزار و مشاور برجسته است. او از روش‌های توسعه‌ی چابک حمایت می‌کند و رئیس شرکت آبجکت منتور اینک است. حرفه‌ی مارتین دهه‌ها را در بر می‌گیرد و در این مدت با مشتریان جهانی در زمینه‌ی طراحی شیءگرا، الگوها، UML و روش‌های چابک مشاوره کرده است. او از سال 1996 تا 1999 به عنوان سردبیر مجله‌ی C++ Report فعالیت داشته است. مارتین به عنوان یک چهره‌ی برجسته در جامعه‌ی توسعه‌ی نرم‌افزار، سخنران محبوبی در کنفرانس‌ها و نمایشگاه‌های بین‌المللی است. تخصص و تأثیر طولانی‌مدت او در این حوزه، او را به صدایی محترم در زمینه‌ی مهندسی نرم‌افزار و توسعه‌ی حرفه‌ای تبدیل کرده است.

Other books by Robert C. Martin

0:00
-0:00
1x
Dan
Andrew
Michelle
Lauren
Select Speed
1.0×
+
200 words per minute
Create a free account to unlock:
Requests: Request new book summaries
Bookmarks: Save your favorite books
History: Revisit books later
Ratings: Rate books & see your ratings
Try Full Access for 7 Days
Listen, bookmark, and more
Compare Features Free Pro
📖 Read Summaries
All summaries are free to read in 40 languages
🎧 Listen to Summaries
Listen to unlimited summaries in 40 languages
❤️ Unlimited Bookmarks
Free users are limited to 10
📜 Unlimited History
Free users are limited to 10
Risk-Free Timeline
Today: Get Instant Access
Listen to full summaries of 73,530 books. That's 12,000+ hours of audio!
Day 4: Trial Reminder
We'll send you a notification that your trial is ending soon.
Day 7: Your subscription begins
You'll be charged on Feb 28,
cancel anytime before.
Consume 2.8x More Books
2.8x more books Listening Reading
Our users love us
50,000+ readers
"...I can 10x the number of books I can read..."
"...exceptionally accurate, engaging, and beautifully presented..."
"...better than any amazon review when I'm making a book-buying decision..."
Save 62%
Yearly
$119.88 $44.99/year
$3.75/mo
Monthly
$9.99/mo
Try Free & Unlock
7 days free, then $44.99/year. Cancel anytime.
Settings
Appearance
Black Friday Sale 🎉
$20 off Lifetime Access
$79.99 $59.99
Upgrade Now →