Writing comments is as important as writing code. The main purpose of using comments is to improve
readability of our code but frequently thoughtless comment writing decrease understandability of source code. Comments
must be concise and precise simultaneously. Also, when our code is changed, comments for this code must be
changed too. While using comments in our code we must realize that if expressiveness of our programming language
allows us to express clearly what we want in code, there is no need to write comments at all. And if we decide to use
comments, they must be extremely accurate and understandable, because another person must understand, what we do
and most importantly, why we do it.
Frequently comments can be replaced with good clear names of variables, functions or classes. Also, we can replace our
comments with assertions. Comments should clarify and explain our intentions. Copyrights and an authorship can be
implemented using comments too. But our IDE can do these things automatically.
Ta witryna wykorzystuje pliki cookies do przechowywania informacji na Twoim komputerze. Pliki cookies stosujemy w celu świadczenia usług na najwyższym poziomie, w tym w sposób dostosowany do indywidualnych potrzeb. Korzystanie z witryny bez zmiany ustawień dotyczących cookies oznacza, że będą one zamieszczane w Twoim komputerze. W każdym momencie możesz dokonać zmiany ustawień dotyczących cookies
Informacja
SZANOWNI CZYTELNICY!
UPRZEJMIE INFORMUJEMY, ŻE BIBLIOTEKA FUNKCJONUJE W NASTĘPUJĄCYCH GODZINACH:
Wypożyczalnia i Czytelnia Główna: poniedziałek – piątek od 9.00 do 19.00