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

  • Blotter updated: 2018-08-24 Show/Hide Show All

There's a new /777/ up, it's /Moldy Memes/ 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]
5111

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

(WE AREN'T GOING TO DO YOUR HOMEWORK FOR YOU)




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

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

>>5042
write in terminal


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

>>5072
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]
5103

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

>>5103
What's goatfinger?


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

http://goatfinfer.ga/prog/res/1520368419.html




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

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

>>4924
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]
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?


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

>>5039
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

>>5048
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]
5091

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]
4999

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/28(Mon)20:50 No. 4970 [Reply]
4970

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

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

https://play0ad.com/
http://www.xonotic.org/
https://www.wesnoth.org/

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

+
AssaultCube
OpenArena
OpenRA


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

>>4976

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

>>4970
http://pixeldungeon.watabou.ru/




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

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

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




Neckbearded Basement Dweller 17/07/28(Fri)10:04 No. 5056 [Reply]
5056

File 150122907045.jpg - (2.47KB , 135x100 , pp.jpg )

Hi, /pr. I'm learning Scala and I want challenges to implement in this language. What do you guys suggest?


>>
Neckbearded Basement Dweller 17/10/15(Sun)17:52 No. 5076

Fuck, this board is dead.




Delete post []
Password  
Report post
Reason