• Favorite / Most Used Language
    62 replies, posted
tricked lol [QUOTE=djjkxbox;52742083]Not that jQuery is necessarily bad, but I think you get more benefit out of writing ES6 JavaScript and passing it through Babel, or using a JavaScript pre-processor like TypeScript or CoffeeScript. Plus doing either of these doesn't require the user to download an external library[/QUOTE] i think a selling point of jquery is that you don't have to think about old browser bugs and inconsistencies because it handles them for you ctrl+f "// Support: " in [url]https://code.jquery.com/jquery-3.2.1.js[/url]
[QUOTE=%%;52742235]tricked lol i think a selling point of jquery is that you don't have to think about old browser bugs and inconsistencies because it handles them for you ctrl+f "// Support: " in [url]https://code.jquery.com/jquery-3.2.1.js[/url][/QUOTE] I guess, although personally I've not ran into too many bugs, but it does depend how far back you're supporting. Usually it's more a case of certain browsers not supporting certain features, but they're easy to check for, and you can refer to [url]http://caniuse.com[/url] too
My favorite is C++, but I primarily code in C# since it's more convenient for writing tools. When it comes to scripting languages, my first choice is Lua. As for my most hated language, VB.NET takes the cake. Now for something a little more controversial: I absolutely hate Python. The only time I've ever needed to use it was for Blender scripts, and everything I do can usually be done in C# fairly easily. I also feel conflicted when people say Python is "easy to learn," because I've had anything [i]but[/i] an easy experience with it. Maybe someday I'll finally learn to accept Python, but right now I couldn't care less for it.
My favourite is and will probably always be C#. I started on it and mono now exists so.. woo. My most used at the moment is Java, been writing a native Android app.
[QUOTE=CarLuver69;52745003]My favorite is C++, but I primarily code in C# since it's more convenient for writing tools. When it comes to scripting languages, my first choice is Lua. As for my most hated language, VB.NET takes the cake. Now for something a little more controversial: I absolutely hate Python. The only time I've ever needed to use it was for Blender scripts, and everything I do can usually be done in C# fairly easily. I also feel conflicted when people say Python is "easy to learn," because I've had anything [i]but[/i] an easy experience with it. Maybe someday I'll finally learn to accept Python, but right now I couldn't care less for it.[/QUOTE] Python is the main language I use and I do find it straight forward, I am by no means a decent programmer/coder or whatever but from all the languages I know or have tried to learn Python has been the easiest and most practical for my line of work. All I can say is that if you ever need it again stick with it and there are generally a fair amount of different ways you can get to your end result, some will be more difficult than others which understandably makes it a little more confusing because why have more than one way to do something, it's just how Python. If you can do Lua you can do Python.
[QUOTE=CarLuver69;52745003]When it comes to scripting languages, my first choice is Lua. As for my most hated language, VB.NET takes the cake. Now for something a little more controversial: I absolutely hate Python.[/QUOTE] Really wonder what you found bad about Python when you had no problem with Lua
I love C# and use it for work (Xamarin Forms) Dislike Java, and i'm not a big fan of Lua. PHP isn't bad (but i guess it does not count, does it ?)
PHP is a language, not everyone's first choice though
Most used is PHP, and is also my favorite. But I don't mind the occasional C#.
My favorite is C but I use Java the most... mainly because I'm too lazy to cross compile..
[QUOTE=Clive;52745233]Python is the main language [/QUOTE] 100% agree as someone who studies programming and algorithms on his spare time I found python to be the closest thing you can find to working pseudo code. It's easy to read, has a lot of libraries with functions and methods that save you time and hassle and you can quickly try out something and see the results. I know at some point later on I will need it for my job as a data analyst at a company so learning it now is better than later.
[QUOTE=suXin;52745350]Really wonder what you found bad about Python when you had no problem with Lua[/QUOTE] Lua feels much cleaner to me. I wish Blender supported Lua scripting instead of Python. One of the things I don't like about Python is how it handles "private" members. Underscores [i]everywhere[/i], and ridiculous stuff like this needed: [code] class SpoolableBuffer(Spooler): __buffer = [] __file_offset = 0 def __init__(self, **kwargs): for _key,_private,_type in ( # Private vars ['file_offset', True, int]): if _key in kwargs: value = kwargs[_key] if isinstance(value, _type): name = _key if not _private else ('_%s__%s' % (self.__class__.__name__, _key)) setattr(self, name, value) [/code] I'll admit that I could very well be using Python incorrectly. Like I said, my only use for it is making Blender scripts. I think I've spent more time referring to the documentation and figuring out how to adapt to Python's way of doing things. Maybe I'm just inexperienced and gave up too easily :v:
I dont think you can really be using a programming language wrong unless it doesnt do what you told it too. If it works then it works, there [I]could[/I] be a better way to do it but thats just optimization and if its just blender scripts for personal use and the such then its not much of an issue. If you can find a way to optimize though I would do so just to get into the practice and it will make it easier for future use.
[QUOTE=CarLuver69;52753821]Lua feels much cleaner to me. I wish Blender supported Lua scripting instead of Python. One of the things I don't like about Python is how it handles "private" members. Underscores [i]everywhere[/i], and ridiculous stuff like this needed: [code] class SpoolableBuffer(Spooler): __buffer = [] __file_offset = 0 def __init__(self, **kwargs): for _key,_private,_type in ( # Private vars ['file_offset', True, int]): if _key in kwargs: value = kwargs[_key] if isinstance(value, _type): name = _key if not _private else ('_%s__%s' % (self.__class__.__name__, _key)) setattr(self, name, value) [/code] I'll admit that I could very well be using Python incorrectly. Like I said, my only use for it is making Blender scripts. I think I've spent more time referring to the documentation and figuring out how to adapt to Python's way of doing things. Maybe I'm just inexperienced and gave up too easily :v:[/QUOTE] you're making things a lot harder for yourself for no good reason.. for example [code] if _key in kwargs: value = kwargs[_key] if isinstance(value, _type): [/code] could just be [code] if key in kwargs and isinstance(kwargs[key], type) [/code] etc you're confusing ugly code with crappy language full disclosure: I liked python after working with it for a month, and then started to love it after working with it for 1.5 years full time, so I'm biased, but also have enough real-world experience to back it up [editline]7th October 2017[/editline] also there's just no private members. that underscore prefix is also just blender's ugly code [url]http://artifex.org/~hblanks/talks/2011/pep20_by_example.pdf[/url] here are some examples of what "pythonic" code is, as described by the Zen of Python
Gonna have to be c(++).
Most lines of code written would be Java, which is probably helped by its verbosity. What are some elegant languages? I learned Scala over the summer and it was the first time I considered how elegant a language was.
favorite - C# most used - C# for scripting, I'm happy with Python or Lua.
[QUOTE=Walrus Viking;52751260]My favorite is C but I use Java the most... mainly because I'm too lazy to cross compile..[/QUOTE] Same here. I'd like to learn more C++ and Python and such but I know the most about Java.
[QUOTE=Perl;52756619]you're making things a lot harder for yourself for no good reason.. for example [code] if _key in kwargs: value = kwargs[_key] if isinstance(value, _type): [/code] could just be [code] if key in kwargs and isinstance(kwargs[key], type) [/code] etc you're confusing ugly code with crappy language full disclosure: I liked python after working with it for a month, and then started to love it after working with it for 1.5 years full time, so I'm biased, but also have enough real-world experience to back it up [editline]7th October 2017[/editline] also there's just no private members. that underscore prefix is also just blender's ugly code [url]http://artifex.org/~hblanks/talks/2011/pep20_by_example.pdf[/url] here are some examples of what "pythonic" code is, as described by the Zen of Python[/QUOTE] Right. A lot of people think python is easy because it's simple to get started, but to REALLY know python, and to be pythonic, is not so trivial.
Mine are JS and Python. I'm interested in Elixir, Crystal and Nim though.
[QUOTE=josm;52763807]Mine are JS and Python. I'm interested in Elixir, Crystal and Nim though.[/QUOTE] If you like Python, and you like JS, then maybe you'd like CoffeeScript. It compiles into JS, but has a more Python-like syntax
[QUOTE=djjkxbox;52763842]If you like Python, and you like JS, then maybe you'd like CoffeeScript. It compiles into JS, but has a more Python-like syntax[/QUOTE] I thought everyone agreed that TypeScript is best... And C#
C or C++ unordered_map is the best thing ever
[QUOTE=Rohans;52764534]I thought everyone agreed that TypeScript is best... And C#[/QUOTE] My friends won't shut up about Purescript but most of my colleagues use TypeScript. If I had to make a website I would probably go for the latter.
[QUOTE=Rohans;52764534]I thought everyone agreed that TypeScript is best... And C#[/QUOTE] Well it depends what you're trying to do. TypeScript is great though. I was just saying that if he likes Python and he's using JS then maybe he'd like to try CoffeeScript, since the syntax is similar. He could of course, use TypeScript. Atom editor is built in CoffeeScript, so, whatever works for you
Favorite is Scala, and most used is probably that or C++. My least liked is Java.
Most-used is definitely C#. Kotlin may become my favourite, but I haven't had much opportunity to use it so far (and it currently is either compiled to JS or runs on the JVM :s:).
Most-Used and favorite is absolutely C++, modern C++ is leagues upon leagues ahead of C++99/03, and the committee seems to finally be waking the fuck up on getting new things. Concepts will be neat once they arrive, but already I enjoy: [URL="http://en.cppreference.com/w/cpp/header/filesystem"]the experimental filesystem[/URL], [URL="http://en.cppreference.com/w/cpp/header/string_view"]std::string_view[/URL], [URL="http://en.cppreference.com/w/cpp/header/algorithm"]<algorithm>[/URL], iterators, constexpr-if ([URL="https://www.youtube.com/watch?v=PJwd4JLYJJY"]compile-time JSON parsing, anyone[/URL]?), [URL="http://en.cppreference.com/w/cpp/thread/async"]std::async[/URL], [URL="http://en.cppreference.com/w/cpp/thread/lock_guard"]std::lock_guard[/URL], [URL="http://en.cppreference.com/w/cpp/thread/packaged_task"]std::packaged_task[/URL] ([URL="https://gist.github.com/fuchstraumer/68153f73f8176b0c92b480f552dbc84f"]easy way w/ TMP to create generic task queue[/URL]), and last but not least [URL="http://en.cppreference.com/w/cpp/memory/unique_ptr"]unique_ptr[/URL] for pretty much completely obliterating calls to new/delete (works super well in old codebases, too). despite Rohan seemingly wanking his dick raw over C#, I still want to try it at some point since it seems like a nice middleground between abstract languages like Python and languages like C/C++. I'm not a big fan of managed memory langauges, though, since I do prefer to have the control over that myself. not a language, but least favorite almost-language is CUDA, due to how fucking awful NVidia is at maintaining that fucking thing and understanding their own goddamn compiler. also maybe perl in my brief encounters with it in some bastardized open-source codebase that used it to glue-mash together disparate C++ elements in some last-ditch attempt to make that disaster of a codebase into a functioning application (no im not bitter)
I have actually recently been using PowerShell and actually enjoying it. I never thought I would say that.
[QUOTE=Clive;52772655]I have actually recently been using PowerShell and actually enjoying it. I never thought I would say that.[/QUOTE] Yeah I used a bit of PowerShell not too long ago - eventually I got it to do what I wanted but I was frustrated because it seemed to treat input and output differently to bash.
Sorry, you need to Log In to post a reply to this thread.