-  [WT]  [PS]  [Home] [Manage]

  1.   (new thread)
  2. [ No File]
  3. (for post and file deletion)
/pr/ - Programming
  • Supported file types are: C, CSS, DOC, DOCX, GIF, H, JAVA, JPG, PDF, PNG, SVG, SWF, TXT, WEBM
  • Maximum file size allowed is 10000 KB.
  • Images greater than 200x200 pixels will be thumbnailed.
  • Currently 480 unique user posts. View catalog

  • Blotter updated: 2011-01-12 Show/Hide Show All

There's a new /777/ up, it's /selfhelp/ - You're Pathetic, We're Pathetic, We Can Do This! Check it out. Suggest new /777/s here.

Movies & TV 24/7 via Channel7: Web Player, .m3u file. Music via Radio7: Web Player, .m3u file.

WebM is now available sitewide! Please check this thread for more info.

Nattajerk 11/09/07(Wed)10:31 No. 6 [Reply] [First 100 posts] [Last 50 posts] Stickied

File Structure_and_Interpretation_of_Computer_Programs.pdf - (2.21MB , Structure and Interpretation of Computer Programs.pdf )

I heart /pr/

lets start with a book thread. I have some cached learning.

110 posts and 87 images omitted. Click Reply to view.
Neckbearded Basement Dweller 14/08/10(Sun)04:57 No. 4553

It might be, but..
Well said.

Newbie Thread patchouli!!SyAQpmZGyw 13/05/26(Sun)19:31 No. 3818 [Reply] Stickied

File 136958949722.jpg - (25.15KB , 293x324 , bjarne2.jpg )

What's this? Just a compiled list of resources silly!
(Also, check out the book thread, lots of lovely stuff)
Ask newbie/where to begin questions in this thread!

Language Agnostic:

http://www.codeblocks.org/ (great IDE for C/C++ and supports many libraries, cross platform)
http://notepad-plus-plus.org/ (good for scripting languages)
http://www.gnu.org/software/emacs/ (great editor with large learning curve)
Message too long. Click here to view the full text.

22 posts and 4 images omitted. Click Reply to view.
Neckbearded Basement Dweller 14/10/04(Sat)04:50 No. 4596

File 141239105849.jpg - (65.12KB , 640x556 , 00000BwMQjEMCYAEeU7J_jpg:large.jpg )

Scheme is a lang built for learning programming by actual Wizards at MIT (Sussman & Steele). Learning it is easy, read the following books and do the assignments.

How to Design Programs http://htdp.org/2003-09-26/Book/ is a pretty slow intro, you can just read SICP if ready. You use Racket (DrScheme) which is similar to MIT Scheme. There's a course for it too: https://www.coursera.org/course/programdesign

Little Schemer https://mitpress.mit.edu/books/little-schemer basically a book of exercizes to get you used to programming in Scheme. Teaches you recursive thinking for functional programming.

Structural Interpretation of Computer Programs (SICP) https://mitpress.mit.edu/sicp/ is a masterclass in programming still used today. Uses MIT Scheme. More info why you should do it here: http://hackerretreat.com/why-how-start-sicp/ you don't need any math to do this course, though there is some in it. Students took first year calculus (single variable) with this course traditionally so if stuck on a question skip it. Come back later when you've done single variable calclulus.

Seasoned Schemer https://mitpress.mit.edu/books/seasoned-schemer another book of exercizes, introduces the Y-Combinator.

Reasoned Schemer https://mitpress.mit.edu/books/reasoned-schemer a book about logical programming.

Essentials of Programming Languages https://mitpress.mit.edu/books/essentials-programming-languages use Scheme to learn everything about other languages and make your own.

Congrats you can easily learn any other program at this point by reading a tutorial on it's syntax and libraries because you'll already know fundamentally what's going on. Clojure is a Lisp-1 dialect, easy to pickup after doing these books. Ruby is somewhat Lisp like and easy to start doing after. Lisp flavored Erlang (LFE) and other functional languages.
Message too long. Click here to view the full text.

Neckbearded Basement Dweller 14/12/28(Sun)07:39 No. 4656 [Reply]

File 141974875541.jpg - (131.39KB , 1280x720 , maxresdefault.jpg )

