[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Favourite Language
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 51
Thread images: 7
File: python.png (80 KB, 1000x1000) Image search: [Google]
python.png
80 KB, 1000x1000
What's your favourite language /g/?
List pros and cons.
I'll start:

Pros
>extremely readable
>huge amount of packages available
>can get things done in far fewer lines of code than many other languages
>simple to grasp, yet very powerful
>it just werks ™

Cons
>pretty slow
>bad at multi core work
>official documentation can be kind of shit sometimes
>isn't really supported for mobile development
>>
>>52965715
perl master race faggots.
>>
learning python on codeacademy, it's syntax is kinda annoying compared to c++.
>>
>>52965715

C:
Pros:
>Muh pointers
>Muh dynamic programming
>Muh preprocessor
>Muh speed

Cons:
>None
>>
>>52966329
Only novices fail to see any shortcomings in their preferred tools. It's how you can spot a zealot. Everything has cons, except to a naive zealot.
>>
>>52965715
I am a Statistician
I write in R and sometimes Python but mostly R

pros
>great flexible language with tons of support from the Statistics community
>great visuals


cons
>it was written by Statisticians
>can be really slow and the syntax often doesn't make sense
>>
File: 1441934450667.jpg (12 KB, 250x250) Image search: [Google]
1441934450667.jpg
12 KB, 250x250
Haskell
Pros:
>fun as fuck
>godly one-liners
>monads
>safety

Cons:
>packaging
>lack of packages
>Repeat after me: “Cabal is not a Package Manager”

Otherwise, pure-maiden C it is.
>>
C#
Pros
>productivity
>readability
>Support and documentation
>Project management/great IDE
>Good syntax

Cons
>For the time being, not portable
>not very fast
>Pretty high level despite C like syntax
>>
>>52965715
Ruby.
Pros
>has an interactive interpreter
>no boilerplate, no nonsense
>clean OOP implementation
>great list comprehension, unix integration, and string processing/regular expressions
>lambdas/closures that don't suck
>inconvenient to install on Windows

Cons
>Ruby on Rails
>everybody wants to use metaprogramming
>can be slow
>GIL
>smaller userbase than snek
>Ruby on Rails
>>
File: 1454632792697.jpg (42 KB, 544x486) Image search: [Google]
1454632792697.jpg
42 KB, 544x486
>>52967945
>>clean OOP implementation
>ruby
http://programmingisterrible.com/post/42432568185/how-to-parse-ruby
>There are two ways to parse ruby—Do exactly what Matz did, or slowly lose your sanity, gazing into the abyss that is parse.y
>>
File: logo_asm_0-549x393.gif (60 KB, 549x393) Image search: [Google]
logo_asm_0-549x393.gif
60 KB, 549x393
Assembler:
Pros:
You can do anything you want
Cons:
You will go mad or kill yourself
>>
File: steal-your-face-plt.jpg (93 KB, 623x623) Image search: [Google]
steal-your-face-plt.jpg
93 KB, 623x623
>not using almighty Racketlang
>>
>>52969641
How is Racket different to Scheme or Common Lisp?
>>
>>52965715
>official documentation can be kind of shit sometimes
not just kind of shit is one of the worst documentations I have ever seen
>>
C++
Pros: Everything
Cons: useless errors and crashes
>>
>>52965715
C++. I can use it pretty much everywhere I can use C but it allows me to do stuff much more easily.
>>
>Scripting
Lua

>OOP
Probably Java. Can find a library for just about anything you want to do. Stay mad.
>>
>>52965715
Once I know Python, what language should I move on to and what are the optimal use cases for it?
>>
>>52965715
>Programming
C, C++ and Java

>Scripting
Python, Lua and Bash

>Web Dev
JavaScript
>>
Pros:
>Extremely efficient, one of the fastest languages in existence
>Type system is probably the best in computing history for actually accomplishing tasks
>Rudimentary OOP support means you can solve problems without being retarded
>muh pointers
>Extremely popular, so >muh employment
>Can be used on more or less every system, from Android phones to Casio FX-9850s
Cons
>segmentation fault (core dumped)
>Multi-file code is usually rather verbose and may be hard to read
>Standard library is large but shallow
>segmentation fault (core dumped)
>Interfacing with C functions is usually messy, even though the C++ standard more or less relies upon them
>Programs are usually notably longer than code in newer languages for the same thing
>segmentation fault (core dumped)
>segmentation fault (core dumped)
>segmentation fault (core dumped)
>>
japanese
>>
Chinese

pros
>Used by billions of people worldwide
>Soon-to-be language of business world
>Sounds cool as fuck in pretty much any scenario, from angry yelling to quiet poetry recitation
>Pretty much the only way to read ancient Chinese classics, which are really good
>Cool ass writing system

cons
>Kinda hard to learn
>Syntax is obscure compared to western languages
>Mandarin vs Cantonese is a fight you don't want to have to have, ever, with anybody
>You'll never be able to speak it well enough to understand what the owner of that Chinese restaurant just screamed to her 8-year-old waitress that caused her to serve your food while crying
>>
>>52965715
>extremely readable
Subjective, I don't consider syntax such as __init__ to be readable.

>yet very powerful
No more powerful than other languages while being slower and more bug-prone.

>it just werks
Until you hit a runtime error because of its abysmal type system.
>>
>>52965715
Html :^)
>>
>>52970572
>>Cool ass writing system
Fuck no. Who the fuck wants to learn literally thousands of symbols that don't even have a proper lexicographical order?

