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

C is aesthetic. What other programming languages are aesthetic, /g/?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 160
Thread images: 18

File: aesthetic.png (24KB, 757x740px) Image search: [Google]
aesthetic.png
24KB, 757x740px
C is aesthetic.
What other programming languages are aesthetic, /g/?
>>
C++
>>
Rust maybe? Or verilog...
>>
>>59927208

(((LISP)))
>>
>>59927208
TI-BASIC
>>
>>59927221
(((No)(,)(it)( )(is)( )(not)(.)))
>>
>>59927215
Have you got your (((head)))ers shoved up your own arse, m8?
Kevin, it's time to go to bed anyway.
>>
>>59927235

https://github.com/google/lisp-koans/blob/master/koans/hash-tables.lsp

don't unterstand your problem
>>
>>59927208
Pascal
>>
go is pretty aesthetic tbqhwyf
>>
>>59927208
Python t b h
>>
>>59927221
()
>>
>>59927208
>>59927226
Z80 assembly
>>
File: go1.png (112KB, 800x800px) Image search: [Google]
go1.png
112KB, 800x800px
>>59927387
>go
Dunno famalam.
>>
>>59927422
Shouldn't you do the same thing in C? like checking wether malloc failed?
>>
>>59927448
Sure, but in C, I have a single return value. Tuples don't exist.
In go, tuples also don't exist. However, you can always return tuples. So it almost works out, but really, it doesn't. Unless I need to (((go func myself))), I'll pick C over go erryday tbqh, Senpai.
>>
>>59927422
didn't say anything about how good the language is, just think it's a really good looking language
>>
>>59927257
Blame the programmers, not the language.
Inexperienced C++ code is worse than inexperienced C code, but that doesn't mean C++ is a bad language.
When C++ is treated as C with classes, its a much better language than C, especially when you are programming GUI applications.
>>
>>59927448
>like checking wether malloc failed?
I like living life on the edge
>>
Elixir

Most functional languages desu
>>
>>59927560
>elixir

you like elixir, you rly wanna be neet till the end of your life?
>>
>>59927221
This.
>>
>>59927735
Programming should be done for fun, not for a living. Programming jobs are shit.
>>
I see loads of opinions, but no screenies or links to aesthetic code.
>>
>>59927513
bjarne isn't it your bedtime you ancient motherfucker
>>
>>59927208
what font, C-mate ?
>>
>>59927221

>Common lisp has the menorah as it's logo
>Also happens to rely on ((( ))) all over its code

