[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 | Extra juicy! | Home]

Show me your coding skills!

The stories and information posted here are artistic works of fiction and falsehood.
Only a fool would take anything posted here as fact.

Thread replies: 171
Thread images: 31

File: opisafaggot.jpg (21KB, 484x209px) Image search: [iqdb] [SauceNao] [Google]
opisafaggot.jpg
21KB, 484x209px
Show me your coding skills!
>>
>>705004869
> 2016
> using goto this way
Get cancer faggot
>>
>>705004869
*Sees the goto statement used*
*Leaves thread*
>>
>gotos in an OOP lang

Make up your mind. Only (half logical) reason to ever use them is to break out of nested loops
>>
File: 802264064.jpg (58KB, 490x653px) Image search: [iqdb] [SauceNao] [Google]
802264064.jpg
58KB, 490x653px
10 print "op is a faggot"
20 goto 10
>>
File: 1433190665123.jpg (82KB, 502x674px) Image search: [iqdb] [SauceNao] [Google]
1433190665123.jpg
82KB, 502x674px
#include <stdio.h>

int main(char* argc, int argv) {
printf("OP IS A FAGGOT");

return 0;
}
>>
>>705005113
this
>>
File: 1445097056242.jpg (63KB, 693x663px) Image search: [iqdb] [SauceNao] [Google]
1445097056242.jpg
63KB, 693x663px
print("Op Is A fAgGoT")
>>
File: 1445803872549.jpg (64KB, 506x662px) Image search: [iqdb] [SauceNao] [Google]
1445803872549.jpg
64KB, 506x662px
>>
>>705004869
Is it possible to be a dynamic vs a static fag?
>>
File: stuff.jpg (245KB, 1869x1067px) Image search: [iqdb] [SauceNao] [Google]
stuff.jpg
245KB, 1869x1067px
>>705004869
dont go easy on me.
>>
>>705006876
+5 for linux
+0.5 for python
>>
>>705006876
you disgust me
>>
>>705006876
what editor is that? emacs?
>>
>>705007083
its vim with default syntax highlighting.

>>705007010
but why :<

>>705007009
its software that only i use and doesn't need to be fast and has no GUI. why not python?

i wanted comments on the code not the rest lol.
>>
>>705006876
how do you get those colors for the bash?
>>
>>705006876
loonix, terminal editor, python
I like your style


>>705007083
>emacs
>editor
Pick one
>>
File: op.png (13KB, 333x123px) Image search: [iqdb] [SauceNao] [Google]
op.png
13KB, 333x123px
>>705007335
>>
>>705007376
its done via the PS1 variable. put it in your .bashrc


this is my PS1:

# prompt format
PS1="\[\e[0;34m\]\T \[\e[0;33m\]\u\[\e[0;31m\]@\[\e[1;34m\]\h\[\e[0;31m\][\[\e[0;37m\]\w\[\e[0;31m\]]\[\e[0;36m\]"

but you can google PS1 generators and make your own.
>>
>>705007419
>I like your style

woot

still id like some comments on my coding. i wonder if im good sometimes.
>>
>>705007419
nice meme
>>
>>705007629
aight thanks
>>
>>705004869

if ($you == "gay") {
echo "you are gay";
}
>>
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
>>
File: cf.png (3KB, 270x94px) Image search: [iqdb] [SauceNao] [Google]
cf.png
3KB, 270x94px
C? get with the time oldfags
>>
>>705007780
the colors above the prompt are done with back color codes in the script that outputs the "todo" list. google bash color codes.
>>
>>705007629
Have a look at ZSH. Either OhMyZSH or Prezto
>>
>>705004869
>coding skills
>goto
>coding skills
>>
>>705006876
Your comment style and single line ifs are not very Pythonic, but it's still nice looking code.

Keep up the good work
>>
>>705007884
C++? Have some Lua
print "Hello, person who uses a non-productivity oriented language/ecosystem"
>>
10 PRINT "OP IS A FAGGOT!"
20 GOTO 10
>>
>>705007884
My nigga. The guy who made all of our production C++ code before I started has using namespace std; in every class and it gives me cancer.
>>
File: asmdcrypt.png (73KB, 1071x931px) Image search: [iqdb] [SauceNao] [Google]
asmdcrypt.png
73KB, 1071x931px
Learning me some x86 ASM. This opens files from a game I'm cracking and decrypts them. Here's a snippet.
>>
>>705007965
ive tried ZSH and the like.

im pretty old school when it comes to software, if it works dont fix, etc.

