Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
augustk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
121.
▲
by
augustk
4y ago
"Code Complete" by Steve McConnell and "A Philosopy of Software Design" by John Ousterhout.
122.
▲
by
augustk
4y ago
It's even easier if you use a garbage collector, like for instance libgc. Then you just replace (ptr) = malloc((n) * sizeof (ptr)[0]); with (ptr) = GC_MALLOC((n) * sizeof (ptr)[0]); in the macro and don't have to wor
123.
▲
by
augustk
4y ago
There are three macros which I find indispensable and which I use in all my C projects, namely LEN , NEW and NEW_ARRAY . I keep them in a file named Util.h: #ifndef UTIL_H #define UTIL_H #include <errno.h> #include <
124.
▲
by
augustk
4y ago
Got me thinking of https://en.wikipedia.org/wiki/The_Tortoise_and_the_Hare
125.
▲
by
augustk
4y ago
Agreed, I think this site should use the CSS property `max-width' to keep lines of text at a reasonable length.
126.
▲
by
augustk
4y ago
It is also worth mentioning that Oberon-07 is a purely structured language in the sense that each sequence of statements is either fully executed or not executed; the only exception is ASSERT(FALSE) which halts the program. So in Oberon:
127.
▲
by
augustk
4y ago
Here is the specification for the latest version of the original Oberon language (also called Oberon-07): http://miasap.se/obnc/oberon-report.html
128.
▲
by
augustk
4y ago
1. Make it work 2. Make it right 3. Make it performant (if too slow).
129.
▲
by
augustk
4y ago
> How would you distinguish that definition from one for "type"? The crucial difference between an abstract data type and a concrete data type is that the content is hidden in the former case.
130.
▲
by
augustk
4y ago
An abstract data type (ADT) is a structured type for which a client cannot access the data components for variables of this type. The client understands the type in terms of its operations, provided by a set of functions which operates on v
131.
▲
by
augustk
4y ago
Indeed, like vapourware almost.
132.
▲
by
augustk
4y ago
That's why I stick to the POSIX shell (sh) https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V...
133.
▲
by
augustk
4y ago
"Wirth’s philosophy of programming languages is that a complex language is not required to solve a complex problem. On the contrary, he believes that languages containing complex features whose purposes are to solve complex problems ac
134.
▲
by
augustk
4y ago
If you like small languages you may also be interested in Oberon (which is smaller than Zig). https://www.miasap.se/obnc/oberon-report.html
135.
▲
by
augustk
4y ago
"$XDG_CONFIG_HOME defines the base directory relative to which user-specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used." https:/
136.
▲
by
augustk
4y ago
Not razor sharp but sharp enough to leave marks on your trousers after some usage. Here is an example: https://i.imgur.com/HZNUoVd.jpg The iPhone SE has completely rounded edges which is more pocket friendly in this regard.
137.
▲
by
augustk
4y ago
The iPhone 13 Mini has those sharp pocket destroying edges though.
138.
▲
by
augustk
4y ago
The value of a formal specification is the ability to reason about a program without having to compile and run it (using a specific implementation).
139.
▲
by
augustk
4y ago
However, if I'm not mistaken, the language still has no formal specification.
140.
▲
by
augustk
4y ago
> If Adacore had published a full featured free compiler for students/universities by the time Ada 95 standard was published, I am sure that Ada could have occupied the space C++ takes today. The same can be said about Eiffel.
141.
▲
by
augustk
4y ago
The apprentice doesn't know about it. The journeyman uses it dogmatically. The master uses it thoughtfully.
142.
▲
by
augustk
4y ago
I have been using Blackbox for more than a decade now. What I think sets it apart from other window managers and light desktops is that it looks good out of the box: professional and restrained, which is the way I like it. It is also fast a
143.
▲
by
augustk
4y ago
> This is an excellent resource. ...for people living in U.S., Myanmar and Liberia.
144.
▲
by
augustk
4y ago
As long as the code is versioned you don't completely kill your checked in darlings.
145.
▲
by
augustk
5y ago
I agree. One addition to this is that I configure my themes so that heading-like constructs are displayed in bold; in C that would be function names in function declarations (and definitions), and in HTML say, it would be the content of <
146.
▲
by
augustk
5y ago
For simple dialog boxes, Zenity is also an option: https://help.gnome.org/users/zenity/stable/
147.
▲
by
augustk
5y ago
I still use a Mac Mini from 2009 as my main computer although I have upgraded the hard drive to a solid state disk and expanded the memory from 2 GB to (maximum) 8 GB. I run Debian on it with the window manager Blackbox. Other World Computi
148.
▲
by
augustk
5y ago
Indeed, using tools to manage complexity tends to make the complexity acceptable and leads to more complexity.
149.
▲
by
augustk
5y ago
At least in some European countries we use a dot instead (which doesn't look like a variable named "x"). https://en.wikipedia.org/wiki/Dot_operator#Notation_and_term...
150.
▲
by
augustk
5y ago
I found the animations very distracting when trying to read the text. To me the animations didn't add anything.
More ›