[ art / civ / cult / cyb / diy / drg / feels / layer / lit / λ / q / r / sci / sec / tech / w / zzz ] archive provided by lainchan.jp

lainchan archive - /λ/ - 21654

File: 1485473928495-0.png (116.21 KB, 300x231, visual-basic.jpg)


Is there a place for BASIC in XXI century?
It seems there's not, since this niche is already filled with Python, but some things like indentation for everything in Python harass me.

What can you say, Lain?
Do people really not need BASIC?


As a disclaimer this will be a low quality post, but in regards to python you got to admit that the indentation gives it schway a e s t h e t i c s.

But to address the op, I have't seen anything in regards to VB developement. I think VB might still have a home with VB.NET and tooling for things like sys-admin things (in Windows) and tools for generating reports in Access/Excel etc... those sorts of things.


>but in regards to python you got to admit that the indentation gives it schway a e s t h e t i c s
Well, yes, when I learned this language in the first time, it even seemed nice.
I'm not talking about VB, it's just an a e s t h e t i c picture for OP. I talk about Basic in wide sense.


I've never considered the anti-forced-indentation argument to be a good one. Any sane developer will be indenting their code anyway, so what's the problem with giving it semantics, rather than requiring braces, begin/end, or some other delimiter?


I don't have a whole lot of windows experience but my understanding is that VB was great back when writing a com object was a giant pile of boilerplate crap in C/C++, and now that you have C# it's not necessary unless you like using VB.

Using whitespace means your editor can't easily understand when you are exiting a block, and you end up tabbing and shift-tabbing when you can just end a block with a brace and the editor automatically knows where to place the cursor.


VB was completely changed after v6, its now a lot more like C# to the point where I dont see why MS has two languages that do the same thing



indentation makes python a pain in the tits to teach kids.

"ok you see those invisible things? well you need the same number of those at the start of every line you want part of the if but there are different types of invisible thing and you can can't mix them."


"if x { } does everything in between those squigly things if x is true"



On a whim i actually downloaded and tried out vb6 under windows xp today (in a vm).

It's heinously gray, kind of like licking a dusty cheap suit, but it does exactly what you want if you're making little CRUD apps that talk to commercial MS/Oracle databases or import data from excel sheets or whatever.


Did you really taught kids Python?


"kids" may be a bit loose of a term as may the term "teach", but I've got some 7-11 year olds writing basic python.


VB has as much of a future as AppleScript (ie none outside of a very small niche).
I'm not sure what language I'd teach to children. Scratch would probably be fine, its merit being that it's just blocks so kids don't have to worry about syntax errors. Logo would also be good because of its very minimal syntax.

As for the forced indentation, I don't see the problem with it outside of ease of editing; you're gonna indent that code anyway, so it's probably better to do it asap.
People also seem to forget that Haskell has that too (and its rules are much more complex than Python's[0]), and I don't see many people complain about that.

[0] http://trevorjim.com/haskell-is-not-context-free/


Isn't Haskell able to have braces?


Yeah, but I haven't seen them used a lot in the Haskell code I read. (Granted, I haven't read much Haskell.)


Nothing, as long as every developer is sane and refuses to use tabs. But when multiple developers work on a single piece of code and you start mixing tabs and spaces, it quickly becomes a nightmare.


>as long as every developer is sane and refuses to use tabs
this is objectively wrong


>if I use the word objective, people will be forced to accept my stupid opinions
lets try to at least maintain some standards here in programming discussians


I disagree. Let's maintain all of the standards when discussing things here.


To be fair, Python codeguide requires to use 4 spaces as indentation.
It doesn't justify using indentation blocks as code blocks, duh.


Please the thread be up
bump it