I've recently discovered this gem of a programming language:
class SmallSample
var _random = Random()
def randomString(length as int, alphabet as String) as String
require
length > 0
alphabet <> ''
ensure
result.length == length
test
u = Utils()
assert u.randomString(5, 'ab').length == 5
s = u.randomString(1000, 'a')
for c in s, assert c == 'a'
body
sb = StringBuilder()
for i in length
c = alphabet[_random.next(alphabet.length)]
sb.append(c)
return sb.toString
def main
alphabet = 'abcdefghijklmnopqrstuvwxyz'
for i in 10, print .randomString(10, alphabet)
As you see from the sample:
Integrated pre and post-condition checking
Integrated unit testing
Python-like syntax (it's actually much cleaner than Python)
What you don't see from the sample:
Performance similar to Java, C#
Seamlessly supports both static and dynamic typing (favors static typing)
CLI-compliant, compiles to .NET assemblies, currently runs on Mono and .NET (JVM port in the works). So you get to use all the .NET framework libraries and awesomeness just like under C# or your favorite .NET language.
Debugging and syntax highlighting under Visual Studio 2010
I've been messing around with it for a few days now, and I'd say that if they can get Intellisense working in VS2010, I could very well switch from C# to that for my personal projects.
No. This only ragebaits clueless internet dwellers who have never worked in IT.
Yes bugs exist, but they affects unmanaged PCs, but also any problems are normally a tiny percentage that's greatly amplified by being on Reddit and by other clickbaity media.
In any mid-big business, the IT dept will manage every device, test updates on a few devices in a 'testing ring' before general deployment, and will generally just delay updates to be sure and that's it.
Agreed. I am responsible for 25,000 users across 17,000 devices and while it is far from perfect, our experience doesn’t drive me to rage about things.
Except these corporate IT Administrators could disable CoPilot in their environments if they wanted. This just seems like complaints from inexperienced Administrators
Question
Andre S. Veteran
I've recently discovered this gem of a programming language:
As you see from the sample:
What you don't see from the sample:
http://cobra-language.com/
I've been messing around with it for a few days now, and I'd say that if they can get Intellisense working in VS2010, I could very well switch from C# to that for my personal projects.
Edited by Dr_AsikLink to comment
https://www.neowin.net/forum/topic/957422-cobra-programming-language/Share on other sites
12 answers to this question
Recommended Posts