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

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.


121 posts and 80 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 17/07/24(Mon)01:40 No. 5055

does anyone have this book
C++ Programming Professional Made Easy by sam key




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.


27 posts and 7 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 17/06/17(Sat)07:20 No. 5045

Good documentation/books/online courses for a C# Unity beginner? I've got some basic experience in JS and most of the stuff i've read for unity fails to explain how anything works.




117 Neckbearded Basement Dweller 18/02/24(Sat)01:14 No. 5101 [Reply]
5101

File 151943124143.jpg - (39.01KB , 960x720 , soy.jpg )

117chan.org

get in gents




Swift SpaceCat 18/02/23(Fri)15:12 No. 5100 [Reply]
5100

File 151939513176.png - (741.80KB , 1800x3358 , 1D62E4FB-1A7D-4CC9-9C41-6144DE21C918.png )

Im looking for a torrent for Apple’s “Swift” program for windows download. Does it exist?




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.




Java Noah 17/07/31(Mon)01:09 No. 5058 [Reply]
5058

File 150145619578.jpg - (106.68KB , 1280x768 , background.jpg )

What does /pr/ think of Java? Is it still worth learning?

I want to get into software development and I'm not sure what language to pickup.


3 posts and 1 image omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 17/11/04(Sat)13:03 No. 5082

>>5062
Agreed. Java forces you to write clean code. Also after learning Java I could develop in C# without a problem.


>>
Neckbearded Basement Dweller 17/11/14(Tue)06:34 No. 5085
5085

File 15106376494.jpg - (8.38KB , 205x246 , CvsJAVA.jpg )

Not sure where I saw this picture, but this summarize what I think JAVA is.

On a more serious note, while C being the "elite" language (also the linux kernel language), there seems to me that JAVA has more job oportunity than C.


>>
Neckbearded Basement Dweller 18/01/24(Wed)05:29 No. 5095

>>5058
It depends on where you want to use programming.
The tool is used in a lot of fields, so look at what people are using and learn that.
A good alternative is to ask someone from your local college what they are taught as colleges usually talk to the industry they are preparing for.

In my area, we use C++ for robotics, C# for user applications, javascript for web stuff and java for legacy stuff.
But don't let language slow you down. Just get started and learn programming. Changing language does not mean you start over from scratch.
I was tutoring a couple of students in programming (c++) and I found that they didn't have much problem with the actual c++ parts of the programming, they had problems with all the things nobody taught them. Where do you find documentation, how do you include libraries, how to write cmake, how to create modules, how to write graphical interfaces etc.
I basically threw 3 large libraries at them in a Linux environment and then had them interface it with what they previously knew.
I was never taught these things myself, but learned things out of need and interest.
If I am going to do this again, I will write it down in a more concise way, I think a language overview would be nice to have for each language.




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/03(Thu)02:58 No. 4952 [Reply]
4952

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.

https://processing.org/

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

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




Delete post []
Password  
Report post
Reason