Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
augustk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
241.
▲
by
augustk
6y ago
With unit tests included it would probably be more than two lines.
242.
▲
by
augustk
6y ago
YADIW = You Are Doing It Wrong.
243.
▲
by
augustk
6y ago
I learned pointers by drawing boxes and arrows which I think is the best high-level explanation. Basically a variable is a container which holds a value from a predetermined set of values (also known as a type). For instance, an integer var
244.
▲
by
augustk
6y ago
Thanks for the tip. It seems to have improved since I last tried it.
245.
▲
by
augustk
6y ago
I love Dillo and its philosophy. It's snappy like few other (currently maintained) GUI applications. I wish there was an e-mail client with the same goals.
246.
▲
by
augustk
6y ago
> Syntax highlighting is juvenile. When I was a child, I was taught arithmetic using colored rods ( http://en.wikipedia.org/wiki/Cuisenaire_rods ). I grew up and today I use monochromatic numerals. — Rob Pike When I w
247.
▲
by
augustk
6y ago
For me animations mixed with text is bad UX. Would be better with buttons to start the animations when you have read the relevant paragraph.
248.
▲
by
augustk
6y ago
And the motivation for designing the new language. What problems does it solve better than existing languages? How does it promote the creation of maintainable programs? Etc, etc.
249.
▲
by
augustk
6y ago
How does this language compare to, say Scheme?
250.
▲
by
augustk
6y ago
It's also worth mentioning that local variables can be simulated using additional formal parameters. In AWK, any missing parameter in a function call is initialized to zero. Let's say we have a function CharCount which takes a cha
251.
▲
by
augustk
6y ago
For me Oberon is the better C. https://www.miasap.se/obnc/oberon-report.html
252.
▲
by
augustk
6y ago
A complicated sorting algorithm could assert that the result is sorted before returning.
253.
▲
by
augustk
6y ago
> I've always felt that object-oriented programming as a concept (that is, define structures and then define functions to operate on them together) is useful: object-oriented programming as a language design is not. What you describ
254.
▲
by
augustk
6y ago
I mean programmatically with an assertion statement or similar. You don't want to add the same assertion before each return statement.
255.
▲
by
augustk
6y ago
If a function returns early, its post-conditions cannot be checked.
256.
▲
by
augustk
6y ago
This is also the biggest problem I have with Emacs. When I used it I spent too much time configuring things, something which distracted me from solving real problems. Now I use a much simpler editor which is not so configurable so I can foc
257.
▲
by
augustk
7y ago
I completely agree. I work with a large APL codebase and the main problem is not the language but the culture. Overly long expressions, one-letter variable names, gotos etc. make the code obfuscated.
258.
▲
by
augustk
7y ago
"The most experienced programmer uses hacks all the time; the important part is that you're getting stuff done." I couldn't disagree more, the grown up programmers use a strategic approach, not a tactical one. As Jonh Ou
259.
▲
by
augustk
7y ago
The programming language Oberon by Niklaus Wirth is an exception. It has actually become slightly smaller over the years. https://www.miasap.se/obnc/oberon-report.html
260.
▲
by
augustk
7y ago
And this is a legal thing to do?
261.
▲
by
augustk
7y ago
> Another bad idea from that era - Wirth's insistence that you shouldn't be allowed compile-time arithmetic in Pascal. This restriction has since long been relaxed in Wirth's later languages Modula-2 and Oberon which both
262.
▲
by
augustk
7y ago
"However for anyone that enjoys being able to take advantage of what happened since 1992 in mainstream computing, Go isn't it." Which radically new programming language concepts has been invented since 1992? To my mind most n
263.
▲
by
augustk
7y ago
Exactly, the more sophisticated tools we have to manage incomprehensible programs, the worse they get in terms of maintainability.
264.
▲
by
augustk
7y ago
I found this rather incomprehensible.
265.
▲
by
augustk
7y ago
> I can relate to what you write, I also used to feel social anxiety and always felt (and still sometimes feel) in the wrong place when going out with more social people. I think it is important not to conflate social people with extrove
266.
▲
by
augustk
7y ago
For those who appreciate radical simplicity I can recommend the Oberon programming language. As opposed to C it is a real high-level language whose language specification contains no reference to any computing mechanism: https://
267.
▲
by
augustk
7y ago
> For instance parameter validation is one instance where I think an early return is very much warranted. There you typically have no cleanup to do since it's effectively the prelude of the function. That's what the assert stat
268.
▲
by
augustk
7y ago
Exactly what I was thinking: "Our pro customers tell us they want their next horse to have blazing-fast performance etc."
269.
▲
by
augustk
7y ago
What I like about Niklaus Wirth is that he stays true to his design philosophy and never sells out. Oberon is not a crowd-pleasing language.
270.
▲
by
augustk
7y ago
The Oberon programming language is also a very nice alternative to C - smaller, safer and easier to learn. It can be used without the Oberon operating system.
More ›