[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
this is javascript
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: 129
Thread images: 37
this is javascript
>>
>>53710144
That colorscheme looks sexy
>>
Looks pretty gross tbqh
>>
>>53710192
github.com/babel/babel-sublime

it's like learning a totally new language

almost like going from C to java or something
>>
This is Stannis.
>>
File: tmp_29954-kek-241044820.png (1 MB, 2048x1152) Image search: [Google]
tmp_29954-kek-241044820.png
1 MB, 2048x1152
This is an anime girl.
>>
File: c99.png (78 KB, 2660x1274) Image search: [Google]
c99.png
78 KB, 2660x1274
this is c99
>>
File: Woman.jpg (267 KB, 800x736) Image search: [Google]
Woman.jpg
267 KB, 800x736
>>53710287
>>
>>53710308
editor + style?
>>
>>53710144
This would be ha hell to maintain with all these dependencies...for a goddamn UI...this ain't java, son
>>
>>53710308
>10000 line functions
this triggers me
>>
>>53710308
opengl is obsolete, upgrade to vulkan faggot
>>
This is real-world C.
>>
>>53710449
>not testing if malloc fails
>>
>>53710433
Ok. Let me just flip my Vulkan switch... there, all done. It's now working on Vulkan.
>>
File: DESIGNATED.png (1 MB, 1487x809) Image search: [Google]
DESIGNATED.png
1 MB, 1487x809
This is India.
>>
File: c11.png (78 KB, 633x958) Image search: [Google]
c11.png
78 KB, 633x958
This is C11.
>>
File: herald_of_4chan.png (64 KB, 300x100) Image search: [Google]
herald_of_4chan.png
64 KB, 300x100
>>53710522
>that long-ass comment
>>
>>53710555
>being this amateur
>>
>>53710522
DO NOT ROLL YOUR OWN CRYPTO.

Fucking hell, how many times do you people need to be told. DO NOT MAKE YOUR OWN CRYPTO. EVER.
>>
>>53710522
const: the experience
>>
>>53710568
this
>>
File: perl.png (227 KB, 1172x965) Image search: [Google]
perl.png
227 KB, 1172x965
This is Perl.
>>
>>53710568
>AES
>own crypto
Nigga wut?
>>
>>53710624
Implementing crypto yourself is prone to failure, such as timing attacks (go look up timing attacks on AES).

In his defense, it seems he's using libcrypt for some stuff. There doesn't seem to be an implementation of AES-SIV anywhere.
>>
File: absolutely_haram.jpg (163 KB, 531x471) Image search: [Google]
absolutely_haram.jpg
163 KB, 531x471
>>53710623
>>
>>53710287
L O N D O N
O
N
D
O
N
>>
>>53710373
vim. dotfiles at https://github.com/haasn/gentoo-conf

>>53710433
Still waiting on that driver support
>>
>>53710464
it's wrapped in a macro, which is even worse
>>
>>53710425
why?
>>
File: 2016-03-27-12:29:07-scrot.png (45 KB, 581x490) Image search: [Google]
2016-03-27-12:29:07-scrot.png
45 KB, 581x490
This is elisp.
>>
>>53710522
Literally no contrast. Can't see shit, captain.
>>
File: j.png (81 KB, 875x932) Image search: [Google]
j.png
81 KB, 875x932
>>53710144
Disgusting
>>53710308
Perfection.
>>53710449
>>53710522
Very nice.
>>53710623
Nuke it.
>>53711512
Perfection.
>>
>>53711953
(when (not matched)
(error "Unknown file type"))

It's beautiful.
>>
>>53710308
>nicely formatted code
>documentation is perfect
>not too much documentation so that it's useless or distracts you
>enough documentation to actually understand shit and not have to read the mind of the developers
>code style is very expressive, no magic function or syntactic sugar, always know what the code is actually doing, even down to machine level
10/10 perfection
>>
This is python

import stdlibmodulethatdoeswhatyouwant as s

s.gofuckyourself(random arguments who gives a fuck it's python just give it wahtever you want)

[/code
>>
>>53710213
>going from C to java
So like learning a dialect of the same language?
>>
>>53710144
Looks retarded af.
>>
>>53711975
The beauty of expressiveness.
>>
>>53712032
nice meme
>>
>>53711999
c-contributions welcome https://github.com/mpv-player/mpv
>>
This is F#
>>
File: image_8.jpg (226 KB, 1280x1280) Image search: [Google]
image_8.jpg
226 KB, 1280x1280
>>53710144
This is a dog.
>>
>>53710144

What font is that?
>>
>>53712095
Nice, I might look into contributing. You should create a TODO, either as a separate file or as part of the README.
>>
File: MagrittePipe[1].jpg (34 KB, 378x264) Image search: [Google]
MagrittePipe[1].jpg
34 KB, 378x264
>>53712187
no, it's not
>>
>>53712123
Learn haskell, microsoft shill
>>
>>53712123
>fun
No fun allowed
>>
>>53710568
>>>/stackexchange/
>>
>>53711953
editor & config? font?
>>
>>53710494
SHREEEEEEEEEEEE
>>
>>53712123
>functional programming language
>return
>>
>>53712397
That's github's online code preview, senpai.
>>
File: neogeo.jpg (83 KB, 570x475) Image search: [Google]
neogeo.jpg
83 KB, 570x475
>>53711953
white background
>>
>>53712599
the guy looks like he is from 90s, i want those glasses
>>
>>53710555
wew lad, DPT general is that way
>>
>>53712123
>>53712412
... why?
>>
File: 1451235134521.png (77 KB, 694x801) Image search: [Google]
1451235134521.png
77 KB, 694x801
this is a meme
>>
>>53712323
This anon has it
>>
File: sparta.gif (168 KB, 220x91) Image search: [Google]
sparta.gif
168 KB, 220x91
This is Sparta.
>>
>>53712707
I'm dying here
>>
File: haskell.png (41 KB, 875x554) Image search: [Google]
haskell.png
41 KB, 875x554
This is haskell.
>>
File: html.jpg (163 KB, 1204x665) Image search: [Google]
html.jpg
163 KB, 1204x665
This is HTML programming
>>
File: clac.png (33 KB, 858x1051) Image search: [Google]
clac.png
33 KB, 858x1051
>>53713006
>Not supporting variadic operators
>>
>>53710449
>#ifdef DEBUG all over the place
>not having a single debug() function that always exists, but simply returns if DEBUG is not defined.
It's like you've never heard of DRY.
https://p.teknik.io/eu0Kx
>>
>>53710144
this font hurts me eyes
>>
>>53713351
>intentionally confusing the compiler
>writing obfuscated code
I also pretty certain you will end up with bigger binaries.
>>
>>53710308
>terminus at > 10p
for some reason this bothers me
>>
>>53713391
150 dpi display
>>
File: 2016-03-27_15-39-17.png (126 KB, 1250x738) Image search: [Google]
2016-03-27_15-39-17.png
126 KB, 1250x738
This is Python.
>>
>>53713382
>oh no we might get a marginally bigger binary in exchange for not littering the fucking code with ifdef's all over
Sorry you hate maintainable codebases anon.
>>
>>53710623

>that tab spacing

sage
>>
>>53713382
How is that obfuscated?
How does this lead to bigger libraries?

This is literally how assert works, which is a standard macro in C99.
>>
>>53710144
this is snek
sssssssss
>>
>>53713441
You're talking to a guy that doesn't even check the status of malloc.
>>
>>53713415
The ifdef directive is the perfect balance between verbosity and maintainability. Moreover, it allows to customise particular sections of the code instead of pile everything on a single directive. Example: you may want (this is very popular) to have different DEBUG directives and parameters for different parts of the application, say for server/client or player/stream, etc.

>>53713441
It's obfuscated because it's not immediately obvious that the function expects a directive to do the debugging. This will be rejected in any respectable software. The bigger binaries are a consequence of how the C compilers work. First, the preprocessor will expand all #include directives and then create an abstract syntax tree, which then gets passed to the linker before finally building the binaries. As a result, your DBG libraries will be pulled in, almost surely. Quite possibly other stuff as well. Poor practice.
>>
>>53713546
>dbg libraries
Fucking what?
Again, this is how assert works, you fucking mongoloid.
>>
File: 210860.jpg (33 KB, 640x480) Image search: [Google]
210860.jpg
33 KB, 640x480
>>53713259
>>
File: startPagejs.png (52 KB, 759x811) Image search: [Google]
startPagejs.png
52 KB, 759x811
>>53710144
this is also javascript
>>
>>53713629
Not even him, but you are retarded
>>
>>53713629
Yes, and what does assert require? assert.h and assert.c. So if you put your log_trace function in a separate file and then include it in every other file, that means the compiler will have to resolve the symbol every time. Whereas with a simple compiler directive like ifdef, the calls to printf will be discarded at the preprocessing stage.
>>
>>53713694
>assert.c
What? Assert is contained in a single header, assert.h. And it's a macro, there are no symbols.
Even if you were using a function, compilers have such thing called optimization, and can remove noop functions.
I don't think you know how compilers work, or at least modern compilers.
>>
>>53710308
literally perfect
;~;
>>
I would post C++... hmm don't know how to show its strengths best.
>>
>>53713732
It seems you have successfully moved the goalposts. Remember that we discussed debugging (i.e. not simple assert). It's also important to bear in mind that assert works run-time and not compile-time, which would require static asserting in the sense of what c++ allows. Of course you can do pretty much everything with macros, but that's as much of a solution as opening your beer with a hammer. More like a dangerous hack if anything. And then again, you managed to ignore all the other benefits of using ifdef directives instead of some obfuscated macros.
>>
File: 1448478360003 - kopie.jpg (86 KB, 750x562) Image search: [Google]
1448478360003 - kopie.jpg
86 KB, 750x562
this is snek
>>
>>53712348
I'm also learning that, but .NET/Mono compatibility is nice sometimes.
Plus Haskell is shooting itself in the foot with laziness and total purity.
>>
>>53712412
It doesn't do the same thing as in C-like languages.
It still fits within the paradigm.
>>
>>53712412
do you even monad?
>>
The ugliness of any PL syntax is unfortunately caused by limitations of the typing device called "keyboard" which is simply an offshoot of typewriter designed for prose writers.
Currently the Unicode table has beautiful glyphs for almost any need but none of them is available on our keyboards because of backward compatibility and other shitty reasons.
It's 2016, and we need a "programmer's keyboard". Otherwise this abomination of a syntax to represent ever-growing sophistication of PL's will never cease.
>>
>>53710555
>not properly documenting your code
Enjoy never programming anything useful in your life
>>
>>53712267
looks like 'deja vu sans mono'
>>
>>53710308
http://ftp2.halpanet.org/source/_dev/mpv.git/video/out/opengl/video.c
found source if anyone else was wondering. taken from mpv's git.
>>
File: Piet-4.png (325 B, 168x168) Image search: [Google]
Piet-4.png
325 B, 168x168
This is Piet.
>>
File: 8.jpg (104 KB, 684x1024) Image search: [Google]
8.jpg
104 KB, 684x1024
this is Tessa Fowler
>>
>>53710568
Why?
>>
>>53714813
>3dpd
Kill yourself back to Redd1t, idiot.
>>
>>53714892
If you have to ask, you probably shouldn't roll your own crypto.

I'm sure there's a rare few that could. I am not one of them.
>>
>>53714556
You meant: https://github.com/mpv-player/mpv/blob/master/video/out/opengl/video.c
>>
>>53715018
Ok, nasa guy, I will not roll my own crypto.
>>
>>53715034
yah, somehow ended up with a mirror on first google result.
>>
File: 1457571667632.png (947 KB, 474x503) Image search: [Google]
1457571667632.png
947 KB, 474x503
This is Donald Trump's daughter.
>>
>>53716271
Adopted daughter is not daughter at all.
>>
>>53716271
more like his wife's daughter
>>
>>53710522
Fuck me that looks horrible. Also

>goto
>>
>>53717130
>he fell for the "goto is bad" meme
>>
>>53710144
the people who are working on the specification are trying to kill javascript on purpose. its way too implicit and looks like garbage now
>>
>>53718334
The main thing I dislike about JS is the way it emulates OO. The new spec is just pushing this shit, it should embrace the fact that it isn't class-based and transparently utilise Prototypal Inheritance.
>>
>>53715018

Looks like he is just encrypting some plaintext file?

Its not like he making something that will be used in a networked application.
>>
File: 1445097132692.gif (3 MB, 658x800) Image search: [Google]
1445097132692.gif
3 MB, 658x800
>>53710144
>all these classes
>can't use namespaces
AAAAAAAAAAAAAAAAAAAAAAAHHHHHH
>>
>>53716415
*girlfriend's son
>>
>>53718538
>he fell for the namespaces meme
>>
>>53713410
Fuck, that font looks beautiful. Name?
>>
>>53718603
It's okay if you use it in a block
>>
>>53718620
Literally any monospace font
>>
>>53710144

Yeah i feel your pain, i'm working with react+redux 8 hours a day... the syntax isn't that horrible, and the es6 arrow functions kind of rock.

But the react + redux/flux/reflux/listgoesonforeverandever... i hate them all.
>>
File: unicode_haskell.png (25 KB, 759x294) Image search: [Google]
unicode_haskell.png
25 KB, 759x294
>>53713006
This is a twitter screencap containing a screencap of an editor containing Haskell.
>>
>>53719044
I like this post containing a twitter screencap containing a screencap of an editor containing Haskell
>>
>>53710144
This is Java

https://github.com/spring-projects/spring-framework/blob/master/spring-aop/src/main/java/org/springframework/aop/framework/AbstractSingletonProxyFactoryBean.java
>>
File: Screenshot_8.png (404 KB, 1366x698) Image search: [Google]
Screenshot_8.png
404 KB, 1366x698
This is nonfree javascript
>>
>>53710144
how to get font rendering like that in Windows
>>
this is AppWare
>>
this is Prograph
>>
this is erlang
>>
File: java.png (96 KB, 1268x969) Image search: [Google]
java.png
96 KB, 1268x969
This is Java
>>
>>53714892
because much smarter people than you or I have already done it, and done it better.
>>
>>53722376
disgusting

both the tab space length and the language
>>
>>53722376
traverser.get().accept(new AbstractTileVisitor( ) {
public void visitLightTile(LightTile lt) { ... }
} )


Muh patterns
>>
File: pepsiman.jpg (44 KB, 400x503) Image search: [Google]
pepsiman.jpg
44 KB, 400x503
>>53710144
Thread replies: 129
Thread images: 37

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.