-  [WT]  [PS]  [Home] [Manage]

Posting mode: Reply
  1.   (reply to 3818)
  2. (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 486 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 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)




Web Scripting:



Neckbearded Basement Dweller 13/06/29(Sat)21:43 No. 3930

Okay, guess I'll be the first newfag to ask something in this thread.

How long would it take to learn Java to an intermediate/upper intermediate level and where do I begin?

I was supposed to learn it in the uni but the guy teaching us was utter shit. He hasn't programmed in around a decade, from his own admission. So now I have to take this shit into my own hands.

Nattajerk 13/06/30(Sun)00:48 No. 3931

depends on how much underlying experience you may have. Java isnt that hard to learn, though, so I would say you could get the basics out of the way in as little as 3 weeks if you study hard.

getting to the intermediate level is easy, really - advanced? a few years and several languages. you cant really learn it without actually coding though. setting up assignments for yourself (by a book or otherwise) would be a good way to get started

Neckbearded Basement Dweller 13/06/30(Sun)01:25 No. 3932

Actually, would you recommend any exercise books?

I've always had a hard time finding good exercises.

patchouli!!SyAQpmZGyw 13/07/01(Mon)02:55 No. 3934


I like these, good for beginning. For future practice, you can choose a random algorithm from: http://en.wikipedia.org/wiki/List_of_algorithms, and implement that.

patchouli!!SyAQpmZGyw 13/07/01(Mon)04:47 No. 3936

Also, if you haven't seen this already, try http://projecteuler.net/problem=2 .

Neckbearded Basement Dweller 13/07/02(Tue)00:53 No. 3938

Alright, thanks a lot. I really hope I can make some progress over the summer.

Neckbearded Basement Dweller 13/07/17(Wed)20:10 No. 3995