So, what do you think about Bret Victor?


Neckbearded Basement Dweller 14/12/28(Sun)18:32 No. 4657

he's standing in front of a macbook.
I doubt anything of value will come from his lips but let's see...

Neckbearded Basement Dweller 14/12/30(Tue)05:29 No. 4658

File 141991378135.jpg - (402.86KB , 2298x1725 , air2008.jpg )

Well, I had macbook (air) once too. It took me about a month to figure how to get linux there, but once installed, it was almost usable.

beard on face also, basement too cold 15/01/26(Mon)10:02 No. 4681

File 142226292938.jpg - (150.72KB , 1280x720 , WIN_20150126_015805.jpg )


I actually attended the conference from which the video was recorded.

I very much liked his talk, specifically I liked his attention on the ways information is represented.

"Perspective is worth 70 IQ points"
- A professor of mine

SQL ? Neckbearded Basement Dweller 15/01/24(Sat)13:34 No. 4680 [Reply]

File 142210287754.jpg - (259.39KB , 720x480 , 1350159034001.jpg )

SQL Bernds, please halp:

We have the table "Qualifications" with the following fields:
1. Class (1,2,3, .., 2)
2. Subject (English, Mathematics, Computer_science, ...)
3. Family Name (Anderson, Sullivan, Smith ..)
4. Nick Name (Mary, John, ..)
5. Score (9,10,4 ..)
6. Date (13.03.2014,02,04.2014 ...)

Write a SELECT statement that returns the highest score for each student in a given class, on a given subject, along with the date, when the score was obtained.
"Class" and "Subject" for selection are transmitted through host variables. (H-CLASS , H-SUBJECT)
Variable "H-SUBJECT" may contain the name of a subject or the word "All".
In this case the top scores for all subjects for all students of the given class will be listed.
These two cases (one specific subject and all subjects) will be managed in the same select statement.
Message too long. Click here to view the full text.

java help Neckbearded Basement Dweller 15/01/18(Sun)03:53 No. 4676 [Reply]

need help with a java project. I would like to fill an array with a class that has multiple data types.

for example

