-  [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 377 unique user posts. View catalog

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

There's a new /777/ up, it's /Trump/ - Make America Great Again! 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.

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

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.gskinner.com/RegExr/
http://www.autoshop101.com/forms/h14.pdf
https://www.khanacademy.org/cs

Editors:
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.


26 posts and 6 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 17/02/07(Tue)20:48 No. 4987
4987

File 148649690940.jpg - (76.13KB , 728x514 , 1411622522143.jpg )

I just started learning programming with C as my first language.
Where can I get my baby programs corrected and criticized? I'm running into some errors I still can't understand




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

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.


120 posts and 80 images omitted. Click Reply to view.
>>
Programming Elixir Yaren666 16/12/04(Sun)23:17 No. 4974

Does anyone have "Programming in Elixir"?

https://pragprog.com/book/elixir/programming-elixir




Revealing your power level Neckbearded Basement Dweller 15/07/07(Tue)20:11 No. 4766 [Reply]
4766

File 14362927069.jpg - (38.29KB , 372x399 , To_the_idiots_with_love_45bdf1_4806225.jpg )

Today at work, in a code comment explaining the motivation for a design decision, I took a short jab at people calling themselves "webdevs" but who can't get right what I was doing. Fortunatelly, as I usually read and rethink what I write, I realized that was being a smug asshole so I removed that part of the comment and committed.

Tell me, /pr/, what's the worst thing you've written or seen someone else write in code comments?


1 post omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 16/09/16(Fri)07:22 No. 4938

// None of this actually works.


>>
Neckbearded Basement Dweller 16/10/07(Fri)09:50 No. 4941

>>4766
The worst I've done is a long comment that took more time to type than it would have taken for me to fix the issue with the code.

I haven't seen anything too bad in comments, apart from ones that are outright wrong (and that's usually because of code change and the comments not being updated to match).


>>
Neckbearded Basement Dweller 17/04/21(Fri)23:33 No. 5039

I still haven't been redpilled on the need for comments, can someone redpillzz me on zit?

The only time i comment something is if something is non-obvious.




Neckbearded Basement Dweller 17/03/17(Fri)15:37 No. 5001 [Reply]
5001

File 148976143896.jpg - (140.76KB , 610x581 , coq-noir.jpg )

I just failed a job application over a bizzfuzz. Please tell me what I did wrong.

> First, I think, this dickhead wants me to just fart out a line of Haskell in two seconds. Well, no, that's not what this job is about
> Started with a specification in Atelier B just to show that I can make trains work
> After writing the specification in B-Method, I went into Coq for a nifty proof
> I wrote all this using Acme with a 20 year old 3-button that I only save for special interviews
> My Coq proof proves, I extract the proof to Haskell. Then for shits and giggles, I show this clown why dependent types are essential for string-out by rewriting it in Idris
> I try to run it and it crashes. Fucking Idris 0.99 whatever no problem
> Turns out one of my types was a character off. Quick save, I just started talking about how I would have done it in CML instead if I wasn't crunched for time, and that I did it in peano numbers over the fibonacci sequence
> It compiles. Success! Wait, but this needs a graph.
> An hour of MATLAB later and I have something truly beautiful... a 5d graph of fizz and buzz, and it's only like 3mb. I'm proud as shit, I've been working my ass off for the past three hours
> "Do you know fucking javascript? It's a porn ad you idiot"

Didn't get the job. What the hell is wrong wrong with people?


>>
Neckbearded Basement Dweller 17/03/20(Mon)18:48 No. 5007

Had a good laugh 6/10


>>
Neckbearded Basement Dweller 17/04/11(Tue)05:42 No. 5038

I'm sorry to hear that.

You'll do better next time.




Neckbearded Basement Dweller 17/04/08(Sat)10:39 No. 5036 [Reply]

Hey /pr/ first time getting into programming a debug mode for brogue and I'm gonna learn to do some miscellaneous programming, but I want to make brogue into a debug form, but when I try to do so, I get this:

||=== Build: Debug in Brogue (compiler: GNU GCC Compiler) ===|
C:\Users\Zenheart47981\Desktop\brogue debug folder\Brogue-windows-v1.7.4\Brogue-windows-v1.7.4\Brogue Source\PlatformCode\main.c||In function 'main':|
C:\Users\Zenheart47981\Desktop\brogue debug folder\Brogue-windows-v1.7.4\Brogue-windows-v1.7.4\Brogue Source\PlatformCode\main.c|77|error: 'cursesConsole' undeclared (first use in this function)|
C:\Users\Zenheart47981\Desktop\brogue debug folder\Brogue-windows-v1.7.4\Brogue-windows-v1.7.4\Brogue Source\PlatformCode\main.c|77|note: each undeclared identifier is reported only once for each function it appears in|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
||=== Run: Debug in Brogue (compiler: GNU GCC Compiler) ===|


The curses console is undeclared, but how do I declare it?


>>
Neckbearded Basement Dweller 17/04/09(Sun)06:20 No. 5037

>>5036

Have you looked specifically in all files you've imported?

When I first attempted to do this on my own I get a different error, cursesConsole is undeclared, you have to declare it in a specific file?

