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

114 posts and 87 images omitted. Click Reply to view.
professional softwares aisha+ 15/05/23(Sat)02:49 No. 4734

Pretty! This was an extremely wonderful article. Thank you for supplying this information.


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.

23 posts and 5 images omitted. Click Reply to view.
Neckbearded Basement Dweller 15/04/10(Fri)08:25 No. 4725

Little book of semaphores is great for any concurrent problem


How bad is it? rayman 14/12/02(Tue)01:39 No. 4625 [Reply]

File iwlmem.c - (1.27KB )

How bad is this piece of code?

7 posts omitted. Click Reply to view.
legit 14/12/20(Sat)23:34 No. 4648

File iwlmem2.c - (1.19KB )


I'm attaching an improved version of your code, if you want more info let me know, I had typed then inside the form, but when I submitted, the site said that the file name already existed and I'm not gonna write it all again if it's not worth it.

BTW, here is your source

Neckbearded Basement Dweller 15/05/22(Fri)20:20 No. 4733

Isn't that just args[2]?

Nattajerk 15/05/25(Mon)14:47 No. 4736

no, that is 2 plus the value of args[0].

args+2 would give you the equivalent of args[0+2].

Neckbearded Basement Dweller 15/05/25(Mon)05:22 No. 4735 [Reply]

File 143252415564.png - (6.85KB , 213x213 , Icpc_logo.png )

ACM programming competitions are done - Russia kicking ass.

Closures & Callbacks(javascript) Boy Next Door 15/05/04(Mon)13:27 No. 4730 [Reply]

Can someone please explain these two concepts to me? I've been going through different books & youtube videos and I think I got the gist of them, but I'd like an explanation from others. I'm more confused how these concepts tie in with asynchronous vs. synchronous.

Nattajerk 15/05/19(Tue)23:33 No. 4732

A closure can be thought of as a function within a function, which has access to variables in its scope. That's basically all it is, there are some technical things about it but you need not concern yourself with them just yet.

A callback is passing a function to another function as a variable. Wikipedia probably describes it best,


in this, someAction requests a function as a parameter. what this means is you can insert your own compatible function and it will be executed within the someAction function, rather than evaluated it if it were just asking for a standard variable.

Neckbearded Basement Dweller 15/02/08(Sun)05:55 No. 4686 [Reply]

File 142337132284.jpg - (123.47KB , 401x299 , istock_000002301094xsmall.jpg )

How much do you earn as a programmer?

1 post omitted. Click Reply to view.
Neckbearded Basement Dweller 15/02/19(Thu)00:23 No. 4693

Not enough
I was hired to do front-end shit a couple of months ago and now I'm all over the stack

sage sage 15/02/23(Mon)23:05 No. 4699

300k starting
any job you want

Neckbearded Basement Dweller 15/05/07(Thu)22:08 No. 4731

this isn't a computer science degree
>120k starting, any job you want

show urself and find a bug Neckbearded Basement Dweller 15/04/24(Fri)10:24 No. 4728 [Reply]

File 142986389971.jpg - (438.23KB , 2000x1000 , bug.jpg )

Find da bug!


find bugs in popular open-source projects Neckbearded Basement Dweller 15/04/25(Sat)11:53 No. 4729

Authors of PVS-Studio static code analyzers offer programmers to test their sight and to try finding errors in C/C++ code fragments. https://software.intel.com/en-us/blogs/2015/04/24/lets-play-a-game-find-bugs-in-popular-open-source-projects

Neckbearded Basement Dweller 14/07/03(Thu)05:32 No. 4501 [Reply]

File 140435837030.png - (141.51KB , 1178x583 , SDFDSFSDFSDF.png )

This author is really starting to piss me off. I paid 15 dollars for this shit, and I think I have picked out two huge errors he has made. Book is Java 7 for Absolute Beginners, by Jay Bryant.

First example:
On page 79, he says that

int a = 0;
int b = 1;
String s = "s";
String sToo = "s";
System.out.println(a == b);
System.out.println(s == sToo);

will generate the results "true" and "false" respectively. Eclipse begs to differ. Here's what it says:

Message too long. Click here to view the full text.

8 posts and 3 images omitted. Click Reply to view.
Neckbearded Basement Dweller 15/02/26(Thu)23:54 No. 4700

s==sToo because Java has references instead of pointers. When you make a new String(), then you create a different memory location. It's confusing as all hell.

Nattajerk 15/03/04(Wed)22:29 No. 4702

i tend to get book reviews long before i buy a book these days, after being stung by C++ Primer Plus and Learning PHP & MySQL before, not even the animal books are safe from bad authors.

doing your homework requires doing your homework to do your homework, it's ridiculous.

4503 inter 15/04/22(Wed)23:04 No. 4727

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 15/04/17(Fri)21:54 No. 4726

For now, COBOL is very sought-after, because lots of shit is programmed in COBOL, and the old geezers who are proficient in it are dying out. So for a decade or so, I'd say you're set.

I strongly suggest you learn some more modern programming languages though, too.

writting program Ali 15/03/09(Mon)21:26 No. 4705 [Reply]

File CENG112_Lab2.pdf - (356.25KB )

can you write this program

Neckbearded Basement Dweller 15/03/09(Mon)21:47 No. 4706

We're not here to do your homework for you, instead, tell us the problem you're having that prevents you from doing it yourself.

Neckbearded Basement Dweller 15/03/20(Fri)20:26 No. 4714

with what should one even write this with ?

Person 15/04/07(Tue)10:58 No. 4723

Yep, I can. Why do you ask?

Delete post []
Report post