i still use screen lol.
>>
>>705008026
self taught so my style is probably shit. thanks for the input.
>>
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwiHxpmAj6TPAhUFmh4KHbijDJgQIAghMAA&url=http%3A%2F%2Fwebcache.googleusercontent.com%2Fsearch%3Fq%3Dcache%3AYlbGL5s_U70J%3Awww.cexx.org%2Floveletter.htm%2B%26cd%3D1%26hl%3Den%26ct%3Dclnk%26gl%3Dus&usg=AFQjCNHRHmjbaNbDQLoukwT3sOoG-WiVqQ
>>
>>705005270
kek
>>
>>705008082
I actually started with Lua when I was ten.
>>
p "ur a faget"
>>
I'm a beast at VBA nigga
>>
>>705008097
the entire namespace? using
using std::cout;
or something is excusable but the whole std namespace? why tho
>>
universal_server() ->
receive
{become, F} ->
F()
end.
>>
im like pro at notepad.exe
>>
>>705004869
#include<stdio.h>
int main()
{
while(1)
{
printf("op is a faggot\n");
}

return 0;
}
>>
File: 1473561185190.jpg (400KB, 900x1200px) Image search: [iqdb] [SauceNao] [Google]
1473561185190.jpg
400KB, 900x1200px
>>705008115
Post full source. Tits for you.
>>
>>705008572
Shorter:
for(;;) printf("op is a faggot\n");
>>
File: 1469558136759.jpg (12KB, 300x237px) Image search: [iqdb] [SauceNao] [Google]
1469558136759.jpg
12KB, 300x237px
>>705006876
>2016
>terminator
>>
>>705008651
ASM makes me consider suicide when i think of making anything close to complex.

>open file
>7 lines
>file size
>6 lines
>no mem mgmt

oh god please no
>>
>>
>>705008824
whats wrong with it
>>
>>705007540
>implying coding is hard
>>
>>705008873
topLine, middleLine, bottomLine look like they should be final, and be in class scope and not in function scope. This seems to be for a game. Java was not designed for games, and notch is a moron.
>>
holy shit! that google link is a virus!
>>
>>705008873
you code OS?
>>
File: 1469980341909.jpg (314KB, 949x1654px) Image search: [iqdb] [SauceNao] [Google]
1469980341909.jpg
314KB, 949x1654px
>>705008115
God's work
>>
>>705008908
the question is what's right. the only reason to use it is to be able to split windows into tiles, and tmux does that and more while allowing you to use a real terminal emulator
>>
(def isFaggot?
(fn [user]
(if
(= user OP)
true
true
)
)
)
>>
mov [(SRB.CDB) + 0],01Bh ; load/unload command
>>
>>705009043
>implying you're virgins
>>
>>705004869
>>
>>705009284
>the question is what's right.
it emulates a terminal.

i use screen to split windows, lol.

does everything i need and supports transparency well. why would i change?

i learned linux like 15 years ago im so used to doing things the old way i really not going to bother learning new features for new software to do what i already do 2nd nature.
>>
>>705007884
>\n into cout
>>
>>705009444
nice wikipedia copypaste
>>
>>705009328
Fuck formatting
>(def isFaggot?
>>(fn [user]
>>>(if
>>>>(= user OP)
>>>>true
>>>>true
>>>)
>>)
>)
>>
File: autism.jpg (136KB, 500x659px) Image search: [iqdb] [SauceNao] [Google]
autism.jpg
136KB, 500x659px
>>705009444
> haxker interface
WOah - are you a wizard?
>>
>>705009590
'\n' doesn't flush the buffer, which takes time.
>>
>>705009444
>hacker interface
>ls -la
>>
Hey you codefags I'm trying to Unicast WOL UDP and haven't found a good script prefer PS
>>
>>705009604
so why not just return true for the function or make isFaggot a bool that is true?
u like wasting cycles bro?
>>
>>705004869
>goto
what is wrong with you?
>>
File: file.png (186KB, 1893x924px) Image search: [iqdb] [SauceNao] [Google]
file.png
186KB, 1893x924px
>>705004869
my audio encoding service

>someone paid me for this steamy shit
>>
>>705009670
Retard, you don't see any output until buffer is flushed.
>>
>>705009833
aka it's done automatically by your smart compiler either way.


