[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]

/cyber/ - Cyberpunk & Science Fiction

A board dedicated to all things cyberpunk (and all other futuristic science fiction)
Name
Email
Subject
REC
STOP
Comment *
File
Password (Randomized for file and post deletion; you may also set your own.)
Archive
* = required field[▶Show post options & limits]
Confused? See the FAQ.
Flag
Embed
(replaces files and can be used instead)
Oekaki
Show oekaki applet
(replaces files and can be used instead)
Options

Allowed file types:jpg, jpeg, gif, png, webp,webm, mp4, mov, swf, pdf
Max filesize is16 MB.
Max image dimensions are15000 x15000.
You may upload5 per post.


“Your existence is a momentary lapse of reason.”

File: 1426912449445.gif (1.91 MB,500x500,1:1,1425945679455.gif)

 No.18688 [Last50 Posts]

WHAT YOU'LL BE LEARNING:
C++

WHAT YOU'LL NEED:
>A computer with a text editor and compiler.

IF YOU WANT TO START HACKING AT SOME CODE RIGHT AWAY:
>Navigate to http://coliru.stacked-crooked.com/
>and read my second reply.

BEFORE YOU GET STARTED:
>Make sure you have an editor with source highlighting and line numbers (gedit is good).
>Install a compiler (gcc OR clang).

WHAT IS A COMPILER?
>It converts human-readable source code (C++) into an executable (.exe, .bin, a.out)

WHERE DO I GET ONE?
>Windows: http://tdm-gcc.tdragon.net/
>Linux: Install the 'clang' and 'g++' packages, g++ is commonly installed
>Mac Fags: I dunno, I don't use a mac, g++ should also be installed


HOW DO I COMPILE STUFF?
>Make sure you have a C++ program typed out (enter 'int main() {}' and put it in a file somewhere)
>Open up a terminal (CMD for you win fags)
>navigate to where you stored the file with 'cd' and 'ls' ('dir' for windows fags)
>type in 'g++ my_file.cpp' (or 'clang++' if you installed that)

IT DIDN'T WORK!
>Make sure you either don't have spaces in your file name or you escaped the spaces with a backslash ('\').
____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18693

File: 1426915645849.png (17.38 KB,769x424,769:424,semi-recursion.png)

I DID ALL OF THAT, WHAT DO I DO NOW?
>Now we're going to write a program.

>Make a new file, put the following source code in it, compile it and and run it.

#include <iostream>
using namespace std;

int main() {
cout << "Hello, \x2f\x63\x79\x62\x65\x72\x2f\n" << endl;
return 0;
}



HOW DO I RUN MY PROGRAM?
>Windows: you need to type out the name of your executable, double clicking won't work!
>Linux and Macfags: specify the absolute or relative path to the executable, './a.out' should work if it's named 'a.out'. Replace 'a.out' with whatever the actual file name of the executable is.


SO WHAT HAPPENED?
>Your program ran and outputted a string of letters to the screen.
>Here's a line by line description of what that program does:

// "#include" tells the compiler to just "copy paste from this file"
// "#include <iostream>" takes the 'iostream' file that came with your compiler and and paste it in where you put the include directive.
#include <iostream>

// We'll get back to this
using namespace std;

// We create a 'function' or part of the program. The function main() will be the only thing that runs unless you tell C++ to run other functions!
// It doesn't matter if you put it all the way at the bottom of the file, it will ALWAYS BE THE ONLY THING THAT RUNS UNLESS YOU 'CALL' OTHER FUNCTIONS TO RUN.
// The stuff between the curly brackets is the code 'inside' of that function that will be executed when the function itself is executed.
int main() {
// With this statement we output a message, this is the first thing executed in your program when it is launched.
cout << "Hello, \x2f\x63\x79\x62\x65\x72\x2f\n" << endl;
// This is the second thing being executed in your program and tells C++ to stop running this function and return a exit value of '0'.
// This terminates the program and returns a "all was good" to the operating system and program that called your program.
return 0;
// And last, we have to close the 'code block' of the function so our program is valid C++ and we can declare another function
}

// This part wasn't in the earlier program you ran, but I added it here to explain something.
// See, even though the function f() is present in this program and it IS compiled and included in your program?
// It will NEVER run because f() is completely separate from main(), and ONLY main() is run when you start the program.
// If you DO want f() to run? You should call f() by writing "f();" somewhere in main()'s codeblock (between '{}').
// Since every thing inside a codeblock is executed sequentially, if you call f() after the 'return' in main()? It will NEVER run because the program is terminated with 'return' BEFORE f() is called!
void f() {
cout << "THIS WILL NEVER RUN" << endl;
cout << "THIS WILL NEVER RUN" << endl;
cout << "THIS WILL NEVER RUN" << endl;
}


