[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
Beautiful Code
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: 21
Thread images: 2
File: code.png (144 KB, 302x339) Image search: [Google]
code.png
144 KB, 302x339
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 (28 KB, 307x462) Image search: [Google]
1467005503187.jpg
28 KB, 307x462
>>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 replies: 21
Thread images: 2

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.