elfs: (Default)
[personal profile] elfs
This morning one of my co-workers, who's only ever worked in third-generation languages, was trying to track down a bug in a python-to-C interface. He IM'd me with a short block of code and asked, "Is this the constructor for an array instance in C?"

I laughed. It was, for some definition of "constructor." I found it so amusing that we used to act as if constructors were merely syntactical sugar layered on top of C-type initializers. Now, we look at C-type initializers and call them "primitive constructors." That's progress.

This reminds me of the comment someone made recently that "patterns of programming" are in fact evidence of weakness in a programming language. We should not merely document what we do, but learn how to make "what we do" a part of the language (or the language's standard library) such that it becomes invisible.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

elfs: (Default)
Elf Sternberg

December 2025

S M T W T F S
 12345 6
78910111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 31st, 2025 07:35 pm
Powered by Dreamwidth Studios