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

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

There's a new /777/ up, it's /gardening/ 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.

java pacman program Anonymous 18/04/15(Sun)23:03 No. 5111 [Reply]

File 152382620527.png - (943.13KB , 3788x1848 , Untitled (1).png )

could anyone do this and post the link

heres Paint.java: https://pastebin.com/Y39VCJ0n
heres PaintAnimator.java: https://pastebin.com/Cp8HDjS0


COBOL Neckbearded Basement Dweller 17/05/17(Wed)19:51 No. 5042 [Reply]

File 149504350023.jpg - (8.86KB , 300x108 , Cobol.jpg )

Hi. When I was in university I worked for a short time by using COBOL, I only learned how to read and write into a .txt file by using this language, and now I want to go deeper with that.
So I found an online lesson of this language and it is said that I have to download the IDE Net Express 5.1 before starting. But this IDE is free for only 30 days (and the link is dead, I didn't search a other link yet).

So my very simple question is :
Do you know a other good IDE for COBOL that is free or I have to get a cracked version of Net Express 5.1 ?

Thanks in advance for your respond.

Neckbearded Basement Dweller 17/06/27(Tue)06:08 No. 5046

write in terminal

Neckbearded Basement Dweller 18/03/21(Wed)19:16 No. 5107

Sorry for being such a disgrace. But isn't there any simple tutorial for installing that OS COBOL?

Neckbearded Basement Dweller 18/03/07(Wed)22:19 No. 5103 [Reply]

File 152045757664.jpg - (20.22KB , 433x421 , goatfinger.jpg )

Anyone know why goatfinger moved to goatfinfer.ga? is it the same /prog/ramming board or what?

Neckbearded Basement Dweller 18/03/11(Sun)10:19 No. 5105

What's goatfinger?

Neckbearded Basement Dweller 18/03/14(Wed)08:09 No. 5106


I need some help please Neckbearded Basement Dweller 16/08/13(Sat)22:54 No. 4924 [Reply]

File 147112166375.png - (443.17KB , 2000x2000 , help.png )

Guys, I've literally tried everything and nothing works, maybe my level is basic but I really want to finish this project, the real problem is:

Exception in thread "AWT-EventQueue-0" org.hibernate.TransactionException: nested transactions not supported

So my save button can't send the data to mysql :s

Neckbearded Basement Dweller 16/08/14(Sun)11:09 No. 4925

ask your instructor to teach you a real language.

Neckbearded Basement Dweller 18/02/11(Sun)15:53 No. 5099

From your comments you want to send data to a MySQL. From the exception, you seem to be using Hibernate. And, more important, the error says: "nested transactions not supported". Look up your code for said transactions. Maybe you are trying to send two queries at the same time and they are not committed to the database?

And the next time, read CAREFULLY the error message and contextualize it within your code. They are there for a reason.

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

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?

5 posts omitted. Click Reply to view.
Neckbearded Basement Dweller 17/06/29(Thu)12:07 No. 5048

The main use for comments, imo, is not to make it obvious what the code is doing, but why it's doing it.

It helps readers follow along and see the logical steps being taken in code, and if you don't work on code for a while you might even forget your own code and how it worked back then..

Neckbearded Basement Dweller 17/07/10(Mon)18:18 No. 5052

That's the only reason I write comments, so 3 years later when it breaks on a Monday morning and I'm staring at it bleary-eyed without any coffee I can figure out what the hell is going on.

Neckbearded Basement Dweller 18/02/11(Sun)15:44 No. 5098

I once was porting a file format parser that used unsigned integers for pointers to Java. For those who don't know, Java only have signed ints (in Java 7, which was the version I used at that time). I spent a whole morning writing code that converted the number to a long and preserved everything as intended. Before committing I wrote a large rant about Java in the comments above the code. If I'm not mistaken, that code and comments are still there for ~3 years and counting.

Request for comments Neckbearded Basement Dweller 18/01/02(Tue)02:39 No. 5091 [Reply]

File 15148571617.jpg - (29.41KB , 331x400 , confused1.jpg )

I'm hacking up a dynamic class loader, and I have all of the easy stuff done (dlfcn, dirent, etc.).
So the manager needs to know which container to construct based off the extension of the file that needs to be passed to the containers constructor.

The question then is: should I have the container shared object advertise which file extensions are supported or should I have it advertise a mime type?

My concern with using the mime type is that I would need a mapping from file extensions to mime type.
And my concern with using just the file extension is that there may be extension collisions.

Neckbearded Basement Dweller 18/01/06(Sat)01:24 No. 5092

Incase anyone is interested, I decided to implement the code analagous to the following pseudo-code:

for ( auto module : modules.equal_range( input ) ) {
try { auto module_class = module.second.constructor( input );
return std::unique_ptr< Module >( module_class );
} catch ( exception e ) { }

I let the modules advertise what inputs they support and use that do decide which loaded modules to attempt to create. In documentation I require that the module throw an exception if the input is not supported, or fails to load. I'll deal with the other issues related to that as I think of them.

How does one learn hacking? Lukas 17/03/15(Wed)23:34 No. 4999 [Reply]

File 14896172853.jpg - (86.42KB , 600x1067 , dbd.jpg )

I have basically none experience with advanced usage of computer whatsoever and O have no idea where to begin. I want to become the ultimate neckbeard.

Neckbearded Basement Dweller 17/11/14(Tue)06:47 No. 5086

I think it's kind of hard becoming a hacker. But mostly, the skills you need to train is knowing how computer network works in details.

Install a linux distribution. I really like Archlinux (hard to install, but you're going to learn a lot of stuff). Debian is also great.

Try to understand how computers interact with each other. What is actually happening when you browse the internet ? How does it work ? What is your browser actually doing when loading a website ?

Learn how to program. I recommend bash, C, python.

Understand what is a Network. Learn tools like NMAP and netcat.

Good luck.

Neckbearded Basement Dweller 16/11/03(Thu)02:58 No. 4952 [Reply]

File 147813833229.gif - (0.99MB , 250x333 , 1477848410201.gif )

What programming language should I learn first?

13 posts and 1 image omitted. Click Reply to view.
Neckbearded Basement Dweller 17/05/17(Wed)14:55 No. 5041

Processing is a fun way to learn Java.


Khan Academy has a JavaScript version with plenty of tutorials. JS is a shitty language but it'll probably help you get some of the basics.

Neckbearded Basement Dweller 17/05/21(Sun)17:02 No. 5044

lua with love2d framework

Neckbearded Basement Dweller 17/11/04(Sat)13:06 No. 5084

Learn C & Java
Start of with Java and as soon as you can write clean code start with learning C.

Neckbearded Basement Dweller 16/11/28(Mon)20:50 No. 4970 [Reply]

File 14803626017.png - (102.11KB , 800x600 , Untitled.png )

hey /pr/ here are some cool open source games i found.


maybe you can use your programming skills to help develop and make these games better.

Neckbearded Basement Dweller 16/12/22(Thu)13:27 No. 4976


Neckbearded Basement Dweller 17/06/27(Tue)10:05 No. 5047


Adding on from AssaultCube:
Cube 2 engine / Sauerbraten (http://sauerbraten.org/)
Tesseract (forked from sauerbraten, http://sauerbraten.org/)
Red Eclipse (also forked from sauerbraten, https://redeclipse.net/)

Neckbearded Basement Dweller 17/11/04(Sat)13:05 No. 5083


Neckbearded Basement Dweller 17/07/19(Wed)00:36 No. 5054 [Reply]

File 150041736958.jpg - (23.73KB , 450x300 , armie-hammer-the-social-network_cycgik.jpg )

Friend is learning JavaScript as her first language. Should I stop her?

Neckbearded Basement Dweller 17/07/30(Sun)05:44 No. 5057

Unless she is specifically trying to learn Front-End Web Development with Front-End Frameworks, I'd recommend trying to get her to switch.

Python in general is a much easier more intuitive first language, and if we wants to do WebDev, the Flask framework makes it very easy. Once she is comfortable with Flask, HTML, and CSS, going into JavaScript, Front-End or Server End will be generally much easier.

Neckbearded Basement Dweller 17/08/31(Thu)15:35 No. 5070

fuck no

Neckbearded Basement Dweller 17/10/19(Thu)15:15 No. 5078

No, let her be comfortable in C-syntax instead of using Python.

Delete post []
Report post