>>705009827
???? ffmpeg ????
>>
>>705009827
i hope steve balmer gives you aids and satella shits in your mothers mouth
>>
File: hax.jpg (146KB, 1280x720px) Image search: [iqdb] [SauceNao] [Google]
hax.jpg
146KB, 1280x720px
I fucking own your pussies! I am great web hacker online!
>>
>>/g/
>>
File: dcryptfull.png (360KB, 1050x5428px) Image search: [iqdb] [SauceNao] [Google]
dcryptfull.png
360KB, 1050x5428px
>>705008651
Here you go anon. I'm still learning so it may not be perfect.
>>
>>705004869
SELECT * FROM THIS.THREAD
WHERE FAGGOT = 'TRUE';

> Return 1 record
> Name = "OP"
>>
public bool FaggotDetector(int postId, int userId)
{
using(var db = new DatabaseContainer())
{
var post =
db.Posts.FirstOrDefault(p => p.Id == postId);

if(userId == post.CreatedBy)
return true;
}
return false;
}
>>
>>705009827
>>705009950

dbpoweramp

>they had a license and demanded i use it
shit was jokes, son
>>
>>705009995
"ah ah ah", "ah ah ah","ah ah ah".
good movie.
>>
>>705010093
lofl. ever hear of paste bin?
>>
File: gamoo.jpg (323KB, 766x758px) Image search: [iqdb] [SauceNao] [Google]
gamoo.jpg
323KB, 766x758px
>>705004869
-[--->+<]>------.+.[----->++<]>.-[--->++<]>-.++++++++++.+[---->+<]>+++.[->+++<]>+.-[->+++<]>.++[->+++<]>.-----.++++++..++++++++.+++++.
>>
>>705004869
Hello world :^)
>>
>>705009569
right, you learned linux 15 years ago and picked up terminator. cool bro
you can keep using your garbage and be happy with it, it doesn't make it any less garbage
>>
>>705010397
Ah good old brainfuck...
>>
/* TABS > SPACES */
>>
>>705010306
>code
>SQL commands

SELECT * FROM *.* WHERE NOT ISCODE;
>SQL
>>
@echo off
title OP's a fag
print I fucking hate the nigger OP
pause


I am the master at this! :D
>>
DROP TABLE USERS
>>
>>705010463
and im asking you to tell me what makes it garbage.
still waiting too.

boy is terminator triggers you id thought youd blow you lid about screen.
>>
>>705009995
>>705010560
use an orm you uncultured piece of shit
>>
>>705009053
a moron with a billion dollars tho
>>
>>705010657
>>705010463
also i used bash till like 5 years ago. then wanted transparency so i had to switch :D
>>
>>705010469
I'm glad someone got it.
>>
File: Who.png (55KB, 534x344px) Image search: [iqdb] [SauceNao] [Google]
Who.png
55KB, 534x344px
BEAT THIS, FAGGOTS.

Protip: You can't.
>>
You want to see my coding skills?
I can hack your computer with a single link. Mouseover this:
>>>/v/352645161
>>
>>705010971
ya got me
>>
>>705010971
10/10
>>
>>705010971

Never seen this before. And I've been here for 8 years now.
>>
INSERT INTO Your.Mom
SELECT
Dick,
Dildo,
Broom
FROM Random.Shit
>>
>>705004869
This is me doing some MCMC code in Julia, fitting a model to some disease transmission data. I've included the likelihood calculation, and the graphs with parameter histograms and Beta/Gamma distributions best fits.

Normally a Linux user, but my monitor is blown so I'm using my work laptop.
>>
>>705010971
Fucking magic!
>>
>>705004869

public class FaggotChecker {

public static void main(String[] args) {

if (true){

String adjective = "faggot";

System.out.println( "OP is a massive " +adjective );
}
}
}
>>
>>705010971
how the fuck is this working
>>
>>705010971
based anon
>>
File: 1402724439563.jpg (114KB, 367x384px) Image search: [iqdb] [SauceNao] [Google]
1402724439563.jpg
114KB, 367x384px
>>705010946
>Using assignment operator instead of equivalency operator.

0/10
>>
>>705011238
filth
>>
>>705011171
Me neither, and Ive been here since the late 70's
>>
>>705010374
>>705010093
Not sure why I thought you'd want to see a giant screenshot tbh.
Pastebin = Qcb9kZ8Y
Won't let me post the link, thinks it's spam.
>>
>>705010472
Wrong. Source code filesize doesn't matter anymore, editors handle space indentation of any desired width just as well as tabs, and you don't end up with two different whitespace characters in your file being used inconsistently.

>>705011357
>equivalency
It's called comparison operator
>>
>>705011238
nice fucking variable names i think i threw up a little.
>>
>>705004869
import java.util.Scanner;

public class Exercise_3_9
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);

System.out.print("Enter the first 9 digits of an ISBN as an integer: ");

int isbn = input.nextInt();

