نوشته‌های ترمینالی
2.66K subscribers
425 photos
12 videos
32 files
2.25K links
Download Telegram
درمورد Go به نظرم زیبا بود:
All the complexity that doesn't live in the language now lives in your codebase. All the invariants you don't have to spell out using types, you now have to spell out using code: the signal-to-noise ratio of your (very large) codebases is extremely poor.


https://fasterthanli.me/articles/lies-we-tell-ourselves-to-keep-using-golang
🔥3😱1
این برنامه نویس ها که میگن تو پایتون از map و filter استفاده نکنید و خیلی فانکشناله و به جاش list comprehension استفاده کنید
میدونن خود list comprehension از کجا اومده؟
از هسکل!
👍5😁3
مجموعه ابزار expect برای unix که با tcl نوشته شده:

https://www2.lib.uchicago.edu/keith/tcl-course/topics/expect.html
نوشته‌های ترمینالی
مجموعه ابزار expect برای unix که با tcl نوشته شده: https://www2.lib.uchicago.edu/keith/tcl-course/topics/expect.html
حالا به چه درد میخوره؟
اینکه بتونین یه برنامه interactive رو مثل یه برنامه batch معمولی تست/خودکارسازی کنید.

Good Unix programs are written as tools, and are meant to be programmed with. The primary mechanism for hooking tools together is the pipe, combined with the standard input / standard output filter model (though pipes can also work with more file descriptors). However, there is a class of Unix programs that can't be hooked together this way: programs which talk directly to a terminal device (i.e., interactive programs).


خوندن ویکیپدیاش هم خالی از لطف نیست:
https://en.wikipedia.org/wiki/Expect
روی این یه فریم ورک تست هم اومده که تست هایی که با expect نوشتیم رو اجرا کنه
به اسم Dejagnu
اموزش خوب خیلی سخت ازش پیدا میشه.

این دو تا رو داشته باشید:
اموزش pdf مختصر (و تا حدی مفید):
https://web.archive.org/web/20120322145747/https://www.kalycito.com/documents/Quick_Start_DejaGNU.pdf

آموزش خود gnu در قالب یه فایل پیوسته و قابل خوندن (فایل htmlش سخته واقعا هی جا به جا بشی)
https://www.gnu.org/software/dejagnu/manual/index.html


اینم توضیحات خوبی داده:
https://www.math.utah.edu/docs/info/dejagnu_1.html
آموزش/توضیح یک سری دستور لینوکس


https://github.com/arm-on/linuxessentials


نه به درد cheat sheet میخوره نه آموزش،
بیشتر اینطوریه که از روش بخونید ببینید کدوما رو بلد نیستید برید یاد بگیرید چون چیزای خوبی رو انتخاب کرده و پوشش داده
👍1
نوشته‌های ترمینالی
برای آشنایی اولیه با ترمینال لینوکس این دستورات رو پیشنهاد میکنم یاد بگیرید https://www.hostinger.com/tutorials/linux-commands
اموزش لینوکس زیاد گذاشتم تو چنل احتمالا
اما این که الان می‌ذارم فارسی و تا حد خوبی دقیق و تازه‌کار راه اندازه.
https://raw.githubusercontent.com/saharshaker/DanceWithLinux/master/Dance%20with%20Linux%2011.22.pdf


از کلیات لینوکس و چراییش میگه و درمورد shell و اصول خیلی اولیه از اسکریپت نویسی به زبون جالب و ساده


صفحه توضیح کتاب هم اینجاست:
saharshaker.com/dance-with-linux/


(دقت داشته باشید که این کتاب آزاد منتشر شده و شما هم می‌تونید shareش کنید)
👍4
Forwarded from Programming Resources via @like
Static web publishing for Front-End Developers. Simple, single-command web publishing. Publish HTML, CSS, and JS for free, without leaving the command line.
با این برنامه که به سادگی توی ترمینال نصب میشه میتونید با یه کامند ساده پروژه‌تون که static عه و شامل html و css و js میشه رو به راحتی روی یه دامنه که به surge.sh ختم میشه بیارین بالا.

#static #web #deploy #publish #frontend #front #end #front-end‌ #command #cli #terminal
@pythony

https://surge.sh
👍2
جزو زیباترین مطالبی که خوندم:
مقایسه جنریک های راسط و cpp
https://www.tangramvision.com/blog/c-rust-generics-and-specialization

یه نکته جالبش:
مبحث specialization توی template های cpp

یعنی اینکه یه تایپ خاص می‌تونه یه پیاده سازی مشخص داشته باشه به جای پیاده سازی عمومی.
مثلا vector<bool> جوری پیاده سازی شده که هر المنت یه بیت بگیره به جای یه بایت که توی ارایه میگرفت.
داک:
https://en.cppreference.com/w/cpp/container/vector_bool
Forwarded from Pi Developer
نویسه جدید: تبدیل کردن مسائل به یکدیگر

https://heydaris.com/fa/blog/reduction

توی این نویسه با مفهوم Reduction و مفهوم Oracle آشنا می‌شیم و خیلی کوتاه و مختصر به کاربردهاشون می‌پردازیم.

ممنون میشم اگر به اشتراک بذارید.
👍2