Pic related.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18695

Since I don't know anything about this stuff, what is c++ and why learn it? Is it like the best or most adaptable?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18696

>>18695
> Is it like the best
No, it's the fucking worst, but it's what everyone uses. Learn something good instead, like haskell. Or learn vba, it's even more the worst, but no matter what bullshit desk jockey role you find yourself in, no matter how much they locked the machine down so that people like you can't go outside the SOP, they've installed excel
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18697

I like it that people have so many different opinions that it's hard to choose what to start learning.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18698

Incoming language wars.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18699

C is a good and powerful language, but it's completly beyond a noob like me.

I started on the book How to Design Programs (available online and hardcopy), which uses the Racket language as a tool to teach you program design. I've been having fun so far, I feel like I'm learning something new.

Not recommending anything really since I'm still a newb, but I thought I should share.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18700

>>18695
C++ is fast, statically typed, allows room to grow for a scrub and has a SHIT ton of library support (because everything uses C and C code is forwards compatible with C++).
Don't let anyone sell you on that dynamic typing shit. Shit WILL fuck up your day.

>>18696
>No, it's the fucking worst, but it's what everyone uses.
No, it's the fucking worst because 'design shazbots' push OOP beyond where it should be used, and apply design patterns in a shit way.
(Like using a singleton to pass data around.)

I said this in another thread, (>>18651)
>People give it a lot of shit because you can do completely horrible things with the language that fucks up everyone's day.
>It is a good language if you're not abusing it. Doom3/idtech4 is a good example of a good C++ project that doesn't abuse the language.
Almost all programming languages have support for writing the shittiest code ever that "jerst werks", this isn't some C++-only 'feature'.
It's easier to end up with a IOCCC-like monstrosity in C++ than in C. Especially in daily use.

The problem is, every time you need a dynamic array in C? You either roll roll your own or use a library.
And that's where C's problems start and C++'s solutions come in.
You don't HAVE to use OOP, or vectors, or strings, or namespaces. But it can make your life a lot easier than you give it credit for.

I'm gonna have to second Haskell, though. Shit's so rad, I need shades to see.
But I HIGHLY DOUBT functional programming isn't appropriate for newcomers.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18701

>>18699
>beyond me.
It's not. The hardest thing is figuring out what the compiler is bitching about when it fails.
Pasting the error some place helps. (Google, IRC, this thread.)

But don't EVER switch away from your first language. Stick with Racket.
If you stop programming for a couple months and you want to get back into coding?
Then go back to your first language (Racket) and don't "switch" to another unless you can finish at least 15-30 Project Euler problems without language tutorials.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18702

>>18701
>But don't EVER switch away from your first language.
Seeing people say things like this make me afraid that I'll be stuck with a language, which always keeps me from wanting to learn.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18703

>>18702
Half-assing multiple languages is a mistake everyone seems to make.
When you've done 2 C++ tutorials, and 2 Ruby tutorials and 2 Python tutorials? You're no closer to being a programmer than you were before.
If instead of doing 6 tuts/lessons on 3 languages, you focused on only one language? You'd know way more about programming and that particular language.
Tutorials always start with basic input outout, they start with functions, variables, blah blah blah.
But you won't ever learn what the difference between a static and a constant var is, or what a hash table is.

And that is why you need to stick with one language.
As for a language being 'too limiting'? Even Lua has 3D rendering facilities.
Unless you're learning Brainfuck? A programming language will not be 'limiting' BEFORE you master the language.
If you're running into the problem of a language being too limiting? Then it is time to start learning another language.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18705

>>18703
If you keep switching tools, you'll be too focused on learning the tool itself.

Being a programmer is more than coding. Coding is simply writing programs.
Programming is design, debugging, experience, expertise, abstract thinking.
All of these skills are essential so you don't end up being a retoid like Briannu Wu with her 'excellent' programming skills.

'her'
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18712

>>18705
Hey, OP
Love the thread, but I would advise you to ignore the language wars and IDE wars since that isn't the main goal of the thread
Continue on the good thing, you are doing a great service for this board
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18723

>>18695
C++ is the best for large, complex projects that need to be fast. I'd actually learn C first if I were you so you can get your bearings on simple programming without OOP.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18751

>>18700
>(Like using a singleton to pass data around.)

I do this for my video game's save data and there's nothing you can do to stop me :^)
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18756

So is there any PDF or a guide so that I can learn this C*something*
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18767

FUNCTIONS AGAIN
When you run your program, main() is called and thus starts at the beginning of the codeblock and works through it sequentially.
When 'return' is called from inside a function or the end of the codeblock is reached, that function will immediately cease executing and 'return' to the function which called it.

#include <iostream>
using namespace std;