Meme magic is real.
>>
What text editor are you using
>>
>>59927218
Rust is easily the least aesthetic language I've ever seen.
Even ASM looks better.
>>
>>59927277
>(assert-equal values '((0 0 1) (0 1 0) (1 0 0)))))
This is hilariously comfy to me
>>
>>59928265
Rust-kiddie triggered.

Also, no counterargument found.
>>
>>59927395
This. C is ugly shit
>>
>>59928325
dis

even d looks better
>>
Why don't you just say Java and call it a thread?
>>
>>59928365
Heathen.
>>
Java
>>
>>59927735
I don't
I wish my work would let me code in Elixir but alas
>>
FORTH
>>
>>59928325
ASM is legitimately aesthetic though
>>
C#
>>
>>59928342
Implying I even give a shit about rust.
>>
>>59927208
What does
(void) envp;
do? You've already defined envp as a double pointer to char.
>>
Lisp is love
>>
>>59928554
>768p
>likes C#
Explains a lot.
>>
>>59928589
gets rid of the compiler warning
>>
>>59928589
It's just an ugly way of making sure the compiler will yell at you for accessing it. As the comment states, it's not going to be used anyway. C is loadsa hax.
>>
>>59928554
Also, why the fuck does CompareHash return an integer ? What in the fuck?
>>
>>59928634
coz i forgot to change it to bool. aight?
>>
>>59928663
Fuck off black-edgelord.
>>
>>59928651
Change it ? Why'd it be an integer in the first place?
>>
>>59928693
I already did, and because i was being stupid and thought oh yea this could use more states!
>>
>>59928554
> ServiceProvider
C# is disgusting. All you need is one function called sha256.
>>
>>59927448
>like checking whether malloc failed
Pretty sure even Rust doesn't check for that, or if it does it just panics. There really isn't anything you can do to recover from it.

>>59927488
You could achieve a similar effect in C by returning structs through. Although it would probably be easier to do in C with templates.
#include "ErrorCode.h"

template<typename T>
struct Result<T> {
T value;
ErrorCode error;
};


And some C functions return their value via an _out_ pointer, instead using the return value for a status/error indicator. Not to mention errno being used as a global variable.

>>59928551
Yeah as long as it's not AT&T syntax.
>>
>>59928609
>>59928619
Then why is envp even included? Can't you just use
int main(int argc, char **argv);
>>
>>59928760
There are ways. Especially if you have caches in the same process. However, Rust doesn't provide a safe way of backtracking to arbitrary points in the stack like you can in C. Because memory is managed by scopes, and backracking in such a way would be a mindfuck for the borrow checker.

>>59928770
Insanity is a e s t h e t i c.

>>59928760
Yee, but this doesn't really work if still need to do an if statement on your own. The template would not force the pleb brogrammer to actually check if there was an error, now would it?
>>
>>59928805
>Yee, but this doesn't really work if still need to do an if statement on your own. The template would not force the pleb brogrammer to actually check if there was an error, now would it?
It depends on how the ErrorCode type is implemented. It could be a simple integer that would have to be checked by the calling code, as in the Go example. Or it could be implemented as a class type with special error-handling code hooked into the overloaded assignment operator, but that would require extra work, since handling an error often requires knowing not only the TYPE of the error, but also the CAUSE.
>>
>>59928917
What does overloading the assignment imply ? Throwing an exception upon assignment ?
Tagged unions would be so much nicer here. But I see your point.
>>
>>59927235
That's not valid code.

(No
(not (is it))
)
[/code}
>>
>>59928760
Please god dont do this.
>>
>>59928760
>in C
>with templates
I don't understand at all.

Doesn't C/C++ already have these?
>>
>>59929016
The idea being that when the callee sets the ErrorCode, some function is automatically called (by the ErrorCode class) to handle the error based on the ErrorCode, rather than relying on the caller to check the error and take appropriate action.

>>59929090
???

>>59929101
What do you mean?
>>
File: cancer2.jpg (51KB, 481x636px) Image search: [Google]
cancer2.jpg
51KB, 481x636px
Lol I recognize that text editor and color scheme. You're the autistic ricer in that other thread who didn't know how to start dhcpcd.
>>
>>59929221
Thus, moving the error handling code as far away from the call site ? Shiggy diggy.
>>
File: Capture.png (25KB, 655x730px) Image search: [Google]
Capture.png
25KB, 655x730px
SML is aesthetic
>>
>>59928551
this

wtf is the other guy smoking
>>
>>59929280
Again, my suggested implementation would be to have ErrorCode just be a typedef for int, which is checked and handled by the caller as soon as the function returns.
>>
>>59927513
Objective C > C > C++ for GUI applications
Yes object orientation is nice, and that is exactly what API's like GTK+ and EFL try to do: provide some kind of object orientation in C. The results are quite elegant.
Still, Objective C (Apple's Cocoa, or GNUStep) is much better for GUI applications, as you don't have to use a bloated language like C++
>>
>>59927789
If people seriously thought this then we'd have literally nothing today

Maybe you should move out of shitty webdev jobs and learn a real lang rather than slapping some JS monstrosity together and calling it a "native app".
>>
>>59929338
What about Win32? I know it's kind of a joke because of Hungarian notation and the excessive number of parameters needed to register a window class, but it seems much "cleaner" than other C GUI APIs, like the object-orientation features feel much less like a hack.
>>
JS can look pretty nice when you use contemporary syntax. Arrow functions, object deconstruction and the object spread operator all go a long way in making it really easy to read.
>>
>>59929290
black and white colorscheme is patrician.

fuck all this fischer price crayon colorschemes
>>
File: syntaxon.jpg (47KB, 600x291px) Image search: [Google]
syntaxon.jpg
47KB, 600x291px
>>59929445
agreed
>>
>>59927208
No lang love age is aesthetic when viewed through that ugly incomplete colorscheme
>>
Properly formatted assembly
>>
>>59927422
hehe good meme, Go fags can fuck themselves
>>
>>59927208
python for scripting. i didn't want to like it but i definitely see why it's popular now
>>
>>59928300
The menorah is the logo of only one CL implementation.
>>
>>59927422
I unironically see zero problem with this.
>>
QuickBASIC 4.5
>>
>>59927208
Clojure
>>
File: 1458062109571.jpg (71KB, 555x545px) Image search: [Google]
1458062109571.jpg
71KB, 555x545px
>>59927235
>>59928300
>John McCarthy (September 4, 1927 – October 24, 2011) was an American computer scientist and cognitive scientist. McCarthy was one of the founders of the discipline of artificial intelligence.[1] He coined the term "artificial intelligence" (AI), developed the Lisp programming language family, significantly influenced the design of the ALGOL programming language, popularized timesharing, and was very influential in the early development of AI.


>John McCarthy was born in Boston, Massachusetts on September 4, 1927 to an Irish immigrant father and a Lithuanian Jewish immigrant mother, John Patrick and Ida Glatt McCarthy.

>Raised as a Communist, he became a conservative Republican after experiencing the Soviet invasion of Czechoslovakia in 1968

Meme magic is too powerful.
>>
>>59929257
Not him but, why do you keep posing this picture?
>>
>>59929436
I seriously don't understand why people try to act superior to web dev. The shit is literally no different, in fact native applications are EASIER to develop than web apps now with the huge fucking glut of hand holdy frameworks. The majority of retards doing native app programming are just implementing the exact same logic as a web app.

Programming isn't hard, just keep a reference book for the task you're doing nearby and you can basically roll out anything once you understand basic concepts and some baby's first data science shit.
>>
>>59930545
You have good taste
>>
>>59927208
Ruby
>>
>>59927208
>aesthetic
>solarized
so close
>>
>>59927208
>C is aesthetic
>>
>>59930737
You haven't even seen Lisp's true power yet.

Prepare your anus for the decentralized AI onslaught within the next few years.
>>
>>59927208
nock
?[a b]           0
?a 1
+[a b] +[a b]
+a 1 + a
=[a a] 0
=[a b] 1
=a =a

/[1 a] a
/[2 a b] a
/[3 a b] b
/[(a + a) b] /[2 /[a b]]
/[(a + a + 1) b] /[3 /[a b]]
/a /a

*[a [b c] d] [*[a b c] *[a d]]

*[a 0 b] /[b a]
*[a 1 b] b
*[a 2 b c] *[*[a b] *[a c]]
*[a 3 b] ?*[a b]
*[a 4 b] +*[a b]
*[a 5 b] =*[a b]

*[a 6 b c d] *[a 2 [0 1] 2 [1 c d] [1 0]
2 [1 2 3] [1 0] 4 4 b]
*[a 7 b c] *[a 2 b 1 c]
*[a 8 b c] *[a 7 [[7 [0 1] b] 0 1] c]
*[a 9 b c] *[a 7 c 2 [0 1] 0 b]
*[a 10 [b c] d] *[a 8 c 7 [0 3] d]
*[a 10 b c] *[a c]

*a *a
>>
>>59929338
>GTK+ ... elegant.

It's funny that you say that. My go to example of inelegant code is all of the sigc callback crap they use instead of just switching to g++ and using a lambda function.
>>
>>59930831
>fucking glut of hand holdy frameworks
Wat? Web development is the only place I encounter that, like rails and shit.

Web development is much more likely to mean "tinkering with CSS for years until it's pretty" and not "writing graph algorithms". It's a generalization, sure, but it's justified.
>>
File: 1 _y4AtRb66tHNwMj68BL8MA.png (480KB, 2000x910px) Image search: [Google]
1 _y4AtRb66tHNwMj68BL8MA.png
480KB, 2000x910px
Haskell
>>
File: nodejs.png (490KB, 810x813px) Image search: [Google]
nodejs.png
490KB, 810x813px
Cannot come up with a good aesthetic language but i know for sure that node js has the worse aesthetic i have ever seen.
>>
>>59927735
>What is staying ahead of the curve.

Elixir will get a huge chunk of web/app backends in the next few years. The earlier you jump on the bandwagon the better.

It's light years ahead of the competition. (php,python,node etc)
>>
>>59927208
A E S T H E T I C

You are like a little babby watch this
*executes code in out of bounds memory location*
*dumps memory contents to standard out*
*prints garbage because missing null terminator*
>>
File: Adaesthetic.png (108KB, 956x1044px) Image search: [Google]
Adaesthetic.png
108KB, 956x1044px
>>59927208
Ada is very aesthetic
>>
>>59929445
Hi Rob Pike. Didn't know you were on 4chin.
>>
>>59927208
dash (shell).
>>
>>59927208
MMIX is desu
        LOC   #100                      ; Set the address of the program
; initially to 0x100.

Main GETA $255,string ; Put the address of the string
; into register 255.

TRAP 0,Fputs,StdOut ; Write the string pointed to
; by register 255 to the standard output file.

TRAP 0,Halt,0 ; End process.

string BYTE "Hello, world!",#a,0 ; String to be printed.
; #a is newline, 0 terminates the string.
>>
>>59928554
>code file in app_start that isn't a configuration file or isn't named as such
Absolutely disgusting.
>>
>>59934119
The fuck is wrong with them fonts?
Is your Source Code Pro misssing an (((m))) ?
>>
File: 1488620342398.gif (2MB, 275x154px) Image search: [Google]
1488620342398.gif
2MB, 275x154px
>>59927208
>openlog
>load_config
>zmq_init
>>
>>59927257
??
>>
File: 1469241928129.gif (1MB, 207x207px) Image search: [Google]
1469241928129.gif
1MB, 207x207px
>>59928554
>>59928634
>>59928753
>>59934284
lol at all the C# non believers. Microsoft own the industry and you know it. Bow down and take it like the good little serf you are.
>>
>>59934669
>proportional font
wtf, kevin
>>
>>59927208
Programming languages are not aesthetic. The only thing that would make your code aesthetic is the usage of aesthetically pleasing fonts and other editor options.
>>
>>59934684
> Microsoft own the industry
Which industry MS owns, the dying desktop one? Who cares.
>>
File: Emoji anime.jpg (51KB, 600x598px) Image search: [Google]
Emoji anime.jpg
51KB, 600x598px
>>59934706
Sorry, I just prefer it.
>>
>>59934569
maybe, just installed arch this night, havent finished ricing yet
>>
>>59928323
emacs evil-mode
>>
>>59934684
C# isn't owned and maintained by Microsoft exclusively
>>
>>59934720
My point is the vast majority of computers run windows therefore C# will always be relevant through .NET
>>
>>59929445
The true patrician colorscheme is light blue-ish background and white-grayish characters like nord
>>
>>59934807
The vast majority of computers run Android tho.
inb4 smartphones and tablets are no computers because I said so
>>
>>59930831
Because it's justified.
You said it yourself, native applications are easier to write now and it has the same logic, yet webdevs still beg their project manager to make their trash with some Electron and a ton of JS frameworks, just to make an app look pretty. I'm even willing to say Electron apps are probably more resource intensive than anything running on the JVM/JRE now.
>>
Swift
/thread (tbqh)
>>
>>59927208
>that being aesthetic

C, C++ and C# can all be aesthetic but if you retards go out of your way to be format shitters you'll never look at aesthetic code.
>>
File: installsolus.jpg (102KB, 800x800px) Image search: [Google]
installsolus.jpg
102KB, 800x800px
>>59930747
Install solus
>>
Fortran 77
>>
>>59928323
Vim
>>
>>59927277
>(define-test test-create-hash-table
it just shouldn't need the first (
literally every LOC starts with (, it's just plain retarded.
>>
>>59928554
How can I get my beautiful Visual Studio to look like that?
>>
>>59927208
C# and OCaml. C is not aesthetic though, simple constructs take up too many lines.
>>
>>59936944
Get the "Color Theme Editor" extension.
For the file tabs I'm using "productivity power tools".

For the scroll bar just right click it>Options and use map mode.
>>
>>59935037
I thought we were done with the Solus meme.
>>
>>59937338
How long did it take you to compile Unity?
>>
>>59937362
A while.
>>
>>59937374
ok
>>
File: 1492009952055.webm (2MB, 640x480px) Image search: [Google]
1492009952055.webm
2MB, 640x480px
Assembly drawn with a electron vector screen.
>>
>>59937436
>univasal
>>
html written on Sublime Text 3
>>
>>59934119
>Mixing Camel case with title and underscore
What's wrong with you?
>>
File: Thunking.gif (555KB, 279x279px) Image search: [Google]
Thunking.gif
555KB, 279x279px
>>59938870
Godly.
>>
>>59927208
>C is aesthetic
Except it isn't. Perhaps you meant to say it is slightly more aesthetic than other languages, but it's still pretty ugly desu senpai
>>
>>59938910
multi-style code is a globalist jew trick
>>
Go when not written by webfags.
>>
>>59936897
because lisp code is a list you dumb cunt
>>
>>59927422
>i don't check errors
>i'm quite content to crash if a directory doesn't exist
speaking of retarded
>>
>>59934119
Why would you import a library just to use one type in it and for it's unintended purpose at that?
>>
larceny scheme and gcc
>>
>>59934669
What font are you using and what's that gtk theme?
They're looking pretty good.
>>
>>59927215
*this;
>>
>>59937436
that's quickbasic
>>
>lisp is invented by a neocon middle-east warmonger
>it's now most fashionable among socialists who fancy themselves anti-war

pottery
>>
python.

it was literally created for "MUH AESTHETICS."
>>
>>59940053
>socialists who fancy themselves anti-war
this isn't a thing
there are socialists who are 2 weak for war
and then there are socialists who are anti-poc-war
there are no socialists against war and violence full stop
>>
>>59927422
> `:=`
why this dick has two shafts?
>>
>>59939544
which do you mean?
long_long_integer is not a nice type, i really dislike the long long denotation, why not just long and longer
>>
>>59940270
type Long is new Long_Integer;
type Longer is new Long_Long_Integer;
>>
>>59940270
The real way to name primitive types is to use either i or u to prefix the type to signal or it's signed or not, and then just the size of the type -> u8, i32, i64, etc.
>>
>>59940515
Ada isn't locked into primitive types and their sizes. Often times it's bad practice to use them outside of generic parameters to a package.
>>
>>59934119
is that font an actual monospace?
>>
>>59932707
what the fuck
>>
>>59927448
>>59930472
>>59939424
return type tuples are just fractionally better an option than in-band magic return values.

Doing errors as type-safe unions with a run-time type cast for the check is one of the few things I'll never give Rust shit for, even if their syntax isn't quite what I would have chosen.
>>
C is ugly as fuck, it's only"aesthetic" because it's small and easy to memorize
>>
>>59939870
I use the Ubuntu font, but I use a different font for my startpage. And my GTK theme is Adapta.

You can see that here>>59937338
>>
>>59941417
C also encourages brevity of identifiers, which is a refreshing change from AbstractSingletonProxyFactoryBeanFactoryStrategy()
>>
>>59941047
Curtis Yarvin is the only extant programming language creator without a hard left extremist political agenda
>>
>>59941555
I don't buy it.
There's absolutely no way urbit, nock and hoon weren't created as an elaborate joke.

They take decades of systems design and just turn it on it's head for the sake of "being different".
>>
>>59940439
oh right, sorry im a retard
Thread posts: 160
Thread images: 18


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.