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

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

There's a new /777/ up, it's /selfhelp/ - You're Pathetic, We're Pathetic, We Can Do This! 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.


114 posts and 85 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 15/07/17(Fri)21:42 No. 4769

>>3309
Thank you for this!




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.


23 posts and 5 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 15/04/10(Fri)08:25 No. 4725

Little book of semaphores is great for any concurrent problem

http://www.greenteapress.com/semaphores/downey08semaphores.pdf




Neckbearded Basement Dweller 15/06/12(Fri)12:25 No. 4756 [Reply]
4756

File 143410473678.png - (278B , 42x42 , crunchbang-logo-minimal.png )

ou guys probably see posts like this all the time, but I'm going to post anyway because I just want to hear what some of you have to say.

I want to learn how to code. I dropped out of college at 19, not have a $12/ hour job at 23 and it's killing me.

What is the best way of going about learning how to code? What language is the most versatile and widely used in the industry? I want to pursue a career but have no clue where to start without going to school for this field.


>>
Neckbearded Basement Dweller 15/06/12(Fri)12:35 No. 4757

OP here, will give tracker invites for advice.


>>
Neckbearded Basement Dweller 15/06/13(Sat)08:48 No. 4758

Well the only thing you actually /need/ is dedication and persistence. It's a bonus I think if you love computers. In fact, when it's 3am and your memory allocation is up shit creek and your strings are overflowing THAT is when you need to love computers to keep going.

Coding at its core is simple logic, once you've learned simple logic and a bit of syntax you can build anything. That's more or less the scary part, you'll be confronted more than once with a blank notepad++ screen going "now what?"