double d1 = isbn / Math.pow(10, 8);

int d2 = (isbn / Math.pow(10, 7)) % 10;

int d3 = (isbn / Math.pow(10, 6)) % 10;

int d4 = (isbn / Math.pow(10, 5)) % 10;

int d5 = (isbn / Math.pow(10, 4)) % 10;

int d6 = (isbn / Math.pow(10, 3)) % 10;

int d7 = (isbn / Math.pow(10, 2)) % 10;

int d8 = (isbn / 10) % 10;

int d9 = isbn % 10;

int d10 = (d1 + d2 * 2 + d3 * 3 + d4 * 4 + d5 * 5 + d6 * 6 + d7 * 7 + d8 * 8 + d9 * 9) % 11;

if (d10 == 10)
{
System.out.print("The ISBN-10 number is " + isbn + "X");
}
else
{
System.out.print("The ISBN-10 number is " + isbn + d10);
}
}
}

i have a little work to do but its almost finished
>>
File: hereyougo.gif (88KB, 10000x10000px) Image search: [iqdb] [SauceNao] [Google]
hereyougo.gif
88KB, 10000x10000px
>>705010946
literally got cancer reading that.
>>
>>705010657
>>705010858
what the fuck are you talking about, bash is a shell and has nothing to do with transparency
terminator is a pile of shit clickfag features forked from gnome-terminal, I could go on from there but if you don't get it yet there is nothing I can do for you
>>
>>705011707
lol thanks asshole
>>
>>705010472
I agree. Tabs are great. If I want to change how my code looks, I just set the tabwidth the way I want it. With spaces you're stuck with how someone else wanted it.
>>
>>705004869
goto fuck you
>>
>>705010971
1337 hax0r
>>
>>705011622
I'm a mathematician. I use the variable names that match the way I write them on paper.

Plus I don't need to share my code, so I'm perfectly happy with things the way they are.
>>
>@echo off
>color 0A
>forfiles /M * /C "cmd /C if @isdir==FALSE if @ext==\"\" del @path"
>set /p url="Enter URL: "
>GOTO repeat

>:repeat
>wget -H -rc -nd -l2 -Di.4cdn.org -erobots=off -R *s.jpg %url%
>pause
>GOTO repeat
>>
>>705011737
sorry i meant xterm, bainfarted.

and i couldn't get xterm to go transparent with xcompmgr + transset using openbox so i just switched emulators.

terminator works perfectly for me so i guess i just like garbage software :D

thanks for pointing that out i guess.

>>705011964
fair enough, still triggers me.
>>
Been working on this for a while.
>>
While you guys are here, can you give me a good resource for learning Java?
>>
4qCg4qC64qCT4qCB4qCe4qCA4qCB4qCA4qC64qCB4qCO4qCe4qCR4qCA4qCV4qCL4qCA4qCe4qCK4qCN4qCR
>>
>>705012583

Youtube channel TheNewBoston
>>
>>705012583

tutorialspoint
>>
>>705012583
The Internet
>>
>>705012772
>TheNewBoston

That guy does a lot of shit. Great for learning some basic stuff.
>>
c000 ldx #$00
c002 lda $c010,x
c005 beq $c00e
c007 sta $0400,x
c00a inx
c00b jmp $c002
c00e rts
c00f nop

