by silasdb on 10/15/20, 5:44 PM with 31 comments
by karmakaze on 10/15/20, 8:04 PM
What's with the uppercase keywords? It was fine in BASIC and okay in SQL but I don't want to hold down my shift key that much while coding.
by dTal on 10/15/20, 9:55 PM
by stevefolta on 10/15/20, 9:30 PM
by msoucy on 10/15/20, 7:43 PM
by bsder on 10/15/20, 10:21 PM
The problem is that any small language must have a way to reliably manipulate integers properly, or it's just not getting anywhere. It's okay for that to not be the default, but it must exist.
by braindongle on 10/15/20, 10:17 PM
If I'm teaching an intro class using a general purpose language, it's Ruby or Python. My heart lies with Ruby, but having basic Python chops is such a bigger win downstream.
for i in range(1, 101):
if i % 15:
print ('FizzBuzz')
elif i % 3 == 0:
print ('Fizz')
elif i % 5 == 0:
print ('Buzz')
else:
print (str(i))
(1..100).each do |i|
if i % 15 == 0
puts 'FizzBuzz'
elsif i % 3 == 0
puts 'Fizz'
elsif i % 5 == 0
puts 'Buzz'
else
puts i
end
end
by Konohamaru on 10/15/20, 8:37 PM
by hhas01 on 10/16/20, 9:25 AM
and:
“TODO: Tutorial goes here”
Says it all, really.
..
Pascal is [thataway](https://www.freepascal.org/) for those that care.
by mastrsushi on 10/15/20, 11:23 PM
by khazhoux on 10/16/20, 12:14 AM
> print("Hello, World.")
Literally the least interesting thing about any language.
by marethyu on 10/15/20, 11:07 PM