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

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.


24 posts and 5 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 15/08/04(Tue)13:58 No. 4777
4777

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

Here's some perl learnings

Programming PERL, 4th edition
http://www.reedbushey.com/69Programming%20Perl%204th%20Edition.pdf

Learning PERL, 5th edition
http://www.e-reading.club/bookreader.php/138785/Phoenix_-_Learning_Perl,_5th_Edition.pdf




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!




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/08/15(Sat)21:07 No. 4786

Alright, the best/easiest way to do this since you seem to be using VB.NET would be to use an invisible listbox since you can remove items from them. Then use the random generator to change the SelectedIndex property.


>>
Neckbearded Basement Dweller 15/08/29(Sat)04:57 No. 4794

instead of removing the card from a random place in the deck, why dont you have the deck randomized and take a card from the top, using a vector for the data structure? thats what i did in a recent blackjack sim. easily able to copy the top card to a player hand(aka another deck), then pop off the top card from the deck.

not sure of c# notation, but its my best guess.




algoritham Neckbearded Basement Dweller 15/08/24(Mon)16:49 No. 4790 [Reply]
4790

File 144042776597.jpg - (11.67KB , 224x225 , temp.jpg )

what is the best way of learning algoritham...


>>
Neckbearded Basement Dweller 15/08/24(Mon)17:10 No. 4791

anybody please help..


>>
Neckbearded Basement Dweller 15/08/26(Wed)20:53 No. 4792

Step 1.
Spell Algorithm right.


>>
Neckbearded Basement Dweller 15/08/27(Thu)01:31 No. 4793

uh, just find a book on algorithms in your language




Report loop for an SQL-table? Neckbearded Basement Dweller 15/08/19(Wed)13:57 No. 4789 [Reply]
4789

File 143998544042.jpg - (93.86KB , 1000x646 , CP00990-002.jpg )

Please don't laugh. I know it's not normalized. The data is supposed to be able to entered achronologically without fugging things up. It looks something like this:

#01 2009-11-11 Bookstore Book Art 200.00
#01 2009-11-11 Bookstore Book History 50.00
#01 2009-11-11 Bookstore Paymt. Cash -100.00
#01 2009-11-11 Bookstore Paymt. Card -150.00

#02 2009-11-09 Gaym'aven Vidya Mario 20.00
#02 2009-11-09 Gaym'aven Vidya Zelda 25.00
#02 2009-11-09 Gaym'aven Vidya Sanic 28.00
#02 2009-11-09 Gaym'aven Candy Skittles 10.00
#02 2009-11-09 Gaym'aven Soda Cola 2.00
#02 2009-11-09 Gaym'aven Paymt. Cash 85.00

#03 2009-11-12 Dress Gud Shoes Autist 75.00
Message too long. Click here to view the full text.




Neckbearded Basement Dweller 15/08/18(Tue)15:48 No. 4787 [Reply]
4787

File 143990570912.jpg - (7.41KB , 310x163 , php.jpg )

Hey guys, i'm looking at learning PHP but don't know where to start. Can anyone give me a quick heads up as to where the best place to start is?


>>
try laravel pol fx 15/08/19(Wed)02:48 No. 4788

why dont you trylaravel 5+, is php a framework with a lot of functionality, or you can try an php raw application, try install
LAMP, for linux
WAMP, for windows
MAMP, for mac

get a php IDE, i use netbeans
and after that google some php tutorials, try first print text
in a php file




Hey Guys Griff 15/08/09(Sun)06:08 No. 4780 [Reply]
4780

File 143909333066.png - (27.47KB , 200x142 , Our god.png )

/pr/ I wonder what is a good programming language to learn that is easy for someone who has somewhat decent understanding of BASIC and HTML?


>>
Neckbearded Basement Dweller 15/08/09(Sun)09:41 No. 4781

Javascript is a small (scrpting) language that is not hard to learn and makes a great addition to HTML. In addition, you can write simple apps and videogames for smartphones.


>>
Neckbearded Basement Dweller 15/08/14(Fri)22:54 No. 4784

if you understand basic, move on to python. its probably one of the more popular languages and isnt too hard to learn and get fast results.

html isnt really a programming language, but if you want to go into the web dev route learn yourself some php. theres a staggering amount of languages you have to learn to develop web applications, but its less difficult once you get the ball rolling and understand how they all work.


>>
Neckbearded Basement Dweller 15/08/14(Fri)22:54 No. 4785

if you understand basic, move on to python. its probably one of the more popular languages and isnt too hard to learn and get fast results.

html isnt really a programming language, but if you want to go into the web dev route learn yourself some php. theres a staggering amount of languages you have to learn to develop web applications, but its less difficult once you get the ball rolling and understand how they all work.




Android wait/notify Neckbearded Basement Dweller 15/08/09(Sun)23:05 No. 4782 [Reply]
4782

File 143915434919.gif - (453.76KB , 500x500 , tornator2.gif )

hi /pr/

I'm writing an android app, just a little game, and I don't have much experience.

The gameloop is a thread, I want to be able to pause and resume the game, so I use wait and notify for this.
For that I use an Object as a SyncToken

In the Game Activity I have this pause-method:

public void pause(View view){
if(!PAUSED){
game_controller.pause(sync);
}else{
sync.notify();
}
Message too long. Click here to view the full text.


>>
Neckbearded Basement Dweller 15/08/10(Mon)12:24 No. 4783

ok problem solved




A New Guy 14/11/05(Wed)02:40 No. 4611 [Reply]
4611

File 141515165046.png - (15.38KB , 370x370 , photo.png )

Hey /pr/!
First time here..
4chan doesn't have a /pr/ which is what brought me here.

I'm looking to start developing android apps. I have a great grasp on anything computer related, dabble in web development and am currently looking to expand my knowledge.

At this point in time I'm running Lubuntu 14.04 with Android Studio installed. I decided to install this as I saw Google was looking to sway away from eclipse and possibly end plugin development.

My question is, where should I start?!

Does anyone have any good sites for tutorials, torrents or video tuts they can link me to?

I've started using CodeAcademy to learn Java but was looking for something that tends to be more specific to what I'm doing (Android Apps).

Thanks everyone.
Message too long. Click here to view the full text.


5 posts and 2 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 14/12/08(Mon)21:47 No. 4639

>>4615
You are wrong, C# is basis for WP development. Any other platform uses whathever they use. Only constant being js for most of cross-platform frameworks.

>>4611
I recommend professional android 4 application development.


>>
Neckbearded Basement Dweller 14/12/18(Thu)03:01 No. 4646

https://7chan.org/pr/res/4611.html#4615 Nope, C# is for Windows programming. Android apps are usually written in Java and iOS in Objective-C (they are moving to Swift though). There might be other languages but those are the common ones


>>
What I used. Dave 15/08/03(Mon)19:10 No. 4774

I got started with "Learning Java by Building Android Games". The actual games are pretty simplistic but I found the Android Studio tutorials very helpful. Was great as a primer.




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




Delete post []
Password  
Report post
Reason