Live data from Hacker News

Building my own Vi text editor in BASIC

leetusman.com

11–20 of 53 posts

Re: Building my own Vi text editor in BASIC

#11
There's a little BASIC resurgance now. I've been having fun with this https://github.com/ReuvenSwirsky/erlbasic "Erlang BASIC" which implements a mini-computer style time sharing BASIC system in Erlang. There's a beta of it online now, running a more advanced version than the branch on GitHub I’ve been using.

I'll see if I can port this "Vi" to this flavor of BASIC.

Re: Building my own Vi text editor in BASIC

#12
post #4

In BASIC ? Why? Why would you do that to yourself? Don't get me wrong, if he enjoys writing code in BASIC, I'm not going to tell him to stop having fun. It would be silly to tell some random stranger "You're having fun wrong !" (Even if I totally think he's having fun wrong. Grin ). If he's having fun with it, go for it. But man, I looked at the code and got flashbacks. The bad kind. BASIC was the first language I le…

Laughing agreement. I’m very sentimental for BASIC.

By the standard of getting kids started it’s an amazing and wildly successful language.

By any other standard, it is absolutely terrible! It commits every famous programming sin! Stay away! Do not learn from this language! LOL

Re: Building my own Vi text editor in BASIC

#13

There's a little BASIC resurgance now. I've been having fun with this https://github.com/ReuvenSwirsky/erlbasic "Erlang BASIC" which implements a mini-computer style time sharing BASIC system in Erlang. There's a beta of it online now, running a more advanced version than the branch on GitHub I’ve been using. I'll see if I can port this "Vi" to this flavor of BASIC.

Me and the Apple IIc on my desk are ready for it

Re: Building my own Vi text editor in BASIC

#14
post #7
post #5

Earlier quoted context omitted.

I haven't written BASIC since I was a teenager! The more "modern" basics, without line numbers, were a definite improvement. I went from AppleSoft to AmigaBasic and QuickBasic.

> The more "modern" basics, without line numbers, were a definite improvement. Never used them, and yet I can unquestioningly agree. The way you had to number each line in increments of 10 so that you could insert a line 15 later in between lines 10 and 20 was, looking back at it, insane. I can understand why they did it. In the era of no full-screen text editors, where you just typed each line one at a time into a R…

A lot of 8 bit basics had a RENUM which would even out the line numbers and repoint all the GOTO statements.

Re: Building my own Vi text editor in BASIC

#15
post #4

In BASIC ? Why? Why would you do that to yourself? Don't get me wrong, if he enjoys writing code in BASIC, I'm not going to tell him to stop having fun. It would be silly to tell some random stranger "You're having fun wrong !" (Even if I totally think he's having fun wrong. Grin ). If he's having fun with it, go for it. But man, I looked at the code and got flashbacks. The bad kind. BASIC was the first language I le…

"It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration." -- Edsger Dijkstra

Re: Building my own Vi text editor in BASIC

#17
post #15
post #4

In BASIC ? Why? Why would you do that to yourself? Don't get me wrong, if he enjoys writing code in BASIC, I'm not going to tell him to stop having fun. It would be silly to tell some random stranger "You're having fun wrong !" (Even if I totally think he's having fun wrong. Grin ). If he's having fun with it, go for it. But man, I looked at the code and got flashbacks. The bad kind. BASIC was the first language I le…

"It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration." -- Edsger Dijkstra

even smart people say dumb things sometimes.

Re: Building my own Vi text editor in BASIC

#18
post #4

In BASIC ? Why? Why would you do that to yourself? Don't get me wrong, if he enjoys writing code in BASIC, I'm not going to tell him to stop having fun. It would be silly to tell some random stranger "You're having fun wrong !" (Even if I totally think he's having fun wrong. Grin ). If he's having fun with it, go for it. But man, I looked at the code and got flashbacks. The bad kind. BASIC was the first language I le…

I heard Basic is pretty good as far as embedded script interpreter

Re: Building my own Vi text editor in BASIC

#19
post #4

In BASIC ? Why? Why would you do that to yourself? Don't get me wrong, if he enjoys writing code in BASIC, I'm not going to tell him to stop having fun. It would be silly to tell some random stranger "You're having fun wrong !" (Even if I totally think he's having fun wrong. Grin ). If he's having fun with it, go for it. But man, I looked at the code and got flashbacks. The bad kind. BASIC was the first language I le…

Laughing agreement. I’m very sentimental for BASIC. By the standard of getting kids started it’s an amazing and wildly successful language. By any other standard, it is absolutely terrible! It commits every famous programming sin! Stay away! Do not learn from this language! LOL

    10 PRINT "THIS IS FINE"
    20 GOTO 10

Re: Building my own Vi text editor in BASIC

#20
Not very pro or anti BASIC but very pro your rationale, and love that you do what you do because it is fun and stimulating. I love reinventing wheels also, and, in fact, believe it is under appreciated just how useful it actually is. I'd encourage people to reinvent things for their own benefit, maybe you might end up building a better version of something, but more importantly you will possibly encourage, energise or inspire another to explore and learn.
Post reply on HN