The tools I recommend for a new person can be found in the "newbie guide" thread, but I'll reiterate them here for funsies because I'm not a forum regular
-python 2.7 language (or 3.4, 3.4 doesn't look too bad these days)
-Sublime Text 2
-Dive into Python (yeah, gotta read books, learn to love documentation)
-learn programming the hard way

If you want a job you're more or less going to have to learn front-end/back-end development. For this, I have one overarching recommendation: DON'T BE A SHITCUNT!! VALIDATE YOUR CODE

To learn front-end development, pick a random website on the net and redesign it ground up. That means using only a notepad and a dream, write all the html, CSS and Javascript to implement a better version of that website.

Learning html/css: HTMLdog, MDN, Google Developers network
Message too long. Click here to view the full text.


>>
Neckbearded Basement Dweller 15/07/31(Fri)05:54 No. 4773

want a job? go javascript. Go full front-end webdev if your motivation is a job. honestly, JS is fugly, and it's messy, but there is plenty of documentation and jobs for that. Besides, it can be tried almost anywhere, I am assuming here you are using a windows pc, so you just need to install a text editor and you're good to go.
I'd suggest you get gVim and learn touch typing
or you get that sublime shit, it works if that's what you want




Resources for C++? confoosoid 15/05/30(Sat)04:53 No. 4741 [Reply]
4741

File 143295440390.png - (90.58KB , 600x338 , risk-of-rain-ur-ded-screen.png )

Hello.
I have been looking for the resources I could use for learning C++, but most of the stuff I have been finding is outdated or terribly optimised (as in, if using third party libraries)

I always wanted to start playing around with creation of the games, or just anything that can get related behind that.

I have some experiences with C# (just applications) and I quite well understand code if I have documentation on board or just enough time.

but C++ is different, less sophisticated yet less limited compared to the same C#. Could you help me out with learning resources? Something not too obvious, but not as complex.

Thank you.
TLDR: I want to learn C++ and I am terrible at searching stuff, help out.


2 posts omitted. Click Reply to view.
>>
Nattajerk 15/06/25(Thu)06:41 No. 4762

>>4742
I def recommend C++ Primer 5th ed if you can get it for a decent price, i would almost say its seminal.

>>4759
indeed, the official book from Bajarney Stroganoff is not for the beginner, unlike K&R for the C counterpart.


>>
Neckbearded Basement Dweller 15/07/11(Sat)03:32 No. 4767

rekt*


>>
Neckbearded Basement Dweller 15/07/25(Sat)13:55 No. 4772

this

http://www.learncpp.com/




Neckbearded Basement Dweller 15/07/24(Fri)07:09 No. 4771 [Reply]
4771

File 143771455552.png - (88.88KB , 1020x676 , morphemegame.png )

I'm in need of some help. I'm desperate to get this started already. I have made a multi-client threading which means there will be many clients running a server. I have all the code ready, but my only barrier right now is making a download link that will install the client code onto the user's desktop (using any platform) and run the java application from the desktop. My webpage has an a href link but I don't know how to make the directory such that it will access and download the content the link directs you to with a dmg or exe file (based on platform). I also need help with putting the server somewhere on my VPS for website or WHM (web host manager) which is apparently the "back end" of the webpage.

If anyone would like to direct me to a URL that walks this through step by step, I will be very grateful. If anyone wants to help through Skype walking me through it step-by-step, I will reward you via paypal a great sum of money for the help. This is only given assuming you make the link on my site download all relevant content to the desktop and runs it perfectly.

If you are interested, please contact me at boggle@hotmail.ca

This is way too hard for me, not the coding. Your help is much appreciated! Thamks




Help/Advise on card game. Neckbearded Basement Dweller 15/07/22(Wed)05:05 No. 4770 [Reply]
4770

File 143753432679.png - (13.88KB , 631x288 , Capture.png )

Hey guys, first time posting. Im programming a battle card game and im just having some trouble on drawing a random card from a deck of 60 cards and removing the card from the deck completely.

Ive been using a random number generator to test this but since you cant take a variable out of an array it makes it a bit hard.




Neckbearded Basement Dweller 15/05/27(Wed)17:08 No. 4737 [Reply]
4737

File 143273931665.png - (12.44KB , 1025x176 , 145.png )

I'm trying to figure out this problem. Here's my code in python:

def reversible(limit):
num_list = ()
for num in range(1,limit):
num = str(num)
if num[-1] == 0:
break
else:
sum = int(num) + int(num[::-1])
checker = 0
for i in str(sum):

if int(i) % 2 == 0:
break
Message too long. Click here to view the full text.


1 post omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 15/05/28(Thu)17:38 No. 4739

Say you have a number 13739, is there an algorithm to break that down to its two components x and reverse(x)?


>>
Neckbearded Basement Dweller 15/06/15(Mon)21:45 No. 4761

>>4739
Most of the cause of the slow speed is because python loops are slow. You can look up numba, which is a jit compiler that can speed up numerical computations like this very well.

If you really want to reverse a number without converting to string, you could do mod 10, subtract result and divide 10. Numba should speed that up nicely since it's a numerical loop.


>>
Neckbearded Basement Dweller 15/07/13(Mon)20:52 No. 4768

my solution (quick n dirty)

n=0for i in xrange(10,1000000000): if i%10==0: pass else: c=False j=int(str(i)[::-1]) for k in str(i+j): if int(k)%2==0: c=True if c==False: n+=1print n


Solution still unknown coz the program is still running (on an ARM v6 lol), I expect it to finish by tomorrow morning.




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?




Neckbearded Basement Dweller 15/02/08(Sun)05:55 No. 4686 [Reply]
4686

File 142337132284.jpg - (123.47KB , 401x299 , istock_000002301094xsmall.jpg )

How much do you earn as a programmer?


2 posts omitted. Click Reply to view.
>>
sage sage 15/02/23(Mon)23:05 No. 4699

300k starting
any job you want


>>
Neckbearded Basement Dweller 15/05/07(Thu)22:08 No. 4731

>>4699
this isn't a computer science degree
>120k starting, any job you want
ftfy


>>
Neckbearded Basement Dweller 15/07/02(Thu)22:23 No. 4765

.




Neckbearded Basement Dweller 14/07/03(Thu)05:32 No. 4501 [Reply]
4501

File 140435837030.png - (141.51KB , 1178x583 , SDFDSFSDFSDF.png )

This author is really starting to piss me off. I paid 15 dollars for this shit, and I think I have picked out two huge errors he has made. Book is Java 7 for Absolute Beginners, by Jay Bryant.

First example:
On page 79, he says that

int a = 0;
int b = 1;
String s = "s";
String sToo = "s";
System.out.println(a == b);
System.out.println(s == sToo);

will generate the results "true" and "false" respectively. Eclipse begs to differ. Here's what it says:

false
Message too long. Click here to view the full text.


9 posts and 3 images omitted. Click Reply to view.
>>
Nattajerk 15/03/04(Wed)22:29 No. 4702

i tend to get book reviews long before i buy a book these days, after being stung by C++ Primer Plus and Learning PHP & MySQL before, not even the animal books are safe from bad authors.

doing your homework requires doing your homework to do your homework, it's ridiculous.


>>
4503 inter 15/04/22(Wed)23:04 No. 4727



>>
Neckbearded Basement Dweller 15/06/15(Mon)10:09 No. 4760

>>4501
if two constant strings are of the same value they will likely be interned and share the same ref so:
String s1 "123";
String s2 "123";
s2==s1 will be true as the are really the same ref.
but if one or the other is modified, the ref will change
for reliablity use the equals method on objects and == on primitives
which also means on your own classes you may need to override the equals method




Delete post []
Password  
Report post
Reason