DConf '23 Day 3 Keynote--You're Writing D Wrong--Átila Neves

Описание к видео DConf '23 Day 3 Keynote--You're Writing D Wrong--Átila Neves

An old man yells his pet peeves at the clouds.

The PDF slides are available here:
https://dconf.org/2023/slides/neves.pdf

DConf '23 Homepage
https://dconf.org/2023/index.html

The D Programming Language Home
https://dlang.org/

#dlang #dconf #programming

TIMCODES:
00:00 Title & Introduction
03:23 Stop writing classes
06:20 Private
08:59 Think carefully about dependencies
12:08 Use local imports
13:44 Stop caring about endianess
16:19 Stop writing auto
19:06 Unit tests should be @safe pure
25:47 Don't write for loops
27:27 main should empty
31:13 Don't write complicated CI configurations
32:13 scope(exit) is for one-time use
33:25 Don't write empty parens for function calls
34:24 Don't write getters & setters
36:25 Don't use shared
37:33 Conclusion
38:24 Q about not using getters & setters in specific use case
39:39 Comments about shared & __gshared
41:13 Q about `export` being a visibility modifier
41:35 Q: How do you use const correctly?
42:07 Q: What to do when calling a third-party lib that doesn't use const?
43:05 Q about stdout/in/err with empty main.

Комментарии

Информация по комментариям в разработке