Forwarded from Linuxor ?
Forwarded from Webinarfarsi | Soheib Kiani | وبینار فارسی
Media is too big
VIEW IN TELEGRAM
دیدنش میتونه به شما کمک کنه
Forwarded from Webinarfarsi | Soheib Kiani | وبینار فارسی
نکته خوب از زبان برنامه نویس اسبق گوگل در مورد refactoring
https://www.linkedin.com/posts/dryuan_cleancode-refactoring-technicaldebt-activity-7316136240469155840-mQic?utm_source=share&utm_medium=member_android&rcm=ACoAAD0lsT0BtYSF42wgWR-cYqcAiCrCBgM5hJc
https://www.linkedin.com/posts/dryuan_cleancode-refactoring-technicaldebt-activity-7316136240469155840-mQic?utm_source=share&utm_medium=member_android&rcm=ACoAAD0lsT0BtYSF42wgWR-cYqcAiCrCBgM5hJc
Linkedin
Refactoring code: risks and considerations | Feng Yuan posted on the topic | LinkedIn
It seems I have different options on lots of stuff, including cleaning/refactoring code.
If you have your own code base, clean as much as often as you want. You take all the risk/glory.
But if you're working on a big critical piece of software, be very…
If you have your own code base, clean as much as often as you want. You take all the risk/glory.
But if you're working on a big critical piece of software, be very…
Forwarded from Webinarfarsi | Soheib Kiani | وبینار فارسی
🚩 10 Red flags of a Software Engineer:
1) Always says “it works on my machine”
2) Doesn’t care about the product’s users or their needs
3) Never mentors or shares knowledge
4) Can’t explain what they’re doing to anyone non-technical
5) Blames PMs, design, QA, and “legacy code” for everything
6) Doesn't test their code properly (QA should do it)
7) Consistently misestimates tasks
8) Avoids documentation: "The code is self-documenting"
9) Declares "it's impossible", instead of suggesting ways to solve challenges
10)Freaks out under the pressure
1) Always says “it works on my machine”
2) Doesn’t care about the product’s users or their needs
3) Never mentors or shares knowledge
4) Can’t explain what they’re doing to anyone non-technical
5) Blames PMs, design, QA, and “legacy code” for everything
6) Doesn't test their code properly (QA should do it)
7) Consistently misestimates tasks
8) Avoids documentation: "The code is self-documenting"
9) Declares "it's impossible", instead of suggesting ways to solve challenges
10)Freaks out under the pressure
Forwarded from ZGP
جایگزین ifconfig در لینوکس
nmcli -p device show
ip -c a
nmcli -p device show
ip -c a
❤2
Forwarded from Shayan GeeDook🐧
تا حالا به اول بعضی از فایلهای اسکریپت نگاه کردی و دیدی این دوتا کاراکتر مرموز #! اون بالا نشستن؟
مثل این:
#!/bin/bash
خب، این همون Shebang معروفه.
ترکیبی از # و ! که کنار هم تبدیل میشن به یه خط جادویی تو دنیای یونیکس و لینوکس!
ماجرا برمیگرده به دهه ۸۰ میلادی، وقتی که سیستمعاملهای شبهیونیکس داشتن رشد میکردن و توسعهدهندهها نیاز داشتن بدونن یه اسکریپت با چه برنامهای باید اجرا بشه.
توی سیستمعاملهای یونیکسی، وقتی شما یه فایل رو قابل اجرا (chmod +x) میکنی و سعی میکنی اجراش کنی، سیستم باید بفهمه این فایل توسط چه تفسیری (interpreter) اجرا بشه. Bash؟ Python؟ Perl؟ Node؟
اینجاست که shebang وارد میشه.
این خط اول فایل، به سیستمعامل میگه: «اگه خواستی این فایل رو اجرا کنی، با این برنامه اجراش کن!»
مثال:
#!/usr/bin/python3
print("Hello, world!")
این یعنی اجراش با مفسر پایتون نسخه ۳.
واژهی "Shebang" ترکیبیه از:
sh → اشاره به sh که همون Unix shell اولیه بوده
bang → اسمی قدیمی برای کاراکتر !
بنابراین #! میشه: "sh-bang"
(البته بعضی جاها بهش hashbang یا pound-bang هم میگن)
✨ قابل حمل بودن: یه اسکریپت با روی هر سیستم یونیکسی کار میکنه، بدون اینکه بدونی کدوم شله🛠 کنترل بیشتر: میتونی دقیقاً مشخص کنی با کدوم نسخه از مفسر اجرا بشه (مثلاً #!/usr/bin/env python3)💻 استاندارد بودن: خیلی از ابزارها و سیستمها به خط اول فایل حساسن. اگه درست نباشه، ممکنه اسکریپت اجرا نشه
#!/usr/bin/env python3
اینجوری سیستم خودش مسیر Python 3 رو از متغیرهای محیطی پیدا میکنه. برای پورتابل بودن خیلی بهتر از مسیرهای مستقیمه.
با اینکه این مفهوم برای لینوکسیها و برنامهنویسها بسیار مهمه، توی ویکیپدیای فارسی هنوز صفحهای به اسم Shebang یا #! وجود نداره!
وقتشه که یکی اینو به فارسی بنویسه — شاید تو باشی!
#Shebang #Linux #Unix #اسکریپت #Bash #Python #DevTips #Geedook #OpenSource
github
Wikipedia (EN) - Shebang (Unix)
stackoverflow
Linux Handbook - What is Shebang
Shayan-GeeDook
Please open Telegram to view this post
VIEW IN TELEGRAM
GitHub
free-programming-books/books/free-programming-books-langs.md at main · EbookFoundation/free-programming-books
:books: Freely available programming books. Contribute to EbookFoundation/free-programming-books development by creating an account on GitHub.
Forwarded from Linuxor ?
اگه تازه سایت میخواین بیارین بالا با این سایت میتونین آنالیزش کنید و بهتون میگه چیکار کنید که سرعت لودش بره بالا، این سایت مال خود گوگله :
pagespeed.web.dev
@Linuxor
pagespeed.web.dev
@Linuxor