Also, there are way too many of the fuckers.
We already have too fucking many Chinese and Indians in my white country.
>>
>>52970676
>Fuck no. Who the fuck wants to learn literally thousands of symbols that don't even have a proper lexicographical order?
You could say the same thing about English's words.
The only real difference is that Chinese's characters are slightly more unique than English words. While in English words are constructed from partially-logical character sequences, Chinese characters are constructed from stroke sequences.
>>
>>52970572
>>Soon-to-be language of business world
top kek
>>
Canculator
>>
>>52966329
How the fuck does C relate to dynamic programing? You can do dynamic programing in 99% of programming languages. Are you talking about dynamic memory?
>>
>>52967739
Adding to this

Pros:
>awesome type system
>some ghc extensions can be very comfy
>the community is generally more literate than the average in other programming communities

Cons:
>records suck
>tooling in general is just bad (improving slowly, but it's still bad)
>ghc is becoming more and more bloated with useless shit (3 different kinds of stack traces)
>>
I envy you guys. I'm forced to use different language every project and can't get comfy with anything for a longer period of time.
>>
>2016
>not using your own programming language

but yeah I fucking love C
if you like Java, then your breath probably smells like cum
>>
>>52965715
>>pretty slow
Depends. It's actually quite fast for text processing.
>>
>>52970572
>chinese becoming an international language
>a language that keeps adding characters when new words are made
>>
>>52970369
huh what's wrong python's documentation?
>>
>>52973321
not liking java is a meme
>>
>>52965715
All hipster SJW shit languages can fuck off. Especially Ruby.
>>
php.

Pros:
>It's what I know
>It's not nearly as bad as people make it out to be
>Tons of jobs

Cons:
>Having to listen to first year CS majors tell you, a person with 5 years professional experience, why you should be using something else
>Node and Rails hipsters don't think you're cool
>>
>>52976618
Actually, the main dev of ruby told SWJs to fuck off...
>>
>>52976618
>Especially Perl

ftfy
>>
>>52976691
>>>/reddit/
>>
>>52976703
>unironically liking Perl

>>>/basement/
>>
File: Nazi_UK_01.png (22 KB, 960x480) Image search: [Google]
Nazi_UK_01.png
22 KB, 960x480
>>52970629
HTML
Pros:
Greateat language of all time
APIs for everything
Easy to read
Pointers
Promotes killing niggers and rape
>>
>>52970676
The cool thing about their writing system is that the symbols themselves have meaning. This was helpful when I was studying Japanese since after a while I could accurately guess the pronunciation and meaning of words I had never even seen before 90% of the time
>>
>>52976641
>doesn't know anything but PHP
>calls others inexperienced

Every time
>>
>>52976641
>Having to listen to first year CS majors tell you, a person with 5 years professional experience, why you should be using something else
As a developer with 10 years professional experience I'm inclined to agree with them.
Not so much for the flawed language and it's miserable documentation (where you can almost bet that some important aspect is only mentioned in the comments), but for the use cases, specifically in context of maintaining applications. There is no central community, no focus on specific technologies, no best practices.
There are the following scenarios:

1. Simple applications without any kind of framework.
Nice to write, but mostly a hell to maintain, because the fuckos will drown you in htmlspecialchars without encoding parameters and old, derprecated mysql functions, at best.

2. Applications using framework.
Most of them are slow and have some questionable best practises, because most of their creators have no clue. Most of the bigger ones are sad attempts to copy either Rails or Django. And that is the better case.

3. Plugins and extensions for existing CMSs.
This is where things really get ugly. Not only is it technically often shit-tier, but since most stuff is open-source, the devs try to scam the fuck out of you by providing no documentation.
>>
>>52976056
Compare it with cppreference.com to see what a good/useful reference should look like.

I'm pretty sure I remember looking in the python docs to find out which exceptions a particular function call could throw, only to find out that several weren't mentioned. I mean wtf.
>>
>>52970519
> segmentation fault (core dumped)
proper initialization
RAII
C++11 language features
>>
>>52970610
>I don't consider syntax such as __init__ to be readable
What would you do instead for special names then?
>>
>>52975506
Chinese is actually a fun language to learn because of that.
Every character has it's own story and it won't get boring learning them.
>>
>>52970610
>No more powerful than other languages
Descriptors, decorators, metaclasses, more flexible modules system. Ability to override just about any aspect of instance or class creation.

>programmer did something dumb therefore it's the language's fault
Worst case you can always just manually check to make sure things are of the correct type.
Thread replies: 51
Thread images: 7

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.