class student{
int age;
String firstName;
String lastName;

Then in another class something like

student[] stus=new student[4]{some way to initialize entire array}

let me know if you need any more info
Message too long. Click here to view the full text.

Nattajerk 15/01/18(Sun)14:04 No. 4677

this is nothing too difficult.


i dont have java installed to verify any errors i made, but all you would have to do in this is populate the array, i believe. however you want to do that is up to you.

Neckbearded Basement Dweller 15/01/18(Sun)18:42 No. 4678

I figured out what i needed. I knew how to create the array. i just didnt know how to fill the array without doing like
and so one i wanted to do it all basically inline with the constructor.
what i did was

student[] stus=
{new student("mark","jones",22),
new student("faith","hart",20),
new student("james","johns",22),
new student("spongebob","squarepants",20)};

an array of students filled with the constructor

Neckbearded Basement Dweller 14/12/09(Tue)02:47 No. 4641 [Reply]

File 141808962137.jpg - (81.15KB , 519x533 , 1416624224370.jpg )

What types of data should UDP and TCP handle, respectively, in an MMO server backend?

1 post omitted. Click Reply to view.
Neckbearded Basement Dweller 15/01/02(Fri)06:17 No. 4664

MMO Server by definition is a vague description.
If you're talking about a action mmo game, critical messages (spellcasting, chat, rule validation) should be all TCP. State synchronization such as positioning, rotation, view angle, all should be UDP.
Now, if your mmo server is a turn based game such as a card game, where state sinchronization is not required, TCP will do.

Neckbearded Basement Dweller 15/01/08(Thu)05:43 No. 4665

UDP - shit that doesn't absolutely have to be there
TCP - shit that absolutely has to be there

really, what were you expecting from us?

Neckbearded Basement Dweller 15/01/17(Sat)09:28 No. 4675

UDP - most of the time it's good for streaming data (audio, video) and inter-process communication

TCP - if you need 100% reliability in your data transfer (DB responses, business logic data, etc.. )

Wanting to learn to program johon wkes 15/01/14(Wed)03:11 No. 4669 [Reply]

File 142120146693.jpg - (5.15KB , 192x249 , imagesVGHIFR3K.jpg )

Wanting to learn a program language two questions;
1. What is an easy beginner language to learn.
2. What language after the beginner language to follow up with.

Neckbearded Basement Dweller 15/01/15(Thu)00:27 No. 4670

File 142127803538.png - (518.08KB , 600x594 , barbie-emacs.png )

1. Python
2. Haskell

Nattajerk 15/01/15(Thu)18:38 No. 4671

Python probably is one of the easier languages you can learn, and unlike toy languages that hold your hand, it has a practical use after you learn it.

I can't honestly say learning haskell is where it's at. granted, I don't understand it and haven't even tried it.
I would say follow up with C or a C style language (C++, Java, C#, etc) once you get a firm grasp on programming.

Neckbearded Basement Dweller 15/01/17(Sat)09:21 No. 4674

python, javascript and java are always good to start with and know afterwards

Iffy vocational school Neckbearded Basement Dweller 15/01/15(Thu)20:03 No. 4672 [Reply]

File 142134860082.jpg - (19.80KB , 364x329 , 1365193232_Guy-with-Question-Mark-over-his-headFot.jpg )

I'm attending a one-year training in COBOL. So far, I've seen these alarming signs of varying importance:

*There is these mandatory exercises. But you can pass a course despite not having made them all. The general modus seems to be dragging people trough the education so that they can get their tax money at the end of the spring semester.

*There is no paper towels in the dining room nor the toilets. Despite our complaints.

*We had a week with a horrible sales pitch with a representative from IBM. z/OS and stuff. He was knowledgeable, but he was the worst teacher ever. And of course a few megabrains did catch everything he said. But not the most of us.

*This education will be crowned with a 2-month period of an internship. But the school had only some 15-20 places earmarked for us. Then a few places disappeared, because one of the banks has decided to move all the COBOL-development to Balticum. Then a few places will be taken by children to people working at these banks.

*Applying for internship will be as if you was applying for a real job. So the last week before christmas there was this little course on how to promote ourselves. One of the panaceas suggested was LinkedIn, yeah THAT LinkedIn, THAT spam-engine.

So what do you think? Am I only training for unemployment?

Neckbearded Basement Dweller 15/01/16(Fri)04:44 No. 4673

There's supposedly a lot of legacy COBOL code that isn't going anywhere. Get in touch with someone who works where you want to work, then get a job there.

Neckbearded Basement Dweller 13/10/11(Fri)23:41 No. 4156 [Reply]

File 138152768546.jpg - (85.38KB , 587x551 , 138119478561.jpg )

Is... is it ok if I just skip C and move right on to C++?
I... seem to find it easier reading cpp code than C, without all those enums, links, arrow operators, and shit.

26 posts and 2 images omitted. Click Reply to view.
Neckbearded Basement Dweller 15/01/11(Sun)00:58 No. 4666

Haskell is what C++ should have been. Start with that.

Neckbearded Basement Dweller 15/01/11(Sun)16:54 No. 4667

>>4666 yes, start with haskell if you don't like programming and never want to be a programmer but would like to teach at universities.

Neckbearded Basement Dweller 15/01/11(Sun)17:51 No. 4668

>if you don't like programming and never want to be a programmer
All my enthusiastic programmer friends got into Haskell because it's really fun programming in it and because it teaches you to view programming in a completely different way.

Neckbearded Basement Dweller 14/12/27(Sat)08:01 No. 4654 [Reply]

File 4chan.txt - (989B )

Babby's First Program


Please, /pr/, you're my only hope: tell me exactly why this is the most offensive program you have ever looked at.

Neckbearded Basement Dweller 15/01/01(Thu)21:22 No. 4661

for a php script its alright, though it seems to magic number around 4chan's random board, when it could be expanded to download images from any board.

of course I could be just reading it wrong, I've been out of the loop for a while and haven't done regex in ages.

Nattajerk 15/01/01(Thu)22:14 No. 4663

more importantly your variable names should have some description to them, I don't know what dedup is and if ever there came a time to use it in the future, it would be difficult to discern what it does.

generalized variable names are a faulty practice in my opinion, even in small loops - because in the future that small loop could become bigger and our dedups and values can get lost in a sea of "What the fuck does this value do"

Delete post []
Report post