[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]

Beautiful Code

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: 21
Thread images: 2

File: code.png (144KB, 302x339px) Image search: [Google]
code.png
144KB, 302x339px
I want to see examples of code that is beautifully constructed, laid out, and generally comfy as fuck.
>>
>>55512004
All my code is compiled and licensed. But here's your (You)
>>
>>55512004
public class 4chan
{
}
>>
>>55512472
invalid syntax
>>
>>55512023
What does your code being compiled and licensed have to do with anything?
>>
(define (depth l)
(+ 1 (apply max (map depth l))))
>>
x, y = y, x 
>>
>>55512805
Based lua
>>
(define (fringe tree)
(cond ((null? tree) '())
((not (pair? tree)) (list tree))
(else (append (fringe (car tree))
(fringe (cdr tree))))))
>>
return;
>>
>>55512820
It's not lua.
>>
>>55512504
>not recognizing that the thread is a code honeypot
>>
>>55512004
ADD AX,10
ADD TOTALE,10
ADD AX,CX
ADD AX,TOTALE
ADD TOTALE,AX
>>
>>55512004
>html
>code

I'm fucking out
this board is terrible
>>
        PUSH    DSQ        # Z TO PDL+0
PUSH DMP # Z SQ TO PDL+2 E:(-26) M:(-24)
TFFNP # LC P E:(-38+2NR) M:(-36+NR)
SL SIGN
5
TFFTEM # AFFIX SIGN FOR SDELF (ENTRY DISPLAY)
STODL TFFTEM # P ZSQ E:(-59+2NR) M:(-55+2NR)
# (ARG IS USED IN TFF/TRIG)
# ZSQ FROM PDL+2 E:(-26) M:(-24)
PUSH DMP # RESTORE PUSH LOC
TFFALFA # ALFA E:(26-NR) M:(24-NR)
SL*
0,1 # X1=-NR
STORE TFFX # X
RTB DMP
T(X) # POLY
# ZSQ FROM PDL+2 E:(-26) M:(-24)
SR2 BDSU # 2 ZSQ T(X) E:(-29) M:(-27)
RTERM # RTERM E:(-29) M:(-27)
DAD DMP
RMAG1 # E:(-29) M:(-27)
# Z FROM PDL+0 E:(-13) M:(-12)
SR3 BPL # TFF SQRT(MU) E:(-45) M:(-42)
ENDTFF # (NO PUSH UP)
PUSH SIGN # TFF SQRT(MU) TO PDL+0
TFFQ1 # Q1 FOR GONEPAST TEST
BPL DLOAD # GONE PAST ?
NEGTFF # YES. TFF < 0.
TFF1/ALF # 1/ALFA E:(-22-2NA) M:(-20-2NA)
DCOMP BPL # ALFA > 0 ?
NEGTFF # NO. TFF IS NEGATIVE.
>>
>>55512004
>write shit code
>press the format button in an IDE
>wala instant checkstyle compliance for any standard coding style
>>
File: 1467005503187.jpg (28KB, 307x462px) Image search: [Google]
1467005503187.jpg
28KB, 307x462px
>>55512727
this is missing an end case

emacs lisp:
(defun depth (lst)
(cond ((consp lst)
(+ 1 (apply #'max
(mapcar #'depth
lst))))
(t 0)))

(depth '((5 2 9) (4 3 2 1) (8 9 (3 2 1)))) ;; => 3
>>
Get the number of vowels in a line of user input (Perl):
print <> =~ tr/[a|e|i|o|u//i;
>>
>>55513488
lisp is so stupid.
>>
>>55513230
LUL
>>
w3m source code.
Thread posts: 21
Thread images: 2


[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.