TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Do you still code in BASIC?

49 点作者 yori超过 5 年前
Do you still write code in BASIC? If yes, which BASIC compiler or interpreter do you use?

54 条评论

proxybop超过 5 年前
I learned to code from some indie version of basic on the internet called Liberty BASIC when I was 13. I used it for years because the people on the forums were so nice and basically held my hand through learning a lot of basic computer science and exposed me to the history of computing via recreated qbasic programs and games, etc.<p>I’m super grateful for little things like that. All those older people that were welcoming to me on those forums have a special place in my heart, and I’ve been thinking about them fondly while I build a compiler—something I wouldn’t have been able to do without them answering all my questions when I got stuck.
评论 #21777044 未加载
评论 #21775036 未加载
earthboundkid超过 5 年前
No, and I don&#x27;t miss it because I don&#x27;t feel like was actually &quot;simpler&quot; than what I use today. Almost anything I could have done easily in BASIC in 1992, I can do more easily in Python now. The exception might be drawing ASCII graphic games, but I don&#x27;t have any desire to make such games today, and if I did, I could just learn how to use TCell or whatever.
评论 #21778470 未加载
评论 #21779149 未加载
评论 #21776611 未加载
ibejoeb超过 5 年前
I understand the arguments against BASIC, e.g., ingraining impractical paradigms, but I do wonder if I would have ever gotten so deep in without exposure to it. I doubt that I would have jumped directly into asm, c, or fortran as a child. Even Pascal was a major leap ahead and probably somewhat inapproachable without help.<p>Maybe that was only the case in the &#x27;70s and &#x27;80s. I&#x27;m sure that if I had Python as a kid, it would have been just as easy to experiment as it was with BASIC back then.
评论 #21775195 未加载
评论 #21792061 未加载
评论 #21777114 未加载
ph33t超过 5 年前
Yes. PowerBasic. Since the original developer has passed on (Bob Zale), I don&#x27;t use it for new coding. However, I have an extensive existing code base. Very fast compiler, very small generated exe&#x27;s, and very easy to work with. But, I don&#x27;t see any progress in a 64-bit nor linux versions so I&#x27;ve switched to Python for such things.
评论 #21775593 未加载
评论 #21787924 未加载
bobochan超过 5 年前
I still write quite a few things in VBA. Most of this is for research or teaching purposes where I want to add a few things to Excel, but there is a surprising amount of demand from management consulting companies that want a front end or some sensitivity analysis added to a model that they have developed for a client.
linuxlizard超过 5 年前
Yes. The one called Python. No line numbers but a funny indentation system.
评论 #21775288 未加载
评论 #21775177 未加载
grendelt超过 5 年前
I&#x27;m a curriculum developer and lead teacher training workshops. We <i>still</i> teach BASIC because one of the robotics platforms still in existence is the BoeBot from Parallax. It uses the BASIC Stamp. When I started, the rest of the team was only doing the BoeBot. I started learning microcontrollers with the BASIC Stamp and I forgot how restricting it is when you try to do much with it. I proposed we adopt the Parallax Shield bot which uses an Arduino as the brain instead of the BASIC Stamp. Leadership agreed.<p>It&#x27;s actually more difficult to teach Arduino in a day or two and hope any of it sticks if the person you&#x27;re training in coming in with zero programming background. BASIC is still an easy language for complete newbie to pick up in a short amount of time. The ease of learning comes at a cost later on though. I&#x27;ve encouraged teachers to start with BASIC if their students had no prior background or if they themselves feel overwhelmed by the wider pastures of the Arduino. I underscore that the time spent learning C++ in an Arduino context is a better investment than time spent mastering BASIC. BASIC is easy to learn for the purposes of the robot, but C++ can control the robot and allow you to branch out into countless other languages. I liken programming languages to spoken languages and learning C++ is like learning Latin. It may be obtuse and difficult at first, but once it clicks, you can easily slide into any number of other languages with ease.<p>I&#x27;m now not really beating the BASIC drum anymore, instead I talk up Python now that Parallax has released a bot built atop the micro:bit. It&#x27;s limited in the amount of memory on board and python eats embedded memory for lunch. It&#x27;s time well spent learning Python. It allows students to grow into &quot;what&#x27;s next&quot; far easier. Kids that learn Python on something like this robot can easily write the same kind of code on a computer to have it do all sorts of things. Kids in camps that I&#x27;ve run (and students in my classroom years ago) love learning about the countless python libraries they can use. I casually point out &quot;mouse&quot; and they making &quot;random mouse movement&quot; scripts as a gag. I always &quot;fall for it&quot; each time. (&quot;Oh no! What?! My mouse... it&#x27;s jumping all over the place!!!&quot; - met with giggles, high fives, raucous laughter, etc)<p>So, yeah, I actually still teach BASIC on occasion, but I&#x27;m more and more turning teachers into Python lovers and C++ for the Arduino.
评论 #21792020 未加载
sixothree超过 5 年前
In one of our solutions (about 75+ projects) we have a single VB.net project with just a few classes. Nobody has bothered to port it over because it never needed changes. So it sits there doing its thing. The funny thing is that it was converted from C# code, which was promptly lost, some ten years ago because we thought it would be easier for the dev unfamiliar with C#.<p>On a personal note, I collect vintage computers. I have too many and stopped counting at 50. So I do use BASIC in that sense.
评论 #21775317 未加载
zxdunny超过 5 年前
I&#x27;ve been writing a toy BASIC interpreter for about the past ten years: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;user&#x2F;ZXSpin&#x2F;videos" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;user&#x2F;ZXSpin&#x2F;videos</a>
jshaqaw超过 5 年前
I am just starting to teach my young kids to code. I haven&#x27;t found a better solution than old fashion BASIC for that stage when you graduate from Scratch but aren&#x27;t ready to onboard lot of the complexity of a Python or Racket yet. I love Python and Racket but for an 8 year old they still have a lot of background baggage vs the immediacy of BASIC.
alexhutcheson超过 5 年前
A shocking amount of processes in the business world still depend on VBA (Visual Basic for Applications) running in Excel (and sometimes Access). It&#x27;s actually a pretty nice RAD environment, as long as you&#x27;re not going to scale beyond a team of one or two developers!
codingdave超过 5 年前
Not the BASIC with line numbers that you may be thinking of, but VBA in Microsoft Office apps is a descendant of Visual Basic, and is definitely still out there. I use it when writing scripts to parse content out of old Word docs.
sarossell超过 5 年前
Liberty BASIC. It&#x27;s been around for nearly three decades, is very well documented, has excellent support, and is the closest you can get in modern times to the syntax of the original Dartmouth BASIC. So it easily appeals to the old-school crowd like me. But it also has over 300 commands or constants to keep up with modern operating systems and methods which allow for GUI design, event-driven applications, calling DLLs, playing media files, interacting with joysticks, displaying graphics, etc.
SyneRyder超过 5 年前
Sometimes. I use Xojo, the new name for REALbasic. It&#x27;s a cross platform Basic compiler, that makes desktop apps for Windows, Mac &amp; Linux (also iOS &amp; Raspberry Pi). Sometimes it&#x27;s the fastest way to prototype an idea - it works a lot like Visual Basic &amp; Delphi did.<p>I&#x27;ve used it to make a business dashboard for my indie software business, a schedule estimating app using &quot;evidence based&quot; Monte Carlo methods, and I was working on a cross platform Micro.Blog client (inspired a lot by Tweetbot).
lovelearning超过 5 年前
I don&#x27;t but my dad does. IBM BASICA interpreter from the 80s. I setup DosBox to run it on Linux.
dwculp超过 5 年前
Not really, I dont have any real need to. BASIC holds a special place in my heart as it is where I started in 1979....ish. However, I have very little reason to use it now. There are better and more powerful options today.<p>I teach kids to program via an after school robotics club and Python is so much easier and more powerful than BASIC ever was.<p>Occasionally I get nostalgic and break out a BASIC and its fun for a bit but I quickly realize how clunky the language really is.
rodbird超过 5 年前
Yes, I use Liberty BASIC V4.5.1. I started programming for fun and relaxation when Sinclair Spectrums first appeared, then on to Commodore and Amstrad. Then it all died down a bit real work intervened and in the meantime BASICs got super complicated. My first reentry was to Visual BASIC uggg… Then I found Liberty, super easy BASIC control of Windows.
unwiredben超过 5 年前
The scripting language used for developing Roku channels is BrightScript, which is based on BASIC syntax with some bits of other languages thrown in.
zeko1195超过 5 年前
Beginners All Purpose Symbolic Instruction Code. What a beauty.
评论 #21778411 未加载
kgwxd超过 5 年前
Just on the Commander X16. The built-in interpreter is 100% backwards-compatible with the VIC-20 and C64.
评论 #21774767 未加载
Nzen超过 5 年前
I work at a company that makes a niche ERP. The owner wrote the original in Basis International&#x27;s BBX. Within the last ten years, the company ported the ERP to Java. But, we still use it as a code generator for our dao layer and half the views. Quarterly, I&#x27;ll go in there to change the templates to improve our dao.<p>It gets the job done. Part of my reticence is ignorance. I might have a meaningful opinion if I were familiar with more than just println and single line if&#x2F;else. I am glad I don&#x27;t need to plan for line numbering in any other realm.
ryanmercer超过 5 年前
Erm, sorta. Does Atari BASIC count?
Jamwinner超过 5 年前
I ocassionaly use it, but mostly only for toy projects. All the basic code I write is pretty interpreter agnostic after moving from applebasic to msbasic in the 90s. It comes down to what is available on whatever platform I am playing with now.
crtlaltdel超过 5 年前
The last thing I did in a BASIC dialect was VB.NET circa 2007-8 and was a service in a .NET webapp backend. At the time I was a EE with limited professional programming experience outside of small personal utilities. Like a lot of people I had first encountered BASIC with the Apple II in a school computer lab around 1995 and built some small text adventure games with it.<p>I echo the sentiment of proxybop; the ability to type things and see something happen is a powerful motivator in learning to code. As a lot of commenters point out, Python seems to have largely replaced BASIC as the &quot;beginner&quot; language to help teach folks. The REPL reinforces this, imo.
klondike_klive超过 5 年前
I seem to remember that my ZX81 Basic allowed a computed &quot;goto&quot; statement, which my later Amstrad BASIC didn&#x27;t. I mostly used it for type-ins from magazines. I also had a little dabble in machine code (nearly forty years later I still remember the opcode for Return is &quot;C9&quot;) but the learning curve was too steep for me to do anything much. I still wonder whether given tutelage or encouragement in programming I could have got way more out of my computer as a child.
评论 #21792299 未加载
ocdtrekkie超过 5 年前
Does Visual Basic .NET count? Because I still code in that with Visual Studio 2019.
评论 #21774814 未加载
WaltPurvis超过 5 年前
I code in BASIC all day, every day, developing an application with Xojo. (<a href="https:&#x2F;&#x2F;www.xojo.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.xojo.com&#x2F;</a>)<p>It has some issues, but it&#x27;s still probably the best possible tool for making cross-platform desktop applications.<p>I really enjoy the expressive power and&#x2F;or other features of Swift, Go, and a few other languages, but if I could write code in only one language it would be an object-oriented BASIC like Xojo.
CarlGundel超过 5 年前
Another point worth making is that there is no right or wrong language in many cases. If you enjoy programming in BASIC, or C, or SNOBOL, or bash, or Python, go knock yourself out. There&#x27;s really no good excuse for language snobbery.<p>If you need to program in a particular language at your place of work, or you want to learn a language to compete for a job then that&#x27;s a different matter. ;-)
CarlGundel超过 5 年前
I do code in BASIC a lot, but I admit to using my own compiler called Liberty BASIC so I am biased. I do see a lot of people complaining that BASIC isn&#x27;t modern but this just isn&#x27;t true today. There are many versions of BASIC and a lot of them do have modern structure and scoping and some even add object oriented features. Python isn&#x27;t the new BASIC. BASIC is alive and well today.
Phylter超过 5 年前
Does VB.NET count? I code in that all the time but only because my employer makes me.<p>I still break out the QBasic once in a while. I have it in DosBox for when I get the itch. In AppleWin I toy with Applesoft Basic. I also play a bit with QB64 which is a modern QBasic clone.<p>Normally I write code in C# or Python though. C# is my main language and it&#x27;s what puts food on my table.
julienfr112超过 5 年前
python is the new basic
评论 #21775375 未加载
omarhaneef超过 5 年前
Only if something really can&#x27;t be done in excel natively -- and that gets more rare every year.
mattmoose21超过 5 年前
I wrote some on-printer programs in basic recently as it was the only thing the printers could run.
gregjor超过 5 年前
Yes, but it’s called Javascript now.
评论 #21774668 未加载
评论 #21776017 未加载
saundby超过 5 年前
Yes.<p>XBASIC, QB64, and various BASICs specific to old computers I still use, like MBASIC on my Osborne 1.
ninjis超过 5 年前
Yes, a derivative called UniBasic (which is itself a derivative of Pick BASIC) but the system it&#x27;s used with provides an additional set of extensions to the language. UniBasic + extensions results in a language referred to as Envision.
评论 #21787510 未加载
WorldMaker超过 5 年前
Unfortunately I still have to do maintenance on ancient VB6 code. I&#x27;d rather not, and have been working to reimplement it in more modern environments, but you go to war with the budgets you have not the budgets you wish for.
spalt超过 5 年前
We still do some development in .NET 3.5 VB (huge health care company). It rules and I love it. We do angular, node, c#, yadda yadda, also, but I will always return to my #1 (and first) love, BASIC.
chr超过 5 年前
Nah.<p><pre><code> (prog () 10 (print &quot;hello&quot;) 20 (go 10))</code></pre>
illegalsmile超过 5 年前
I don&#x27;t call myself a programmer at all but all my environmental dataloggers are programmed using CRBasic so yes I still write code in some form of BASIC if that counts.
ksec超过 5 年前
I know there are still a lot of VB6 Apps in Small to Medium Business. And Visual FoxPro, which has a languages 99% similar to BASIC is still being used as well.
ddgflorida超过 5 年前
No, but hard to beat Classic ASP for simple web apps. I wrote a BASIC interpreter with built-in SQL that was very useful for scripting.
dejv超过 5 年前
No, but I’ve jut seen kit of scientific gear (ADC module) that boasted about having examples in both fortran and basic to make integration easy.
CarlGundel超过 5 年前
Thirty+ years ago BASIC became a modern structured programming language, but so many people seem ignorant of this.
pubby超过 5 年前
Nope!
russh超过 5 年前
Occasionally, in tiny basic running on an Arduino powered robot when teaching classes at our local Makerspace.
jonathanstrange超过 5 年前
I have an app for my own use written in Purebasic. I occasionally recompile it to keep it up to date.
vb6sp6超过 5 年前
vb6
评论 #21775474 未加载
gourabmi超过 5 年前
The last time I used BASIC was in 2001. QBASIC was &lt;3
评论 #21779725 未加载
sdinsn超过 5 年前
Still? I never have
zzo38computer超过 5 年前
I still use BASIC for writing DOS programs.
bsdimp超过 5 年前
The last actual BASIC I wrote was in 1985.
评论 #21775638 未加载
DannyB2超过 5 年前
10 CODE IN BASIC<p>20 ???<p>30 GOSUB 10<p>40 PROFIT!
smnplk超过 5 年前
qbasic 4.5