23 ms·
Microsoft Small Basic
- rottyguy 11y agoI like the idea of a lightweight programming language/environment dedicated to entry level learners. Perhaps what would also be interesting is having a basic-esq L/E for whatever programming paradigm that is useful (procedural, oop, functional, etc.)
- tajen 11y agoIsn't Javascript already suitable for that?
- dr_zoidberg 11y agoJavascript is a mess even programmers don't seem to understand at times, I never understood why people would want to teach it to people without any programming knowledge.
- veli_joza 11y agoI think JS is perfect choice for first language. Sure, there are many rough edges and dark corners. On the other hand, it's fun, it's safe to experiment (because it's sandboxed), very easy to deploy and show friends, and it's quite usable language for all sorts of applications. There are more elegant languages (lisp, lua, scala, python) but they fall short at some of mentioned points.
- moron4hire 11y agoI don't think it's a perfect choice. I think it's a choice that makes it the "least bad" of a range of languages for a given set of assumptions and compromises. If I could waive a magic wand and make the perfect beginner language, it would not be JavaScript.
- untog 11y agoJavascript is a mess even programmers don't seem to understand at times I assure you, JavaScript programmers understand JavaScript. No need to project onto others.
- mratzloff 11y agoHaving interviewed quite a number of self-proclaimed JavaScript developers over the course of my career, my experience is that this is debatable at best.
- Turing_Machine 11y ago1) No installation, compilation, or packaging required 2) Runs essentially everywhere 3) Practical (lots of jobs, syntax is close to that of other important languages) 4) Easy to share your creations with friends (see 1 above) 5) Has REPL, garbage collection, closures, objects, recursion, anonymous functions... soon to have TCO. 6) Can be a compilation target for other languages 7) Good libraries for media, 3D graphics 8) Hard for a beginner to trash the machine (at least with browser-based JS, Node of course is a different story) Yeah, it's pretty ugly in spots (it's certainly not as aesthetically pleasing as Scheme), but there are some real advantages there.
- ams6110 11y agoNot sure about the jobs (3) thing. It's a bad idea to focus on language popularity when starting out programming, because that changes rapidly. Javascript has only been really popular in the last few years. Who knows what will be popular five years from now. Learn to program. Don't worry so much about the language.
- rottyguy 11y agoAs is C# and a host of others. Was just thinking specialization instead of generalization...
- mpdehaan2 11y agoI think if you want people to enjoy what you build, JS is probably the quickest route. And I think you see it being used in "intro" programming courses to teach middle school or high school kids for that reason -- it quickly shows something visual where platforms, dependencies, and complex libs have made that harder elsewhere. It's unfortunate it's a mess of a language and evolving too rapidly. GWBasic, QBasic, and later TI-Basic were some of my first major forays into software, and I worry a bit when there's not a super easy way to get a game out there - however simple, because those are great gateway drugs. For BASIC, this meant easy access to graphics modes, and some basic "BEEP" and noise playing ability. These were all installed by default -- something that's not true of most programming tools today (well not entirely, OS X does have them! But not game/graphics libs), and having the source code to things like gorillas and snake helped. Many people could discover them completely by accident and boom, you're a programmer! And that's all you need. JS has a bit more learning curve. OT: I think the glossy production of games these days may also be a negative factor, for those that know they can take millions of dollars, people trying to reproduce this result at a young age (or even as older hobbyists) may get disllusioned, give up, and not build something. Just as DevOps culture has encouraged sharing how tools works at meetups, I wish this happened more for indie/homebrewed game development.
- bphogan 11y agoI have taught JS in higher education to complete beginners for three years now and have been very successful doing so. The secret is that you teach how to program, not how to JavaScript. How to program is entirely different. It involves breaking down problems, creating abstractions for those problems, and turning them into code. And JavaScript is the one language that gets out of your way and lets you create programs that give new learners immediate feedback in a web browser. Python and Ruby are great and all, but this is 2015 and new students are not that interested in black and white terminal applications. JS and HTML make it easy to make things closer to what they experience. People my age learned to program while playing text adventure games. People now want to make mobile games, XBox games, or, at least, web things. And JS makes that easy. In full disclosure, I don't much like JS. But I know it quite well.
- keithb- 11y agoI agree with this sentiment. We don't need new, simpler languages to teach programming concepts; we just need a better approach to teaching. We don't skip teaching the English language to toddlers in favor of a simpler one. I learn "cat" before "encyclopedia" and "hungry" before "enlightened". Programming languages have similar levels of abstraction so one can start with basics and allow the growth/understanding/grok to come from exploring the depths of abstraction inherent within. I think the intention here is to somehow reach a point where the understanding is complete. As if one can say "There, now I understand all of [insert programming language]." and tick off some item on their career progression or bucket list. It's simply not like that.
- keithpeter 11y ago"We don't skip teaching the English language to toddlers in favor of a simpler one." Well, they used to for a bit in the UK https://en.wikipedia.org/wiki/Initial_Teaching_Alphabet https://en.wikipedia.org/wiki/Initial_Teaching_Alphabet as a result of which I still (5 decades later) sometimes have to stop and think about the spelling of quite routine words. So I agree - toddlers get a subset with a restricted vocabulary and simple grammar but one that is actually a subset of English. Now - if I wanted to learn enough Javascript/CSS/Canvas stuff to make a series of 'drag-gable diagrams' for use on an interactive whiteboard (e.g. area of trapezium or pythagoras' result) where shall I start? I have the head first book and I sort of like their approach.
- dhimes 11y agoThe "about" book implies that you should have some experience in programming language first. However, there still exists something called qbasic, however, to replace the old gwbasic from days of old. EDIT: passage from book/site: "As far as programming skills, we assume you have had some exposure to computer programming using some language. If that language is Small Basic, great!! We offer two beginning Small Basic tutorials that could help you gain that exposure (see our website for details). But, if you’ve ever programmed in any language (Visual Basic, C, C++, C#, Java, J#, Ada, even FORTRAN), you should be able to follow what’s going on." Link: http://social.technet.microsoft.com/wiki/contents/articles/16387.the-developers-reference-guide-to-small-basic-1-introducing-small-basic.aspx http://social.technet.microsoft.com/wiki/contents/articles/1...
- ska 11y agoHave you had a look at http://racket-lang.org/ http://racket-lang.org/ and the associated books?
- meta0bject 11y agoSmalltalk is that, at least for OO (though it does have lambda objects too).
- deleted 11y ago[deleted]
- dr_zoidberg 11y agoWell, if my nephews ever want to take on programming this might be a good place to start. Simple syntax, simple concepts, even the posibility of third-party libraries? Sounds interesting for teaching the young (and not so young too, but at that I'd prefer Python because of it's easier "real world usage" -- this does seem a bit too oriented at "toy programming").
- yoha 11y agoNitpick: *its
- nly 11y agoHmm... nah, go straight to Haskell ;) Just imagine them in 5th grade trying to explain Monads to their friends.
- BFay 11y agoYeah, it would be interesting to learn about pure functions and referential transparency before basic algebra.
- nine_k 11y agoIt would be easy to understand algebra in school.
- MichaelGG 11y agoIt certainly does! Having "programmed" since I was ~5, the concept of variables and that level of indirection was second nature. I was truly astounded when other kids had trouble. Even cooler, these days, is Dragon Box. It teaches kids symbolic manipulation via a cute and fun game. Starts off with little creatures you move around, then simply changing the drawings from creatures to numbers and letters makes a seamless transition.
- JadeNB 11y agoI'm not sure if this is sarcasm, but it's not clear to me that it's not actually a potentially good idea, in two ways. The first, important, way is that a tool that offers solid theoretical foundations does not (necessarily) require those foundations. You mention algebra, for example, and it's fair to assume that most school students (and probably their teachers!) don't really appreciate the theoretical grounding of algebra—but they can still hopefully use it with proficiency. In the same way, pure functions and referential transparency need only be difficult to apprehend if you insist on investigating their theoretical foundations; they can just be the way things work, and, if this is a first programming language, then there are no habits regarding mutable state to unlearn before being able to handle immutability. The second is that, as nine_k (https://news.ycombinator.com/item?id=9982600 https://news.ycombinator.com/item?id=9982600) points out, learning these concepts before algebra could make understanding algebra itself easier. There are deeply mathematical ideas in the foundations of most programming, even if they are (and even when they should be) hidden, and learning these ideas can help one to come to grips with abstraction in a context that encourages play and experimentation, unlike (unfortunately) the usual mathematics classroom.
- euroclydon 11y agoIf I put my kid in front of a modern Windows PC, leave them alone for a few hours, and hope they learn something, I'm not very optimistic. Let's say I install Small Basic on Windows 8.1 or 10. So now I've put my kid in front of an operating system that has such a high-level UI that it doesn't even have a proper list of programs. The media consuming portion of the OS is so heavily emphasized over the creative portion of it. You can see this because the OS is designed to be used without a keyboard!! PCs are entertainment devices. Designed for watching Netflix, visiting Facebook and listening to music. This is like putting a small piece of Broccoli in the middle of a bowl of ice cream. No thanks!! I'll find a minimal windows manager for linux. Something that can be invoked just to get the window for the game they're writing up and running.
- jbb555 11y agoFrom the FAQ "To install Small Basic, you have to be running Windows XP, Windows Vista, or Windows 7." So it's not a problem then :P
- Turing_Machine 11y agoThis and the Silverlight thing made me wonder if this was a zombie project running on autopilot. The blog is still being updated regularly, though, so I guess not. :-)
- bargl 11y agoPut them in front of windows 10 with Visual Studio 2015 Community Edition installed.... I get the lock it down to command line only so they can learn the way I did mentality. I'm going to do the same thing to my son, but I'd say that Windows 10 is an entertainment device is going a little far. Windows has long been the enterprise software of choice for buisnises, MS Office? On top of that most of the software you list is all on the web (Netflix, Facebook), so the internet could be said to be all about entertainment. But again that's an oversimplification. The main contention I can see with windows 8 are apps (which treat it like a phone) windows 10 kinda gets away from that by making all apps windowed (like windows). I find Windows 8 is easier to use with just a keyboard at times. The windows search functionality is great, and they've improved many of the commands. If your kids can get at the internet they can get at entertainment. But if you cut off the internet then you cut off their ability to research the problem.
- overlord_tm 11y agoAm I the only one getting "HTTP Error 503. The service is unavailable." on the link?
- Tomte 11y agoMaybe HN is too much for MS? :-) Half an hour ago it was still working fine.
- Gys 11y agoI get a 503 Service Unavailable ?! Anyways, it probably did not change much in the last few days: https://web.archive.org/web/20150727212504/http://smallbasic.com/ https://web.archive.org/web/20150727212504/http://smallbasic... Its good this is (still ?) available. But I would prefer my friends or kids to learn in a more platform independent way. Like Python.
- yoha 11y agoNitpick: *it's
- kbenson 11y agoHave you ever looked up the definition of nitpick? I just did on a few different services. It's not flattering, and provides a good narrative for the downvotes.
- yoha 11y agoThanks for the explanation, I am not a native English speaker. According to https://en.wiktionary.org/wiki/nitpick https://en.wiktionary.org/wiki/nitpick, the literal meaning is exactly what I meant: I was doing a small correction without much importance. I did not know it was negatively connoted.
- kbenson 11y agoHow negative it's interpreted is likely related to view relevant it is and how much it detracts from the discussion. If that nitpick was a rider on a salient point, I doubt people would have downvoted.
- yoha 11y agoThat's why I wanted to keep it short, but still commented: it's a typo that is quite disturbing to the reader, especially non-native English speakers.
- 11y ago
- moron4hire 11y agoRecently ran across this, another MS research project: https://www.touchdevelop.com/ https://www.touchdevelop.com/ It runs completely in the browser. There are some interesting things in the interface, stuff I had even been considering adding to my project, like a full on-screen keyboard with special keys.
- lloydde 11y agoIs Small Basic a Microsoft Research project?
- moron4hire 11y agoWell, it's an MS project. It was early, I didn't really think through my typing well.
- timthorn 11y agoIt'll be the main dev environment for the micro:bit - https://www.touchdevelop.com/microbit https://www.touchdevelop.com/microbit
- bam365 11y agoI'd like to be positive about this especially considering the thought behind it, but...this is bad. I read the tutorial PDF hoping not to find BASIC-style unstructured programming. I was disappointed. QBASIC was the first language that I learned as a kid, and I regret it to this day. Learning to solve all my programming problems using GOTO in such a formative time set me back months when I finally moved to structured programming languages. In addition to that, the syntax of this language is so inexplicably heavyweight that I feel like "SmallBasic" is an intentionally ironic name. I'm assuming that this article is apropos of the article posted on HN earlier today about how Python is the new BASIC, as far as educational languages are concerned. I agree with the sentiment. These days, we can and should do a lot better than BASIC as a first language for kids.
- recursive 11y agoYou can only blame yourself for overusing goto in qbasic. It had functions, loops, block ifs, and all the other staples of structured programming.
- JadeNB 11y ago> You can only blame yourself for overusing goto in qbasic. It had functions, loops, block ifs, and all the other staples of structured programming. When talking explicitly about children beginning programming, I think "you can only blame yourself" is overly harsh. I would certainly say this of a seasoned developer; but a child just starting will—and, I think, should!—do whatever the language allows him or her to do, and it is too much to expect such a child to see, before the bad habit is ingrained, the price that he or she is paying for the apparently wonderful freedom of navigation that GOTO affords. An introductory language should, I think, be very opinionated in matters of underlying structure; just having good options is not enough, if they are not forced (or at least strongly impressed) on the novice who doesn't yet know to use them.
- pmelendez 11y ago>"QBASIC was the first language that I learned as a kid, and I regret it to this day" GWBasic was my first programming language and I don't regret it at all. It enabled 9-years old me to start messing around with programming without too much hassle and honestly using (or abusing) goto then didn't interferred when I have to learn Scheme(my second language) at the university. For a young kind (<10 years old), sequential unstructure programming is more natural and easier to pickup. I remember having struggled with For statements when I was using basic and I really appreciate them way later in life. Also, why so much hate to goto? there are not many alternatives if you are programming in assembly anyway.
- stephengillie 11y agoQBasic was the first programming language I learned, so I was curious: > How is it different from QBASIC? > Unlike QBASIC, Small Basic is based on .Net and can consume (not produce) "Objects". > It supports distinct Operations, Properties and Events. > It doesn't have GOSUB :) So this looks like an Object-Oriented QBasic. Awesome!
- curiousjorge 11y agosame here. My first run into with Basic was when I was 6 with an MSX. I was captivated by it but didn't understand what the white letters against the blue background meant. (MSX was ironically more popular in Asia than America where it was built by Microsoft). Pretty soon I got my own but it was a Korean version of MSX with only games on it. My friend had the MSX with keyboard and he showed me how to type stuff on it but we played games. It was interesting since I began to wonder how these games were made. Then later, I had an old intel 286 with monochrome monitor during the mid to late 90s. No internet, just a thick book about Qbasic from the public library, and me trying to create games on it. The thought of making my own video game was more than enough of an incentive to learn yet to this day I have not achieved it as I keep telling myself it's too hard, too much time. Then came DarkBasic when I was reading PC Gamer in the late 90s and I got so excited about it. Downloaded it over the 56k modem (couple hundred megabytes) and fiddled around with 3d stuff. I learned how to make 3d models with animation in TrueSpace. But never got to make a complete game, just lot of new projects that never went anywhere. The most I got was creating a FPS level using sphere as the 'skybox'. It was so exciting to create my own world using photo textures and add lighting which gave it pretty good look. Gives me a huge shot of nostalgia just thinking about it and other early demos in DarkBasic. The UI was literally had a dark feel to it and that made it even cooler. I've always thought that BASIC had a lot of things right in terms of being newbie friendly, I mean it was easy enough for a 10 year old so. It's what sparked my early interest in programming. Even in the early 2000s we were using Visual Basic in high school, we could create a lot of neat things with it. Gui apps that just sorta worked. Anybody could pick it up and yes, students of all shapes and sizes were able to follow along and create things on their own. Everyone was coding. Compare that with today with the myriad of frameworks and hundreds of different opinions happy to rip each other apart for the sake of ideology. A much less inviting community core (ex. stackoverflow) to new comers asking "dumb" questions and being punished. We seem to be going through a very chaotic period in the development world where Javascript is suddenly king and simplicity and user friendliness is shunned.
- ErikRogneby 11y agothis held my interest until I clicked play on one of the featured games and it wanted me to install silverlight.
- ninkendo 11y agoThe most useful thing about this site was that it reminded me I needed to uninstall Silverlight (dodged a bullet there!) Edit: that came out wrong... I'm sure the site serves a legitimate purpose in education about programming, which is certainly useful. I guess I meant "the most useful thing for me".
- rbanffy 11y agoLearning BASIC made sense in the days of the Apple II or the Atari 800. It provided a nice-ish low-level abstraction of the computer, with PEEKs, POKEs and GOTOs to numbered lines. Today, with Ruby, Python and so many others providing simple ways to write simple programs, as much as it served us well in the 80s, we should let BASIC die rather than trying to mutate it into something that has no longer a place in this world.
- _vijaye 11y agoAuthor here. I made Small Basic when I was in MS in 2008. My goal then was to remove programming language ceremony (imports, defs, etc.) and get to instant gratification. There are several others that are keeping it alive with a well maintained blog (https://social.msdn.microsoft.com/Forums/en-US/home?forum=smallbasic https://social.msdn.microsoft.com/Forums/en-US/home?forum=sm...) and a friendly forum that welcomes programmers of all age and expertise. There's even a strong community in a Facebook group (https://www.facebook.com/groups/smallbasic/ https://www.facebook.com/groups/smallbasic/) PS: I need to find a better host for the website.
- furyofantares 11y agoThis project makes me really happy. My first programming experience was modifying numbers I found in GORILLAS.BAS to see what would happen. I didn't know I wanted to learn to program or even what that meant. But the only way I knew to play the game was to open the source file and then run it, which made me curious. I couldn't understand it, but it wasn't unintelligible, either. Being a single text file without a lot of programming ceremony was probably a big part of that. You just start reading top to bottom and that's exactly how it's executing at the start of the file (before you get to subroutines of course).
- zamalek 11y agoThat's my story, too. The only difference is to edit the BAS I would need to restart the computer: I didn't have a VGA card so I ran a TSR VGA emulator (called 'phix'). It broke the QBasic editor. So even back then I was learning about the high cost of changes. I eventually cleared out the BAS due to a mistake I made while working with the editor that I could not see.
- meta0bject 11y agoSince you're the creator, I'd like to ask you, why BASIC and not Smalltalk? You mention a desire to eschew boilerplate and provide instant gratification--doesn't Smalltalk provide that as well if not better than BASIC?
- byron_fast 11y agoIt's nice Basic is still around. But SmileBasic is far, far more interesting: http://www.smileboom.com/product_nintendo3ds.php#01 http://www.smileboom.com/product_nintendo3ds.php#01 Basic should be fun to learn, and being able to program the 3DS - with a nice library of game-ish sprites and sounds - gets you to fun a lot faster.
- donut 11y agoThat does look pretty interesting. Here's the english-language page with examples: http://smilebasic.com/en/ http://smilebasic.com/en/ Wish I had this when I learned to program :-) Edit: and this hilarious video with english subtitles! https://www.youtube.com/watch?v=IgnAmLwtP6Q https://www.youtube.com/watch?v=IgnAmLwtP6Q
- __sbrk__ 11y agoOpen-source and, best of all, not polluted by M$: http://smallbasic.sourceforge.net/ http://smallbasic.sourceforge.net/
- meta0bject 11y agoI understand that a lot of programmers started with BASIC at a time when Smalltalk was out of reach, but now that we have free, open source distributions like Squeak and Pharo, what possible advantage could BASIC still offer, other than nostalgia?