void f() {
cout << "three" << endl;
cout << "four" << endl;
}

int main() {

// This statement will be executed first, (print "one" to the screen)
cout << "one" << endl;

// This is the second statement executed. We're just sequentially going through this code block!
cout << "two" << endl;

// And now we step to this next program statement which is a bit different.
// When f() is 'called' from here, main() will stop executing.
f();
// And thus the program will instead continue executing at the top, near f() (the 'three' and 'four' part!)
// After those two statements in f() are done executing and there's nothing left in the code block of f() to run? That's when f() 'returns' and the execution of f() stops and the program returns executing where it was previously: right here.

// Print a nice last message
cout << "last!" << endl;

// And finally let main() return itself by implicitly telling it to return with a value of '0' (all is good!)
return 0;
// After we return main()? The program stops executing, your operating system cleans up the program from memory and may report the return code to the program that launched it.
}



RECAP
As you know by now: Functions are sections of a program that run when 'called'. This 'calling' is done by specifying the function inside the codeblock of another function like main(), which itself is obviously also a function! You can call functions as many times as you want, you should probably practice changing what f() does and try calling it multiple times from main().

Functions can have multiple inputs and one output. Like main() returns an exit code, so can a function return something to another function that called it. Usually it returns either a return code telling you whether the function ran succesfully or the desired data you wanted.


A BIT OF META
Since all programs (and functions!) are automatic 'solutions' to some problem and problems tend to be complex, it's understandable that the hardest part about programming is controlling that complexity. Functions are thus used to 'divide and conquer' your problem by chopping your solution into bits and then gluing it together. (And functions can easily be 'reused' in the same program, or just copy-pasting it to another!)