c010:0f 10 20 09 13 20 01 20 06 01 07 07 0f 14 00 00
>>
>>705004869
def main():
for i in range(1,1338):
print('You're a faggot nigger')
main()
>>
How do you choose between the dozens of coding languages, I want to start learning but what
>>
>>705012374
vim, nerdtree, I hope that's airline and not powerline. I like you.
>>
>>705012939
>>705012772

Derek Banas has higher quality / more mature content
>>
@echo off
:1
ping google.com -t -l 1024
goto 1

l33t h4x0r
>>
>>705005113
kek
>>
>>705012230
I'd write it as \epsilon_H H, which becomes eH*H in the code. I suppose I could write high_shedder_shedding_rate * num_high_shedders, but that takes up a lot more space and time to write, and can break up the flow.

Typically if you have complex equations (which you get in maths) you really want to avoid long variable names. Applications programmers probably shudder at the thought, but scientific programming is a very different environment.
>>
>>705013042
Java
period
>>
DO
PRINT "op is faggot"
LOOP
>>
>>705013042
It all depends on what you want to do
>inb4 "I wuna make gaymes"
>>
>>705007550
>char *
The fuck.... It's a char **
>>
>>705009444
kek
>>
>>705012995
> range(1,1338)
not
> range(1337)
>>
>>705013265
i get it, thats actually a good reason. im just saying it triggers me lol.
>>
>>705013494
And the arguments are in the wrong order
>>
>>705013042
First, you learn boolean logic operations
then, you learn transistor logic
then, you learn how to build functional units from logic gates
then, you learn CPU design
then, and only then, you learn assembly language
then, after you have mastered assembly language (not dabbled, but mastered it), you learn C
then, after you have mastered C, you may learn the higher-level languages of your choice, but you will always use C and assembly as your primary languages because everything else is unnecessary bloat.

Dont listen to this anon
>>705013288
Lest you want to be a code monkey throughout your existence and get paid in bananas
>>
>>705013042
If you want to learn to program, penalty JavaScript, because you can work on it and run it anywhere you can find a web browser.

If you really want to learn to program, then have a look though SICP (Structure and Interpretation of Computer Programs). Also look up the Abel and Sussman programming course on YouTube. It's from 1986, but everything they teach is valid stuff. They also use Scheme, which is a dialect of Lisp, the most amazing programming language ever made (Clojure is the most popular modern dialect).
>>
>>705011707
kek
mind if i save?
>>
>>705013848
-penalty + probably. Fucking phone autocorrect.
>>
File: fuck you op.png (3KB, 441x168px) Image search: [iqdb] [SauceNao] [Google]
fuck you op.png
3KB, 441x168px
You're lucky I'm rendering a video and can't restart.
>>
>>705013848
>if you like high learning curves

is your not an acedemic maybe start with something little more basic than scheme and SICP, lol.

I like lisp but its unintuative as fuck till you get used to it.
>>
>>705013993
go ahead lol.
>>
>>705013756
mhm, maybe I should just an hero
>>
>>705013756
i want to learn how to code
>No, you first have to follow my lead and learn 10 different things before you can even touch that. How DARE you drive a car without being able to build a engine with your bare hands, amirite guys?

http://www.tiobe.com/tiobe-index//
>>
>>705005113
In my workplace, I see people use goto still, but only to go to error cleanup in C/C++.
>>
Anyone here has experience in finding work on the internet? I mostly tried freelancing websites like guru.com, I know a bit of android and java, but all of my offers are getting turned down.
Fucking subhuman indians working at $5/hour are taking most of the jobs. And I've seen some of the shit they write, it's complete trash. Yet people keep picking them for badly written software that will have to be either fixed or thrown out and rewritten later.
>>
>>705006340
guy on my team at work had to write assembly code to interact with a restful API over http. even had to support JSON objects
>>
>>705014290
he is trolling.
learn c if your smart learn python if your not.
>>
File: 20160922_192205.jpg (1MB, 2988x5312px) Image search: [iqdb] [SauceNao] [Google]
20160922_192205.jpg
1MB, 2988x5312px
lets compare e-peens, almost 10" here.

pic related.
>>
>>705014653
Both are good to learn. I still use python to quickly make scripts to do little things.
>>
>>705014137
Heh, fair enough. It is an amazing language though, and been around since the 1950s (only Fortran is older).

I do think that JavaScript is a good idea to start with. Not that it's a good language, it's all kinds of horrible, but you can get stuff done in it, it runs pretty much everywhere, it's pretty fast, and you can share it with your friends easily, which is really important. It's like hanging round at a friend's house and programming games on their ZX Spectrum.
>>
File: Capture.png (8KB, 783x245px) Image search: [iqdb] [SauceNao] [Google]
Capture.png
8KB, 783x245px
>>705004869
>>
>>705013061
Yep, airline. Good shit right there.
>>
>>705014605
Vote Trump. He is very clear about his H1 Visa policies. *assuming you are American
>>
>>705015074
That's nice, but you don't need a visa to work from India through the internet.
>>
File: download (2).jpg (12KB, 284x178px) Image search: [iqdb] [SauceNao] [Google]
download (2).jpg
12KB, 284x178px
Beat that fags
>>
File: howtogetflags.png (140KB, 1161x509px) Image search: [iqdb] [SauceNao] [Google]
howtogetflags.png
140KB, 1161x509px
>>
>>705015311
The absolute pinnacle of programming.
>>
>>705013848

What you mean ((()())()Lisp(((()()))))))())()()()())))
>>
>>705015708
im still waiting for a higher abstraction level.
Thread posts: 171
Thread images: 31



[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]
Please support this website by donating Bitcoins to 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
If a post contains copyrighted or illegal content, please click on that post's [Report] button and fill out a post removal request
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 4Archive shows an archive of their content. If you need information for a Poster - contact them.