نوشته‌های ترمینالی
2.74K subscribers
425 photos
12 videos
32 files
2.28K links
Download Telegram
کتاب‌خونه‌ی libuv
برای کارهای io در سیستم عامل های مختلف به شکل چند سکویی و آسنکرون
https://docs.libuv.org/en/v1.x/
چندریختی رو دوست دارید؟
حالت عمومیت‌یافته‌ش رو هم ببینید. (البته تو زبون های زیادی ساپورت نمیشه ولی جالبه بدونید که هست، اگر یه بار نبودش رو احساس کردید)
https://en.wikipedia.org/wiki/Multiple_dispatch


و این مطلب
https://towardsdatascience.com/multiple-dispatch-a-powerful-programming-paradigm-8bc8fcd2c73a
Forwarded from Twist in My Sobriety
تلگرام امنیت و آرامشِ خونه‌ست
توییتر لذتِ دور دوره
واتساپ سرویس بهداشتیه، نه می‌شه پاکش کرد نه آدم دلش میخواد توش بمونه
متاسفانه تو انتقاد کردن سخت‌گیرم.
اگه توی زبانی که برنامه نویسی میکنید مجبورید سمی‌کالن بگذارید، به این فکر کنید که حتی توی اسمبلی هم سمی کالن اختیاریه.
اکسپشن رو خفه نکنید.
اگه میخواید اصلا catchش نکنید.

(توضیح: خفه کردن = بلوک catch خالی باشه.)
Forwarded from Geeky Career (Mohammad Moallemi)
#linux #terminal #bash

How to get process PIDs?
pgrep <process_name>
e.g.
pgrep python

pgrep is a command-line utility that allows you to find the process IDs of a running program based on given criteria. It can be a full or partial process name, a user running the process, or other attributes.

The pgrep command is a part of the procps (or procps-ng) package, which is pre-installed on nearly all Linux distributions.

https://linuxize.com/post/pgrep-command-in-linux/
عملگر ؟: در زبان های برنامه نویسی مختلف
https://en.wikipedia.org/wiki/%3F:
نوشته‌های ترمینالی
😂 Sticker
متاسفانه به دلیل کمبود مطلب، به مطالب زرد رو آوردم.
به قابلیت های vim توی ادیتور تلگرام نیاز دارم. 😐
اگه مثل من فردا امتحان دارید، میتونید پست های اینجا رو بخونید:
https://stackoverflow.com/questions/184618/what-is-the-best-comment-in-source-code-you-have-ever-encountered/184682

بهترین کامنت‌هایی که توی کد نوشتین.
برای خودم اینا جالب بود:

This seems to stop morons from messing my code...

// Autogenerated, do not edit. All changes will be undone.




// sometimes I believe compiler ignores all my comments



#define struct union
// is very helpful in memory constrained systems.



return 1; # returns 1



/* This is O(scary), but seems quick enough in practice. */
followed by four nested for-loops


try {

} finally {
// should never happen
}



long long ago; /* in a galaxy far far away */



// I am not sure if we need this, but too scared to delete.



/* Please work */



/* You are not meant to understand this */


// no comments for you
// it was hard to write
// so it should be hard to read



// I have to find a better job



// hack for ie browser (assuming that ie is a browser)



try {

}
catch (SQLException ex) {
// Basically, without saying too much, you're screwed. Royally and totally.
}
catch(Exception ex)
{
//If you thought you were screwed before, boy have I news for you!!!
}


long time; /* know C */



// I can't divide with zero, so I have to divide with something very similar
result = number / 0.00000000000001;
(متاسفانه این رو بارها و بارها گذاشتم من!)




/**
* If you don't understand this code, you should be flipping burgers instead.
*/



/* Ah ah ah! You'll never understand why this one works. */



catch (Ex as Exception)
{
// oh crap, we should do something.
}



public GetRandomNumber()
{
// Chosen by a fairly rolen dice
return 12;
}




// This is crap code but it's 3 a.m. and I need to get this working.



// For the sins I am about to commit, may James Gosling forgive me



# Limit length of buffer to try to send, because some OSes are too
# stupid to do so themselves (ahem windows)
return self.socket.send(buffer(data, 0, self.SEND_LIMIT))