In the end: Functions should do one thing, and do it well. (Read http://en.wikipedia.org/wiki/Unix_philosophy#Eric_Raymond.E2.80.99s_17_Unix_Rules )
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18768

File: 1427040511796.png (30.65 KB,2000x1437,2000:1437,2000px-Data_stack.svg.png)

SOME MORE ABOUT FUNCTIONS
Run and compile this:
#include <iostream>
using namespace std;


void g() {
cout << "g()" << endl;
// we could call h() from here, but that's pointless.
}


void f() {
cout << "f()" << endl;
g();
}


int main() {
cout << "main()" << endl;

f();

return 0;
}


When executed, main() will run. main() will call f() who will call g().
When g() returns? The execution returns to who called it: f().
Same with f(), main() called f() and thus when f() returns the execution will return in main().

Visualize this as a stack of functions where the function at the top of the stack is the current one executing.
When the program starts executing, main() will be the only function the stack. When f() is called? main() pauses execution and f() is pushed on the top of the stack. When g() is called? f() pauses and g() is pushed onto the stack.
Whenever a function is popped off the stack because it returned? The top most function simply resumes executing.
When no more functions are on the stack, the program ends!
The way the stack works is more technical than you think, but it's all abstracted and doesn't concern you 99% of the time.

It's perfectly fine if you call a function from itself. However, if that function keeps calling itself? The stack will keep growing and growing until your operating system puts an end to it and kills the process. And that, is a stack overflow.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18769

i was gonna learn python.

well, i was in the process of learning it when RL came up and i'm back to square one.

is it worth learning more than one at the same time?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18770

>>18712
Will do.

>>18723
We're not going to tackle OOP, how streams work or any advanced languages features before learning the core: Which is the C language.
We WILL be using std strings for storing strings if the need arises.

>>18756
Plenty of shit you can Google, I haven't found a good free resource.
I recommend Applications Programming in C++ if you don't want to follow this thread and can get your hands on a pdf.

>>18769
Like I said in >>18701
>don't EVER switch away from your first language
If you can remember anything about Python? Go use that.
If not? Go with this thread or feel free to discard my opinion and learn something else.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18775

File: 1427051537737.pdf (2.03 MB,C# book.pdf)

Anyone knows if this is a good or bad and is it worthwhile to learn C#?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18776

>>18775
>>18775
I'm not gonna say it's bad or not worthwhile but C# is pretty much something that you learn if you're going to use .NET/Mono while C++ is useful in a wider range of environments
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18778

>>18776
So comparing C# and C++, with c++ you can do more stuff than with c#?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18780

>>18688
>Mac

Nope… not as simple as it seems. It doesn't have g++ pre-installed. I had to use a mac for a project this term and it was fucking terrible.

First of all, you need to install xcode. To install xcode, you need to have either a mac store account (its free, but you have to input your card info) or google 'xcode without mac store' and go to the developer page of mac's site and make a profile (it takes 2 email addresses, by the way.)

After you do that, if you want to use it like a Linux machine, you then have to install homebrew. This involves putting in a ruby code into terminal which isn't too complicated and accepting a few licenses.

To any mac-fags that are here… good luck
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18784

>>18778
You can do essentially the same things with both C++ and C# but C# needs Microsoft's .NET to work or the opensource Mono.

So you're stuck with being able to run code on whatever will run those frameworks. Maybe that isn't a concern, you might never want to work with some weird embedded device or maybe Microsoft drops support for your favorite platform and Mono pukes on your code.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18788

whats a good IDE for C++?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18793

>>18780
Better to just get virtual box and run a linux dist
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18794

>>18788
They made us use Visual Studio for class in college. It's very robust but for beginners it feels kind of bloated. Visual Studio Express is free.

Alternatively, Code:Blocks seems to be alright. These are the only two C++ IDEs I've used. Depending on your purposes it might be better not to use an IDE if you can help it, and stick with a very good text editor.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18801

>>18775
Anyone knows if there is a book like this, but for c++?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18805

>>18794
eh, the uni subject im doing has us using C++ and OpenGL, and they sort of said to install MinGW and to use Eclipse (which is a fucking java IDE) because buhhhhhhhhh

but its like the only thing i can do to make the OpenGL play nice because they didnt explain shit
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18807

>>18801
read >>18770
>I recommend Applications Programming in C++ if you don't want to follow this thread and can get your hands on a pdf.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18808

>>18801
I've been programming in C++ professionally for over 10 years. I learned C before that.

IMO there is only one beginner's C++ book I would recommend, Bjarne Stroustrup's PPP2
http://www.stroustrup.com/Programming/

It's not the easiest book to learn programming from as a beginner, but it's by far the best if you seriously hope to be a professional developer one day.

It's a 2-semester college freshman textbook. Master the contents of this book, and you'll be miles ahead of the pack.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18812

>>18693
>>18767
pls, do us all a favor and follow the 80-char line limit.

>clang-format

>use it
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18863

tfw want to learn c++, but don't understand drek nor where to start.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18891

File: 1427253040644.jpg (58.47 KB,430x539,430:539,c , the most interesting ….jpg)

>>18863
http://www.stroustrup.com/Programming/

it's written for beginners yea? if ur on windows, get visual c++ express desktop edition. if ur on linux or osx, you very likely already have at least g++ configured on your box. get a stackoverflow account set up an start asking questions there. sublime text is breddy gud editor.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18894

>>18891
>Sublime text
>Having to deal with a popup if you don't drop $70
Just use vim or gedit and git gud.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18897

what if you know how to program, but have no idea what to do with this knowledge? What is a cyberpunk application? games just don't cut it for me, and hacking is just so broad that it takes much more then just an understanding of how to program to accomplish anything worthwhile.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18902

>>18897
Make something described in an RFC document, like a TFTP server, in your fave language
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18903

>>18897
>Make /cyber/ rendering stuff you can leave running in the background
>Artificial Intelligence/neural networks
>Artificial life in general (Critterding)
>IRC chat bots
>Personalized meatspace TTS/speech synthesis bot that answers you when you get home, is your alarm system, a bit of company, is smart enough to extract info from wikipedia, etc.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18904

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18905

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18907

>>18905
shit looks raw good suggestions bb
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18910

Any c++ tutorials or other such things that explains what I'm seeing when looking at code and what do they mean?
I want to learn, but I don't know where and how to start. It just feels so challenging.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18929

>>18910

irc.rizon.net
#cyberprog

I'm gonna be lurking here this week, can answer questions.

My best bro from childhood is in town this week so I will be doing shit with him some but I'll get to your messages eventually.

I'll make a proper promotional for the chat eventually
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18930

>>18897
>>18808


>>18929
just pointing this out
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.18936

>>18894
who cares what editor you use? working through that book is what is important.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.19203

Starting to learn HTML: Hey, this is easy. But it doesnt look very good.
Starting to learn CSS: This looks good but it doesnt do much.
Starting to learn JS: This responses but its just for shenanigans.
Starting to learn C++: OMG applications that run outside of a browser!

What next?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.19218

>>19203
How and where did you learn c++
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.20696

My first project. Pretty much an artistic masterpiece:

http://tny.cz/e9b022c2
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.20740

>>20696
I was wondering that what went through your mind when doing that. Like how did you start it, how to know what to put and where to put the right lines.
I guess I want to know the process of making that.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.20741

>>18688
>teaching the public a fad language
>not teaching structures or interpretations of computer programs
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.20742

>>18699
They are using C as an introduction language at my university.
C is a really small and simple language, hardest thing should be pointers if you haven't used them yet.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.20759

>>20742

learning pointers early is so good for people. helps them realize how memory works which is useful in all sorts of ways. and help with appreciation of how much some languages do for you.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.20776

>>20740
Discovered arrays and thought I'd try outputting a grid of dots. Gradually built up from there. If somebody had given me a description of the game and said "build this" I wouldn't know where to start.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.20826

>>18688
Thanks OP for making the subject less scary to newbs that want to learn to code.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.21198

It sure is hard to choose that programming language to pick to learn, because everyone says different things.

Also what is hacking/cracking, like how does it work.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.21213

Hey,OP?

Keep being awesome.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.21214

>>19203

>webdev to programmer

Subhuman webdev, please take your tumblr and leave my hobby and career alone.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.21254

>>18699

I'm average and I learned C out of K&R over a few weekends. It's a pretty simple language. It lines up real well with assembly and how computers actually operate.

Then I added the SDL library and had some fun.

Now I've moved on to GLFW, OpenGL/GLSL, Bullet Physics, enet, portaudio, … you really can do anything with C/C++ and it's not that hard.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.21256

>>21254

What did you use to learn C(++)? Tutorials, books or something else?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.21265

>>21256

online FAQs and tutorials, but mostly by looking at other people's code. I tried two different books but they didn't teach much besides OOP dogma, classes, inheritance, and a bad C baseline.

the Qt project has some wiki entries where they discuss their philosophy of C++ coding. I think it makes sense for many projects, not just Qt. Qt itself is also amazing and worth using.

https://wiki.qt.io/API_Design_Principles

https://isocpp.org/faq

http://www.parashift.com/c++-faq-lite/index.html

There are a lot of mostly-useless pieces of C++ that are only really there for very specific domain problems. C++11 has made things better.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.21266

>>21265

Did you know any code before you started it?

Like what parts of the code mean and such.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.21281

>>18688

>making people learn a clusterfuck language like C++ instead of Scheme and using Emacs first

failure

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.21299

>>21281

gr8 b8 m8

C++ is easy

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.21306

I'd recommend http://it-ebooks.info/ since it has quite the selection of books as .pdf files, and they give links that you can actually buy the book if you want.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.21870

File: 1430616764661.png (305.13 KB,640x974,320:487,sicp.png)

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.25089

>>18688

The gentooman library is gone

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.25092

>>25089

Are you sure?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.25096

>>25092

Yes, Both websites are down. Could somebody re-upload the file?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.25105

>>25096

The installgentoo's ftp is on. Also, I got the library torrent on my PC. I just need some time to arrive at home, 'cause I'm on the middle of a meeting.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.25107

>>25105

Thanks chummer

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.25124

File: 1434247797032.gif (803.73 KB,500x715,100:143,139518691.gif)

>>25107

Srry, there's no .torrent here. I managed to get the magnet URI, but I'm pretty aware magnet links suck.

magnet:?xt=urn:btih:0bbfaaf5f469a2bd3d762f6942a302f7014a35e9&dn=Gentoomen%20Library&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.ccc.de%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A80

Let met know if it wrecks at some point. I'm running 3 machines at home, installing some windows soykaf in one of them (for my rommie), so it's not like I'm gonna get some sleep any soon.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.25126

>>25124

Also, there are tons of files hanging around in that shit. I have some decent upstream, but pls no rape. Choose the ones you actually need/like/wanna read.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.25127

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.25131

>>25126

I planned on downloading it all later, but I found out the admin running the site is taking a break for exams or whatever and it'll be back up soon.

I'm on my phone atm so if you don't want to keep it going that's fine. I appreciate you doing this regardless man.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.25136

>>18698

but i left /g/ on halfchan a long time ago…

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.25138

>>25131

That's okay. I'm dealing with a HP laptop (AMD Turion x2, some ATI, 2GbRAM, screen sometimes doesn't work), so it'll take a lot of my time to stick W8.1 up its lily ass.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.25162

File: 1434256698931.gif (461.82 KB,200x154,100:77,138817534382.gif)

>>25138

For the sake of lulz, I report: the little brat just turned off in the middle of the system installing 'cus Satan tried to build some kind of hell backup in its motherboard. I almost got blister on my hand when I tried to move the laptop.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.25164

>>21870

>YOU'LL NEVER FUCKING READ IT, LIKE YOU NEVER WATCH ALL THAT SHITTY ANIMU YOU DOWNLOAD.

I will eventually, seriously, I will probably

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.25172

>>21870

SICP for $10

Bull fucking shit. Where?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.26095

What about C#?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.26110

>>26095

C# is basically Java, except it got to learn from Java's mistakes. I like it. They're in the process of open sourcing the whole deal and porting it to Linux and Mac, but they're not quite there yet, so avoid it for now if you don't use windows.

http://rbwhitaker.wikidot.com/c-sharp-tutorials

These are pretty good. He shows and explains enough for you to play around with what you've learned. Just make sure you do that - write random shit and see what it does.

If you have no idea where to start, remove or change something in the example, and see what changes, or which error message comes up. You'll learn quite a bit that way.

Here are some milestone programs to work towards writing in approximate order of difficulty:

Dice roller

Higher or lower guess the number game (you guess computer's number)

Magic 8 Ball

Higher or lower guess the number game (computer guesses your number)

Tic Tac Toe game

All of the above, except with windows forms instead of the cli

Simple CSV database

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.27348

>>18688

thread needs a bamp

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.27375

File: 1436546703328.jpg (29.56 KB,422x600,211:300,1435870571410-3.jpg)

some tits for OP

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.27664

File: 1436830481524.png (115.75 KB,500x433,500:433,stalker.png)

Got started with this shit, installed gedit and gcc and being a total nooblet I also had to learn how to bring up and navigate the windows terminal.

But I managed to compile and run the "hello /cyber/" program and I'll get into the meat of the matter at once.

Keep up the good work op.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.27689

>>27664

>programming c++ in a text editor

don't do that, it's insane. it might work for hello world and to show you how to use compilers from command line but beyond the first day it is just increasingly counterproductive.

install qt creator or codeblocks or some other professional IDE.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.27701

>>27689

>qt creator

>codeblocks

>professional

0/10 not even once

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.28439

Kinda related, I'm trying my hand at programming since I'm not the best. It's a random name generator and I tried making it create 7 letter roman-sounding names, but in all honesty it sounds like a russian name generator, which is pretty cool too. Sauce is here, forgive me if I don't use the code tags right.


<?php

$vowels = array("a", "e", "i", "o", "u");
$consonants = array("b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "y", "z");

function randVowel()
{
global $vowels;
return $vowels[array_rand($vowels, 1)];
}

function randConsonant()
{
global $consonants;
return $consonants[array_rand($consonants, 1)];
}
echo ucfirst("" . randConsonant() . "" . randVowel() . "" . randConsonant() . "" . randConsonant() . "" . randVowel() . "" . randConsonant() . "" . randVowel() . "" . randVowel() . "" . randConsonant() . "" );
?>

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.28444

>>28439

Sauce, though sometimes I get shit like "Heczoceox"

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.28445

File: 1437380883197.png (21.38 KB,1872x572,36:11,1.png)

>>28444

kill me

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.28950

One of you shazbots start seeding that gentooman library please

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.28959

>>28950

shit user, I used to have it before my hard drive broke

>inb4 no backups

I'm poor as fuck.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.28969

>>28950

>One of you shazbots start seeding that gentooman library please

get it from retroshare or any other darknet. darknets are full of documents because you can fetch them quickly even when connections are still slow.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.28973

>>28969

I wasn't aware it was there.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.29028

>>28439

Try randomly walking a markov chain.

Initialize the markov chain with a bunch of random latin words and or names.

See what works best.

Markov chains ain't hard.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.31978

Good stuff itt

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.32013

>>25172

I found it used for 10€. Get to work, chummer!

>>18688

I've been learning C for a little bit now; I'm not doing anything too complicated yet, though. Shit like:


#include <stdio.h>
#include <stdlib.h>

void main()

{
int hor;
long conv;
char choice;

printf("Hours: ");
scanf("%d",&hor);

if (hor < 0 || hor == 0) {
printf("\nInvalid.\n");
exit(1);
}

printf("\nConvert to: \n");
printf("(A) Minutes\n");
printf("(B) Seconds\n");
printf("(C) Milliseconds\n");

printf("\n> ");
scanf(" %c",&choice);

if (choice == 'a' || choice == 'A') {
conv = hor*60L;
}

else if (choice == 'b' || choice == 'B') {
conv = hor*3600L;
}

else if (choice == 'c' || choice == 'C') {
conv = hor*3600L*10e+3L;
}

else {
printf("\nInvalid option!\n");
exit(1);
}

printf("\nResult: %ld\n",conv);
}

I'm following the book throughly; the author has yet to explain why we use int before the main function. Also, he hasn't mentioned the exit function yet either, I just did some research on that on my own (although this is from an exercise, I used some of the shit I learned from other sources).

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.32154

Iam learning java first. I need to make brouzouf. Also C, C++,java looks so similar each other.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.32167

>>18688

I'm making a simple website for my ftp server. I'm trying to learn some javascript for the website

What's the best way to calculate a random number from an array? I'm trying to make a quote list and some quotes appear twice or three times in a row when I refresh the page.Hope I get this right.


//store the quotations in arrays
quotes = [];
authors = [];
quotes[0] = "When life gives you lemons, don't make lemonade. Make life take the lemons back! Get mad! 'I don't want your damn lemons! What am I supposed to do with these?' Demand to see life's manager! Make life rue the day it thought it could give Cave Johnson lemons! Do you know who I am? I'm the man who's going to burn your house down! With the lemons! I'm going to get my engineers to invent a combustible lemon that burns your house down!";
authors[0] = "Cave Johnson, Portal";
quotes[1] = "Life is a negotiation; we all want. We all give to get what we want";
authors[1] = "Mordin Solus, Mass Effect 2";
quotes[2] = "People should be doubted. Many people misunderstand this concept. Doubting people is just a part of getting to know them. What many people call ‘trust’ is really just giving up on trying to understand others, and that very act is far worse than doubting. It is actually ‘apathy.’";
authors[2] = "Shinichi Akiyama, Liar Game";
quotes[3] = "That time was lost, yet time continued onward. ";
authors[3] = "Lightning, Final Fantasy XIII-2";
quotes[4] = "The sky above the port was the colour of television, tuned to a dead channel.";
authors[4] = "William Gibson, Neuromancer";
quotes[5] = "Now, why don't you go fuck your selfie?";
authors[5] = "Victoria Chase, Life Is Strange";
quotes[6] = "";
authors[6] = "";
quotes[7] = "Anime was a mistake.";
authors[7] = "Hayao Miyazaki";
quotes[8] = "I'm the jury,"+"<br>"+"I'm the judge,"+"<br>"+"And I committed all the crimes,"+"<br>"+"How hard I try;"+"<br>"+"It's not enough.";
authors[8] = "'Not Enough', Delain";
quotes[9] = "I learn to lose,"+"<br>"+"I learn to win,"+"<br>"+"I turn my face against the wind,"+"<br>"+"I will move fast,"+"<br>"+"I will move slow,"+"<br>"+"Take me where I have to go.";
authors[9] = "'Still Alive', Mirror's Edge";
quotes[10] = "Listen to me very carefully; people can become... whatever they want to be.";
authors[10] = "Franz Bonaparta, Monster";
quotes[11] = "Everyone is alone. Everyone is empty. People no longer have need of others. You can always find a spare for any replacement. Any relationship can be replaced. That's the world I grew tired of.";
authors[11] = "Shogo Makishima, Psycho-Pass ";
quotes[12] = "I love this game that people call life from the bottom of my heart.";
authors[12] = "Shogo Makishima, Psycho-Pass";
quotes[13] = "Friends are like books that write themselves.";
authors[13] = "Tera: Fate of Arun";
quotes[14] = "Just trust me you dumb fucks.";
authors[14] = "Mark Zuckerberg, J.E.W. of Facebook and renowned schlong-swallowing cock goblin";
quotes[15] = "It's not news anymore, it's advertising.";
authors[15] = "Faith Connors, Mirror's Edge";

//the below is to be inserted in the quotation marks for 4-lined song lyrics.
//Replace the "line" words with one line of the lyrics until done
//To add more lines, insert whats in the brackets: (+"<br>"+"your new line is here"). Lather, rinse, repeat.
"line1"+"<br>"+"line2"+"<br>"+"line3"+"<br>"+"line4";

//calculate a random index number
index = Math.floor(Math.random() * quotes.length);

//display the quotation
document.write("<DL>\n");
document.write("<DT>" + "\"" + quotes[index] + "\"</DT>\n");
document.write("<DD>" + "<br>" + "- " + authors[index] + "</DT>\n");
document.write("</DL>\n");

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.32168

>>32167

Result on jsfiddle. if you're waiting for the website to load for a while, just hit 'run' in the top left corner.

https://jsfiddle.net/Lyaj33dc/

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.32176

>>32167

Jesus, this is horrible.

Use a fucking associative array, and don't use a 'quotes' and 'authors' array.

You also have '<q>' tags for quotes in html.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.32188

>>32176

>tells me my javascript is horrible

>suggests replacing javascript with <q> tags in html

Please tell me how displaying 15 quotes at once is better than my array method.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.32189

>>32188

Don't be ridiculous, he was saying that you could use <q> instead of <dt> and <dd>

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.32190

>>32189

Oh. That works too I guess.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.32548

>>18701

>don't EVER switch away from your first language

My first language was Perl. I am become spaghetti, bane of maintenance programmers. I abuse print if like no tomorrow.

>>18788

Emacs.

>>25089

http://rms.sexy/books

You can pick and choose what you want, too, rather than wasting 35GB+ of disk space.

>>32167

>tfw no qw () in Javascript

Man that's inconvenient.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.33168

Can anyone point me to a good dictionary file or list of millions of common passwords?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.33373

Why is learning or even trying to understand code hard.

I just want to understand it so i can do stuff with it.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.33383

>>33373

depending on your meaning of "do stuff with it" that means up to 10 years of experience.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.38494

How and where do I save my codes?

I'm trying to follow these instruction and all I have to show for it is wasted time.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.38689

File: 1451409322903.png (29.39 KB,960x720,4:3,cogmind_mockup_v3.png)

Suggestion: /cyber/ should team up and create a roguelike ASCII game.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.38692

>>38494

Create a GIT repository on your computer and save your code into it. Or sign up for GitHub and let them create a repository for you.

http://www.git-scm.com/book/en/v2/Getting-Started-About-Version-Control

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.42117

another thread worth bumpin

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.47535

404 fixum

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.47581

>>18688

Thanks a lot OP, this is just what i was looking for, keep the installments coming, i might add something myself.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.47585

>>18688

oh look, another /g/ faggo

> WHAT YOU'LL BE LEARNING:

> C++

nevermind, op is cool. bumping

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.47586

>>18701

My first language was Visual Basic 6 back in highschool nearly 15 years ago. Is Visual Basic still used anywhere?

If not Visual Basic then what about Basic?

If VB and Basic are outdated then what language is closest to them?

I want to learn a language I can use to get a job

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.47592

>>47585

>C++ without at least one year of experience in C

>cool

How much poo is there on your sidewalk?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.48084

>not teaching Common Lisp instead

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.48087

>>47586

Go for Python. Very wide range of uses - from web dev to data stuff to infrastructure.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.48096

>>18688

>editor with source highlighting

so.. this is needed… i thought i just needed to be able to write text not have a disco?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.48102

>going to uni for CS degree to become more schway

>halfway through the first semester

>already failing my discrete math 1 class with no hopes of recovery

Maybe smoking pot in high school instead of taking math classes wasn’t such a good idea

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.48103

>>48102

>failing my discrete math 1 class

How is this possible?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.48104

File: 6a3fd224ed23845⋯.png (467.46 KB,718x666,359:333,1500839995514.png)

How would a retard like myself even begin to understand any of this code business?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.48107

>>48102

Shieeet anon, get your shit together. It's not hard. Whatever's causing you to fail is in your head. Imagine that passing this course is like getting to a 100 pushups. It just takes a few months of practice a few times a week. If you do that, there's no fucking way to fail. If you're stuck on something, go one step back until you find a place that you understand. Now go one step forward. If you really can't grok it, ask a few people for help.

If you don't have the discipline, you'll end up working a dead end job and smoking pot into your 50ties. Do I sound like somebody's parents? Maybe. You know what's the worst part of working a dead end job for years? It's fucking boring. You never have brouzouf for doing anything cool (ie. buying parts, books, etc.). You have no control over anything except your sphincter.

It's your choice.

>>48104

1. Ask questions on 8ch.net/cyber.

2. Pick something that makes sense.

3. Go at it for a month.

4. Congrats, you've learned some stuff. Now, with that new info, decide if you're going in the right direction. Ask more questions. Think about switching to eg. a different language or something.

5. Head in that direction.

6. Say no to stupid distractions.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.48110

>>48084

>common lisp

>good teaching resources

Pick one broski, there are very few beginning resources for Lisp, outside of the book land of lisp, and even then it is really not very good. Something like Scheme would have been a much better choice though than C++ for beginning programming. Almost all of the common lisp stuff is a bit too inaccessible for most beginners IMO. Paul Grahams book for instance is not something i would ever recommend to a newbie.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.48181

>>48102

Shitting dick nipples, CS students learn discrete maths? I could've picked that module but instead I went for game theory, and now I'm stuck with faggy optimisation problems you have to solve by hand because whoever designs maths courses is living in the goddamn Dark Ages.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.50625

>>18696

this guy is a complete dipshit. C++ is generally agreed to be one of the best languages except by script-kiddies who are too dumb to understand it. Also, python.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.51911

YouTube embed. Click thumbnail to play.

>>18688

necromance for intredast. does /cyber/ still code?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.51929

>>51911

working on my compiler which is more like a macro assembler + linker than a true compiler It's written in C.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.51986

Is codeacademy any good for an absolute, know-nothing beginner?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.51990

>>51986

I remember not liking it, but I don't remember why exactly.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.51991

>>51986

It's probably okay if you're motivated to follow through on it. Personally I read books when I was beginning because they are easier to skip around in when you don't give a shit about a topic. The most important thing is to work on projects that interest you but are also within your ability. When you naturally find yourself needing a feature you'll be more motivated to learn it.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.52633

>>51991

> When you naturally find yourself needing a feature you'll be more motivated to learn it.

This is why I wrote my first hash table implementation. command_name -> function mapping in some IRC bot. Linked lists were taking too long with 100s of commands.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



[Return][Go to top][Catalog][Nerve Center][Random][Post a Reply]
Delete Post [ ]
[]
[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]