[ 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)

No.21654

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?

  No.21656

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.

  No.21658

>>21656
>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.
>VB
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.

  No.21659

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?

  No.21660

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.

>>21659
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.

  No.21662

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

  No.21664

>>21659

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."

vs

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

  No.21666

>>21654

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.

  No.21669

>>21664
Did you really taught kids Python?

  No.21671

>>21669
"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.

  No.21672

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/

  No.21673

>>21672
Isn't Haskell able to have braces?

  No.21675

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

  No.21677

>>21659
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.

  No.21691

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

  No.21694

>>21691
>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

  No.21696

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

  No.21700

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

  No.21740

Please the thread be up
bump it