Пользоваться сисколами в го — одно удовольствие. Сразу видно, что сделано было для людей. Это хороший API с возвратом нескольких переменных в безопасном языке. Просто сравните
ssize_t recvfrom(int sockfd, void *buf, size_t len, int flags,
struct sockaddr *src_addr, socklen_t *addrlen);
func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error)
И это я про обработку ошибок ещё ничего не сказал❤6
Часто бывает такое, что хочется изучить новую для себя область, но не понятно, с чего начать. Сегодня я открыл для себя, что у chatGPT можно явно спросить, какие идеи важны, чтобы сначала изучить именно их. Промпт выглядит так:
machine learning
statistical physics
quantitative research
pediatrics
software engineering
python programming language
chatGPT prompting
natural language processing
social interactions and norms
There is an idea of the trees of knowledge. It states that every field can be expressed as a tree, where trunk and large branches represent main ideas of the field. This concept helps with learning, as, before you get into the leaves/details, you need to understand the fundamental principles, i.e. the trunk and big branches.
Explain <insert your theme here> to me in terms of a tree of knowledge
Примеры того, что я уже нагенерил:machine learning
statistical physics
quantitative research
pediatrics
software engineering
python programming language
chatGPT prompting
natural language processing
social interactions and norms
🔥5❤2
Forwarded from
❤2