مشابه تابع toString جاوا، اکنون در گو
package mainhttps://stackoverflow.com/questions/13247644/tostring-function-in-go
import "fmt"
type bin int
func (b bin) String() string {
return fmt.Sprintf("%b", b)
}
func main() {
fmt.Println(bin(42))
}
Stack Overflow
ToString() function in Go
The strings.Join function takes slices of strings only:
s := []string{"foo", "bar", "baz"}
fmt.Println(strings.Join(s, ", "))
But it would be nice to be able to pass arbitrary objects which imple...
s := []string{"foo", "bar", "baz"}
fmt.Println(strings.Join(s, ", "))
But it would be nice to be able to pass arbitrary objects which imple...
استفاده از replace در go mod
https://thewebivore.com/using-replace-in-go-mod-to-point-to-your-local-module/
https://thewebivore.com/using-replace-in-go-mod-to-point-to-your-local-module/
Pam The Webivore
Using "replace" in go.mod to point to your local module - Pam The Webivore
If you want to say, point to the local version of a dependency in Go rather than the one over… Read more > Using “replace” in go.mod to point to your local module
نوشتههای ترمینالی
How To Become A Hacker https://www.catb.org/~esr/faqs/hacker-howto.html
بخشی از مقاله:
competence at demanding skills that involve mental acuteness, craft, and concentration is best.
competence at demanding skills that involve mental acuteness, craft, and concentration is best.
Forwarded from Systems Artificial Intelligence Network (SAIN)
📣Call for Members:
Systems Artificial Intelligence Network (SAIN)
❇ Systems Artificial Intelligence Network (SAIN) is a network to promote an interdisciplinary perspective in the two fields of systems biology and artificial intelligence. This network is running under supervision of Prof. Nima Rezaie.
✳ SAIN is one of the USERN interest groups.
📃 Group definition:
https://t.iss.one/sain_usern/4
✅ We hereby invite all interested individuals to visit our form via the link below for obtaining more information about SAIN and registration:
Link
🔸️Registration deadline: February 1th
💻 USERN URL:
https://usern.tums.ac.ir/Group/Info/SAIN
📧Email: [email protected]
🆔️ @sain_usern | @usern_net
Systems Artificial Intelligence Network (SAIN)
❇ Systems Artificial Intelligence Network (SAIN) is a network to promote an interdisciplinary perspective in the two fields of systems biology and artificial intelligence. This network is running under supervision of Prof. Nima Rezaie.
✳ SAIN is one of the USERN interest groups.
📃 Group definition:
https://t.iss.one/sain_usern/4
✅ We hereby invite all interested individuals to visit our form via the link below for obtaining more information about SAIN and registration:
Link
🔸️Registration deadline: February 1th
💻 USERN URL:
https://usern.tums.ac.ir/Group/Info/SAIN
📧Email: [email protected]
🆔️ @sain_usern | @usern_net
چگونه هوشمندانه سوال بپرسیم.
https://catb.org/~esr/faqs/smart-questions.html
https://catb.org/~esr/faqs/smart-questions.html
خرید لپتاپ برنامهنویسی
https://vrgl.ir/ca8Ez
https://vrgl.ir/ca8Ez
ویرگول
لپ تاپ خوب برای برنامه نویسی
یه لپ تاپ خوب و شروع کد نویسی
در مورد glob در bash
https://blog.robertelder.org/find-command-wildcard-globbing/
https://blog.robertelder.org/find-command-wildcard-globbing/
ارتباط دستورات vim و ed وsed
https://blog.robertelder.org/vim-sed-grep-ed-commands/
https://blog.robertelder.org/vim-sed-grep-ed-commands/
یکنواختیِ بد بهتر از نبود یکنواختیه. (ترجمه بدی شد!)
Consistently bad is better than inconsistently good.
https://medium.com/@jgefroh/why-consistency-is-one-of-the-top-indicators-of-good-code-352ba5d62020
Consistently bad is better than inconsistently good.
https://medium.com/@jgefroh/why-consistency-is-one-of-the-top-indicators-of-good-code-352ba5d62020
Medium
Why consistency is one of the top indicators of good code
Software engineering is a lot easier in consistent systems.
نوشتههای ترمینالی
یکنواختیِ بد بهتر از نبود یکنواختیه. (ترجمه بدی شد!) Consistently bad is better than inconsistently good. https://medium.com/@jgefroh/why-consistency-is-one-of-the-top-indicators-of-good-code-352ba5d62020
این هم مطلب خوبیه.
ولی بیشتر به ظواهر پرداخته (مثل استایل و فایل بندی)
https://medium.com/better-programming/heres-how-consistency-improves-your-code-s-readability-644d64b142b5
ولی بیشتر به ظواهر پرداخته (مثل استایل و فایل بندی)
https://medium.com/better-programming/heres-how-consistency-improves-your-code-s-readability-644d64b142b5
Medium
Here’s How Consistency Improves Your Code’s Readability
There’s nothing more valuable than a consistent engineer
کلید ورود به کامپیوتر و unix
به نظرم همه اون چیزیه که مدارس باید یاد بدن.
https://tldp.org/HOWTO//Unix-and-Internet-Fundamentals-HOWTO/
به نظرم همه اون چیزیه که مدارس باید یاد بدن.
https://tldp.org/HOWTO//Unix-and-Internet-Fundamentals-HOWTO/
نوشتههای ترمینالی
https://vrgl.ir/lsiWH بازم در پوینتر نوشتم چون هرچی درموردش بنویسیم کمه :)
جالبه که یادم نبود چنین چیزی نوشتم و باز در موردش یه چیز طولانی نوشتم. =)
Forwarded from Programmer Humor