[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
Programming languages and their use
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: 16
Thread images: 5
File: what.png (367 KB, 1200x860) Image search: [Google]
what.png
367 KB, 1200x860
What program language do you use for which cases?
I feel like I always used programming languages wrong until now. For example, my console GUI engine (TUI engine) I did in C.
People keep saying that for stuff like that, you should use Python or Ruby instead, but isn't Python just as much boilerplate?
Regardless, I think it's like this:
>C for hardware programming
>Python/Ruby for shell scripts
>Java for GUI projects or programs that would rely on third party libraries
My next project is a really simple personalized chat AI for the shell. What language would you use for that?
>>
C for embedded hardware programming
C++ when you need high performance
Java when you need to stay cross platform
Python for rapid prototyping and scripting
Swift for Appleshit things
C# for Microsoft things

This if you don't want to bet on modern programming languages (like Rust, Go and Scala).
>>
My languages use cases :

C for embeded
Java for desktop GUI
Python for everything else

(I don't deal with mobile stuff)

I spent hundreds of hours learning other languages like C++/C#/PHP but I never use them.
>>
>>53859139
I use Python for everything. I feel like its descendant of LISP.
>>
>>53859258
>>53860062
>C for embedded hardware programming
eat shit and die
>>
>>53860256
Wat
>>
>>53860062
This but php for web development. Sorry but it's the most supported.
>>
>>53859139
>What program language do you use for which cases?

C++: General purpose computing
Lua: Quick scripts
Matlab: Calculator++
AMD64/ARM: Disassembly and inlining

Everything else is useless trash.
>>
File: Rust-Detroit-300x300.png (68 KB, 300x300) Image search: [Google]
Rust-Detroit-300x300.png
68 KB, 300x300
>>53859139
Rust in general, especially for performance and safety.
Lua for scripting(both as plugins and independent scripts).
Node.js for small/simple webservices.
Bash for shell scripts.
PostgreSQL for databases.
>>
>>53860210
functional programming is possible on python
>>
File: eichmannmiun.png (1 MB, 1344x1150) Image search: [Google]
eichmannmiun.png
1 MB, 1344x1150
mfw i see javascript engines embedded in game engines
>>
C, C++ for anything that needs performance
Ruby for quick scripts and some class projects that have revolved around things like AI.
>>
File: swift-emoji.png (55 KB, 704x290) Image search: [Google]
swift-emoji.png
55 KB, 704x290
>>53859139
I use swift for the emojiĀ“s :^)
>>
>>53863355
wait, you can iterate through strings in swift? I like this. What other languages have this feature?
>>
>>53859258

Pretty much dis.
>>
File: 1459303350518.gif (1 MB, 264x264) Image search: [Google]
1459303350518.gif
1 MB, 264x264
>>53859139
>Python for shell scripts
Thread replies: 16
Thread images: 5

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.