Have you found any references for cursesConsole in different files?

Add this in codeblocks:

extern struct brogueConsole cursesConsole; in file platform.h.




More Changes + Suggest your ideas Kevin+Dodd+son+of+Brian+Dodd 17/03/25(Sat)02:02 No. 5028 [Reply]

#include <iostream>
#include <cstdlib>
#include <pthread.h>

using namespace std;

#define NUM_THREADS 10

void *FrontalLobeThread(void *threadid) {
FrontalLobe();
long tid;
tid = (long)threadid;
cout << "Hello World! Thread ID, " << tid << endl;
pthread_exit(NULL);
}
Message too long. Click here to view the full text.


2 posts omitted. Click Reply to view.
>>
Added Some comments, + fixed some errors Kevn Lee Dodd son of Brian Dodd 17/03/26(Sun)06:01 No. 5031

// Human Emulation Software v 1.0
// Open Source License
// Free to modify, Distribute, and use
// Authors Kevin Lee Dodd

//main.cpp
#include <iostream>
#include <cstdlib>
#include <pthread.h>

using namespace std;

#define NUM_THREADS 10

void *FrontalLobeThread(void *threadid) {
Message too long. Click here to view the full text.


>>
Muscle control Kevin Dodd 17/03/26(Sun)08:18 No. 5034

public class muscle {

public int contractCalf(){
}

public int relaxCalf(){

}

}

int muscles(){

}


>>
Classes Objects Declared Kevin+Dodd 17/03/26(Sun)19:45 No. 5035

// Human Emulation Software v 1.0
// Open Source License
// Free to modify, Distribute, and use
// Authors Kevin Lee Dodd

//main.cpp
#include <iostream>
#include <cstdlib>
#include <pthread.h>

using namespace std;

#define NUM_THREADS 10

void *FrontalLobeThread(void *threadid) {
Message too long. Click here to view the full text.




AI Beginning kevin 17/03/22(Wed)20:51 No. 5008 [Reply]

public class FrontalLobe {

}

int FrontalLobe(){

}

public class BrocasArea {

int SortFirstWord() {
incude iostream;
String input;
cin>>input;
switch(input)
Message too long. Click here to view the full text.


5 posts omitted. Click Reply to view.
>>
Kevin+Dodd+son+of+Brian+Dodd 17/03/24(Fri)03:21 No. 5016

Int estrogenLevel;
Int testosterone Level;
String sex ="female"; // or male by preference


>>
Kevin+Dodd+son+of+Brian+Dodd 17/03/24(Fri)04:11 No. 5017

public class hippocampus{

}
Int hippocampus(){

}

Public class amygdala {

}
Int amygdala () {

}

Public class pituitary{
Message too long. Click here to view the full text.


>>
Please delete this thread, its old. Kevn+Lee+Dodd+son+of+Brian+Dodd 17/03/26(Sun)06:17 No. 5033

Please delete this thread, its old.




Emulated Brain AI - Beginnings - to the start of Ghost in the Shell Kevin Dodd son of Brian Dodd 17/03/24(Fri)05:30 No. 5018 [Reply]

Int BrainWeight = 1400;
Int GlucoseLevel = 14;
Int estrogenLevel;
Int testosterone Level;
String sex ="female"; // or male by preference
int sex=0;

Void main(){
//Brain whole
}

int FrontalLobe(){ }

public class FrontalLobe {
//Thought processing, logic processing
Message too long. Click here to view the full text.


7 posts omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 17/03/24(Fri)21:32 No. 5026

>>5025
fuck off with /your/ shit, faggot.
I'm curious about this.
continue, op.


>>
insulted Kevin Dodd son of Brian Dodd 17/03/25(Sat)01:15 No. 5027

How about I program your ass and penis and put you in /sm


>>
Please delete this thread Kevn+Lee+Dodd+son+of+Brian+Dodd 17/03/26(Sun)06:14 No. 5032

Please delete this thread, It's old. Keep the new one.




AI Piece Kevin+Dodd+son+of+Brian+Dodd 17/03/23(Thu)00:46 No. 5014 [Reply]

int ThinkAboutFallacy(){
// read the wiki
// Think about it
// Apply Logic
}

int ThinkAboutLogic(){
// read the wiki
// Think about it
// Apply Logic
}




DirectX Webcam capture kevin dodd son of Brian Dodd 17/03/23(Thu)00:32 No. 5013 [Reply]

Capture capture = new Capture( Filters.VideoInputDevices[0],
Filters.AudioInputDevices[1] );

capture.VideoCompressor = Filters.VideoCompressors[0];
capture.AudioCompressor = Filters.AudioCompressors[0];

capture.FrameRate = 29.997; // NTSC
capture.FrameSize = new Size( 640, 480 ); // 640x480
capture.AudioSamplingRate = 44100; // 44.1 kHz
capture.AudioSampleSize = 16; // 16-bit
capture.AudioChannels = 1; // Mono

capture.Filename = "C:\MyVideo.avi";

capture.Start();
Message too long. Click here to view the full text.




Delete post []
Password  
Report post
Reason