TGViewer
Go Casts | Systems & Agents 🚀 Go Casts | Systems & Agents 🚀 @gocasts · 9.92K subscribers
Post #709 3.92K
به شیوه Joe Armstrong بزرگ کد بنویسید.
برگرفته از کتاب Programming Erlang, Second Edition

برداشت اول: ترجیح میدم برنامه هارو کم کم بزرگشون کنم جای اینکه از اول به نوشتن یه برنامه خیلی بزرگ و جامع فکر کنم.
برداشت دوم: مزیت این روش اینه که immediate feedback میگرم از کدی که نوشتم و از اشتباهات بزرگی که بخواد حجم زیادی از کد رو تحت تاثیر قرار بده جلوگیری میشه.
برداشت سوم: سعی نمیکنم از قبل به ساختار برنامه و data structureهای مورد نیاز فکر کنم. حین برنامه کم کم میفهم م چی لازمه.
برداشت چهارم: یه ذره کد مینویسم٬ یه ذره تست ش میکنم. مجدد همین کارو تا جایی که لازمه ادامه میدم.


How I Write Programs
When I’m writing a program, my approach is to “write a bit” and then “test a bit.” I start with a small module with a few functions, and then I compile it and test it with a few commands in the shell. Once I’m happy with it, I write a few more functions, compile them, test them, and so on. Often I haven’t really decided what sort of data structures I’ll need in my program, and as I run small examples, I can see whether the data structures I have chosen are appropriate.
I tend to “grow” programs rather than think them out completely before writing them. This way I don’t tend to make large mistakes before I discover that things have gone wrong. Above all, it’s fun, I get immediate feedback, and I see whether my ideas work as soon as I have typed in the program.
Once I’ve figured out how to do something in the shell, I usually then go and write a makefile and some code that reproduces what I’ve learned in the shell.


@gocasts
  • 👍 51
  • ❤ 10
  • 🔥 1
More from @gocasts
  1. Oct 4, 2026از دیروز چند آیتم ظاهری در GoCasts به‌روز شده 🚀 اگه دقت کرده باشید، لوگو، اسم کانال و بیو…
  2. Oct 1, 2026اینم از عمو باب که تسلیم شد! کاری ندارم که با ایشون هم نظر بودید و هستید یا نه. به دور از…
  3. Oct 1, 2026ترکیب Sonnet 5.5 و Opus 5.5 این روزا خیلی خوب جواب میده. الگویی که برای من جواب داده اینه:…
  4. Sep 24, 2026این بهترین تجربه‌ای بود که تا حالا با یه agent داشتم. دیشب با تاخیر چند ساعته ایمیل هاستین…
  5. Sep 23, 2026بچه ها اگه تجربه software factory جدی داشتید توی شرکت و سازمان و محصول تون، بهم فیدبک بدید…
  6. Sep 23, 2026در مورد پست دیشب که در لینکدین منتشر شد لازمه این نکته رو اضافه کنم که https://lnkd.in/p/e…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →