From 275ae06e22840ed1b915ddd313ce32c714de56a9 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 3 May 2021 09:03:05 +0100 Subject: a couple of corrections --- content/html/gemfeed/2016-11-20-methods-in-c.html | 2 +- content/html/resources.html | 37 ++++++++++++----------- 2 files changed, 20 insertions(+), 19 deletions(-) (limited to 'content/html') diff --git a/content/html/gemfeed/2016-11-20-methods-in-c.html b/content/html/gemfeed/2016-11-20-methods-in-c.html index 5d39c258..f764e8d9 100644 --- a/content/html/gemfeed/2016-11-20-methods-in-c.html +++ b/content/html/gemfeed/2016-11-20-methods-in-c.html @@ -76,7 +76,7 @@ Division(3.000000, 2.000000) => 1.500000

Not complicated at all, but nice to know and helps to make the code easier to read!

The flaw

-

That's actually not really how it works in object oriented languages such as Java and C++. The method call in this example is not really a method call as "mult" and "div" in this example are no "method receivers". What I mean by that is that the functions can not access the state of the "mult" and "div" struct objects. In C you would need to do something like this instead if you wanted to access the state of "mult" from within the calculate function, you would have to pass it as an argument:

+

That's actually not really how it works in object oriented languages such as Java and C++. The method call in this example is not really a method call as "mult" and "div" in this example are no "message receivers". What I mean by that is that the functions can not access the state of the "mult" and "div" struct objects. In C you would need to do something like this instead if you wanted to access the state of "mult" from within the calculate function, you would have to pass it as an argument:

 mult.calculate(mult,a,b));
 
diff --git a/content/html/resources.html b/content/html/resources.html index 88c50e3b..eece15cc 100644 --- a/content/html/resources.html +++ b/content/html/resources.html @@ -18,7 +18,6 @@ li { color: #98be65; } -
Last updated 2021-05-01
Go back to the main site

Resources

This is a list of resources I found useful. I am not an expert in all (but some) of these topics but all the resources listed here made an impact on me. I've read some of the books quite a long time ago, so there might be newer editions out there already and I might need to refresh some of the knowledge.

@@ -43,7 +42,6 @@ li { color: #98be65; }
  • DNS and BIND; Cricket Liu; O'Reilly
  • Concurrency in Go; Katherine Cox-Buday; O'Reilly
  • Modern Perl; Chromatic ; Onyx Neon Press
  • -
  • Structure and Interpretation of Computer Programs; Harold Abelson and more...; MIT Press
  • Java ist auch eine Insel; Christian Ullenboom;
  • Think Raku (aka Think Perl 6); Laurent Rosenfeld, Allen B. Downey; O'Reilly
  • Advanced Bash-Scripting Guide; Not a book by per-se but could be
  • @@ -73,36 +71,39 @@ li { color: #98be65; }

    Self-development and soft-skills books

    Technical video lectures and courses

    Some of these were in-person with exams, others were online learning lectures only.

    Fiction and more books

    Many fiction and non-fiction books I read are not listed here. This site mostly includes resources which made an impact on me regarding the work I do only and not on my personal life. Do you recommend a good Science Fiction Novel? E-Mail me; I can also provide my own recommendations! :-)

    -- cgit v1.2.3