If one is a software engineer by profession, is one allowed to read programming books granted one receives pleasure from doing so?
In general reading secular literature on Shabbat is discouraged but not forbidden - it should be a day focused on learning Torah. Here are a few opinions on the topic
It is permitted on Shabbat to read secular school books but, if possible, this should be minimized (Shulchan Aruch Orach Chayyim 307 17; Mishna Berura 307, 65) [...]
see also here
R Shlomo Aviner writes
This is a dispute between the Rishonim. The Rambam wrote in his commentary on the Mishnah (Shabbat chap. 23 and quote in the Beit Yosef Orach Chaim 307) that it is forbidden to read books of wisdom, which are not Torah, on Shabbat and Yom Tov. This is interesting since the Rambam is usually thought to be the authorities most open to general wisdom. But according to the Ramban (Beit Yosef ibid.), it is permissible to read medical books since they contain wisdom.
These two opinions at quoted in the Shulchan Aruch (ibid. #17): "It is forbidden to study on Shabbat and Yom Tov aside from words of Torah, and even books of wisdom are forbidden, and there is an opinion which permits it." The Mishnah Berurah (380:65) indicated that we act leniently but it is proper to be strict.
The basic halachah is therefore that it is permissible to learn secular subjects on Shabbat but it is certainly proper to be strict. If one follows the permissible view, it includes school reading or studying for a test on the condition that one enjoys it. If such activities cause stress and fear over a test, one should refrain from studying.
The Shulhan Aruch (Orah Haim 307:17) writes, “It is forbidden on Shabbat and Yom Tob to study anything besides words of Torah; even scholarly matters are forbidden. But there is [an opinion] that allows it” (listen to audio recording for Hebrew citation).
The first view recorded in the Shulhan Aruch forbids reading all secular material, including scholarly textbooks, whereas the second view – which is the position taken by the Rashba (Rabbi Shelomo Ben Aderet of Barcelona, 1235-1310) – permits studying “Dibreh Hochma” – works of scholarship. (This is also the position of the Ramban.)
There is a general rule that when the Shulhan Aruch records two views in this fashion (“Setam Va’yesh”), he accepts the first opinion as the Halacha. Accordingly, it would be forbidden to read or study any secular material on Shabbat or Yom Tob, including secular textbooks.
The question arises as to whether this would apply to consulting a medical textbook for guidance in treating an ill patient on Shabbat. If, for example, a doctor is called upon to treat a patient on Shabbat, would he be allowed to review material in his medical textbooks for verification? For that matter, if a child is sick, may a parent consult a medical guidebook to determine how to best treat the child?
Hacham Ovadia Yosef, in his work Halichot Olam, writes that in such cases one may rely on the lenient view of the Rashba, who, as we saw, permits studying secular subjects on Shabbat. Since there is a particular need to study the material in question, we may, under the circumstances, rely on the Rashba’s position. Hacham Ovadia applies this ruling even to a medical student who will be taking an exam after Shabbat. Given the present need to review the material, the student may rely on the lenient view of the Rashba and study for his exam on Shabbat.
This discussion should alert us to the importance of devoting our free time on Shabbat to Torah study. Even when it comes to reviewing medical information, Halacha permits this study only on the basis of the minority view of the Rashba. Certainly, there is no room to permit reading novels and other unnecessary material on Shabbat, and reviewing one’s bills and other financial papers is most definitely forbidden on Shabbat.