TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

My first program was binary search

14 pointsby mmihaljevicalmost 13 years ago

4 comments

hsmyersalmost 13 years ago
Conway's 'Game of Life' in FORTRAN on an IBM 360. Hardly the third grade, that would have been in 1955. My next program was a 'Key Words in Context' generator written in BAL, likewise for a 360 (370 by the time I finished[model switch over should give you a clue as to when this was :)])---haven't stopped since and still continue to enjoy the creative addiction that programming brings to the game.
评论 #4179290 未加载
kibwenalmost 13 years ago
It wasn't quite my first program, but during one of my introductory high school programming courses I independently derived binary search (though of course I didn't realize it at the time). Additionally, this was well before I discovered what recursion was (I wonder if anyone else vividly remembers having their mind blown the first time they were introduced to recursion).<p>The funny part is that I abandoned the binary search strategy nearly immediately after conceiving it. Why? Because I realized that the array needed to be sorted in order for the search to work... and, at the time, the only sorting routine that I knew of was bubble sort. :)
atopuzovalmost 13 years ago
Go FER, go FER, go girl!
derlethalmost 13 years ago
I'm not seeing a blog post.<p>I'm using Chrome 18.0.1025.168 (Developer Build 134367).
评论 #4180054 未加载