I might as well contribute
I hope this is not taken as spam
^Head First Programming, for the absolute n00bs.
I learned java through a head first book (Can't find the link right now) as my first language. It was very complete and newbie friendly.
Also check that entire website, IT ebooks, there's lots of mterial

Neckbearded Basement Dweller 13/08/03(Sat)04:16 No. 4034

Just out of curiosity since I figure you guys may know best, which 2 languages should I learn to guarantee me a job in the field? And how much math do I need to know?

I really just need employment.

patchouli!!SyAQpmZGyw 13/08/04(Sun)06:33 No. 4035


I would learn for the sake of learning computer programming(assuming you have never done this type of thing before). As far as I know, there no languages that grant guaranteed entry into the job market.

Just program a <b>LOT</b> and find your niche. From my experience, employers like someone who know what they are doing.

Then again, you most likely are not going to find a job programming in something like brainf*ck, so make sure to get good in a popular language like Java or C.

Neckbearded Basement Dweller 13/08/20(Tue)20:41 No. 4064

I'd say, employers want someone, who knows something their team currently does not. That's because good employers are always looking for fields to expand to. They also appreciate if the applicant has skillset relevant to what they are doing at the moment, but esoteric knowledge is a big plus and may open a temporary position (for first) for single project's length if they are further in that consideration, on receiving/sending offers level.

Neckbearded Basement Dweller 13/09/10(Tue)05:52 No. 4107

File 137878512831.jpg - (24.75KB , 480x334 , s.jpg )

That site sucks balls. The challenges are poorly written and do not reflect what the expected output is. I would not recommend it. I just went through it today to brush up and holyshit I regret everything!

Intruder 13/10/03(Thu)19:58 No. 4144

I'm looking for some good tutorials on Qt and QML. I have some programming experience, mostly Java.

Neckbearded Basement Dweller 13/11/22(Fri)18:39 No. 4221

Ultra n0b question:
I have to read data from an xml, and arrange it to k pieces of n x m matrices, then get it to a pdf ready for printing, optimized for minimum page use.
The first one is trivial, however, I cannot use tex as a dependency (nor anything else, the sw must be a standalone executable, and should work on any standard installation of Windows - java can be used, but no python, or script languages), and depending on the input size, the output can occupy very large amount of memory.
Could anyone help me in a Java solution, or if that cannot be done, then C* (C, C++, C#, C#.NET - .NET version has to be compatible with WinXP) solution?
(I know, I'd be done 6*10^23 times if I used either python or php)

Neckbearded Basement Dweller 13/12/29(Sun)03:44 No. 4262

What is the code source of Java's Math.random() function? I've used google to no avail.

Neckbearded Basement Dweller 14/01/03(Fri)08:26 No. 4266

Random rnd = randomNumberGenerator;
if (rnd == null) rnd = initRNG();
return rnd.nextDouble();

Neckbearded Basement Dweller 14/01/23(Thu)00:39 No. 4278

File 139043395733.png - (5.17KB , 318x315 , 1379624574005.png )

stupid question here.
I want to make my own roguelike (just for fun in my spare time) and I'll most likely use this tutorial here: http://www.roguebasin.com/index.php?title=Complete_Roguelike_Tutorial,_using_python%2Blibtcod so, what python tutorial and how much should I learn before I get down to business? note, that I have barely even seen code in my life

Neckbearded Basement Dweller 14/01/23(Thu)03:43 No. 4279

The best way to learn is just to do. It looks like that tutorial starts off pretty basic. If you haven't already, download Python, there's a great amount of documentation on python at python.org including a beginning sort of tutorial.

Neckbearded Basement Dweller 14/01/23(Thu)13:41 No. 4280

will do, thanks

Neckbearded Basement Dweller 14/04/25(Fri)20:26 No. 4423

How do I get the latest version of a git project without committing my changes ?

Neckbearded Basement Dweller 14/04/28(Mon)02:31 No. 4426

private static synchronized void initRNG() {
if (randomNumberGenerator == null)
randomNumberGenerator = new Random();


public double nextDouble() {
return (((long)(next(26)) << 27) + next(27))
/ (double)(1L << 53);
Where next(n) returns a (48-n) bits long pseudo-random number.
The pseudocode algo for next(n) is :
new = (old * 25214903917 + 11) % (2 exp 48);
old = new;
return new >>> (48-n)

Also, if you want the algo for generating pseudo-random integers, check :

And for the Java source code :

Also, the Holy Grail of PRNGs is nowadays the Mersenne twister.

Neckbearded Basement Dweller 14/09/05(Fri)04:24 No. 4577

File 140988387319.jpg - (78.33KB , 720x643 , Tatjana_van_Vark_machine_rotors.jpg )

I have one project were I need porgramming and nothing else.
I want to make my own rotor machine, like the enigma but different.

What language should I learn for this? Most cipher simulators I found online are written in javascript, should I pick that up?

Neckbearded Basement Dweller 14/09/07(Sun)00:46 No. 4579

File 141004358945.png - (39.58KB , 432x270 , 0507_sdt-github-language-chart.png )

It doesn't matter much which language you choose for that. Use the one that looks less retarded to you. If you want a graphical interface, you will probably want to avoid bash and the like.
Also, you should've made a new thread for this you faggot.

Neckbearded Basement Dweller 14/10/04(Sat)04:50 No. 4596

File 141239105849.jpg - (65.12KB , 640x556 , 00000BwMQjEMCYAEeU7J_jpg:large.jpg )

Scheme is a lang built for learning programming by actual Wizards at MIT (Sussman & Steele). Learning it is easy, read the following books and do the assignments.

How to Design Programs http://htdp.org/2003-09-26/Book/ is a pretty slow intro, you can just read SICP if ready. You use Racket (DrScheme) which is similar to MIT Scheme. There's a course for it too: https://www.coursera.org/course/programdesign

Little Schemer https://mitpress.mit.edu/books/little-schemer basically a book of exercizes to get you used to programming in Scheme. Teaches you recursive thinking for functional programming.

Structural Interpretation of Computer Programs (SICP) https://mitpress.mit.edu/sicp/ is a masterclass in programming still used today. Uses MIT Scheme. More info why you should do it here: http://hackerretreat.com/why-how-start-sicp/ you don't need any math to do this course, though there is some in it. Students took first year calculus (single variable) with this course traditionally so if stuck on a question skip it. Come back later when you've done single variable calclulus.

Seasoned Schemer https://mitpress.mit.edu/books/seasoned-schemer another book of exercizes, introduces the Y-Combinator.

Reasoned Schemer https://mitpress.mit.edu/books/reasoned-schemer a book about logical programming.

Essentials of Programming Languages https://mitpress.mit.edu/books/essentials-programming-languages use Scheme to learn everything about other languages and make your own.

Congrats you can easily learn any other program at this point by reading a tutorial on it's syntax and libraries because you'll already know fundamentally what's going on. Clojure is a Lisp-1 dialect, easy to pickup after doing these books. Ruby is somewhat Lisp like and easy to start doing after. Lisp flavored Erlang (LFE) and other functional languages.

This guy used scheme to deploy adware and embedded it as a scripting language http://philosecurity.org/2009/01/12/interview-with-an-adware-author so it's still used today. Here's a recent research project written in Racket (scheme) for a shell that uses mandatory access controls (MAC) http://shill.seas.harvard.edu/ that was timely released during the Bash 'shellshock' bug shitstorm last week.

If you want to perform actual magic then do SICM, Structural Interpretation of Classical Mechanics which is Physics using Scheme. Book is taught Graduate level to students at MIT http://groups.csail.mit.edu/mac/users/gjs/6946/index.html but you have to build your math up to it doing Differential Equations http://ocw.mit.edu/courses/mathematics/18-03-differential-equations-spring-2010/, and taking Classical Mech http://theoreticalminimum.com/courses/classical-mechanics/2011/fall

Neckbearded Basement Dweller 15/04/10(Fri)08:25 No. 4725

Little book of semaphores is great for any concurrent problem


Neckbearded Basement Dweller 15/08/04(Tue)13:58 No. 4777

File 143868952341.jpg - (115.24KB , 1400x1200 , red-onions1.jpg )

Here's some perl learnings

Programming PERL, 4th edition

Learning PERL, 5th edition

Neckbearded Basement Dweller 15/09/22(Tue)01:40 No. 4807

Hello all. I'm looking for some resources on learning XML.

My intent is to make modifications to an existing freeware program (Anathema character generator) and I've done as much as I can with what I've learned from first-hand experimentation. Also, several files can't be read by notepad/wordpad, so I can't even begin to look at them.

XML for dummies or similar would be fantastic, as well as knowing what sort of program I would need to properly read .class files.

[Return] [Entire Thread] [Last 50 posts]

Delete post []
Report post