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.

Date: 2007-06-03 04:57 am (UTC)
From: [identity profile] voidrandom.livejournal.com
http://norvig.com/design-patterns/ppframe.htm

Date: 2007-06-03 04:06 pm (UTC)
From: [identity profile] lucky-otter.livejournal.com
C *is* a 3GL. http://en.wikipedia.org/wiki/Third-generation_programming_language

Never seen those terms. Not much in use today. They don't seem very useful in describing the programming languages we now use.

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 04:11 am
Powered by Dreamwidth Studios