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


111 posts and 87 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 15/02/12(Thu)23:18 No. 4690

>>4096

I came here looking for this specific book. Thank you very much!

Now to find time to actually read and understand the book...




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.


22 posts and 4 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 14/10/04(Sat)04:50 No. 4596
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.
Message too long. Click here to view the full text.




Nigar Ercan 15/02/28(Sat)01:00 No. 4701 [Reply]
4701

File CENG_112_Programming_Lab1.pdf - (221.02KB , CENG 112 Programming Lab1.pdf )

Please help me with this, I have 2 more days to do




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.


6 posts and 3 images omitted. Click Reply to view.
>>
daoluong 14/07/10(Thu)00:20 No. 4509

that book for Absolute Beginners
Absolute Beginners are some kind of retard never read the entire contents
like >>4506 said anyone can write a book
who know if writer is an elementary teacher

you can find another book
or code it yourself like you did
all I see are few typo, writer mixed from other books without checked


>>
Neckbearded Basement Dweller 14/07/30(Wed)21:48 No. 4539

>>4501
I don't know what was going through his head when he said that 1==0 would return true.

But s=sToo should also return false by conventional wisdom. It was that way when I learned java a few years ago. However, that appears to have changed. There's some sort of behind-the-scenes stuff going on that makes Strings of the same value refer to the same thing. Doesn't work with explicitly declared new Strings though.

And it works on very long Strings. And Strings in separate methods. Can't be arsed to make a new class, but it probably works there too. It'd be awful if it wasn't consistently doing this. Personally, I'd say to just stick with x.equals(y) unless you find a source for the exact new behavior.

Here's my code:
public static void main(String[] args) {
String f = "dicks";
String d = "donger";
int a = 0;
int b = 1;
String s = "s";
String sToo = "s";
Message too long. Click here to view the full text.


>>
Neckbearded Basement Dweller 15/02/26(Thu)23:54 No. 4700

>>4539
s==sToo because Java has references instead of pointers. When you make a new String(), then you create a different memory location. It's confusing as all hell.




U w0t Neckbearded Basement Dweller 14/04/24(Thu)07:01 No. 4421 [Reply]

I came across this. What does /pr/ think about systemd? I'm not a huge fan. I like the BSD style shit arch had until this shit came along :|

http://boycottsystemd.org/


5 posts and 2 images omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 14/12/24(Wed)03:04 No. 4650

>it's made by the same guy who made PulseAudio
holy shit the more I hear about this, the more I hate it.
is there still any doubt about it being a massive backdoor?


>>
Neckbearded Basement Dweller 15/02/22(Sun)01:15 No. 4697

>>4634
you realize RedHat has earned the right to direct kernel development right?

They've been a player in it for a long time, and we'd be decades behind otherwise

regardless, most people i find complaining, have no idea how it even works. Lennart might be a cunt, but christ. people send death threats to this guy. Often you'll see "PID1!!" usually followed by stuttering when asked why its a big deal how sysd implements it.

Its honestly a step torwards standardizing, so people can actually write software for linux.

its still completely foss, openRC exists, you can still use sysv,

maybe someday Linux will get a good debugger


>>
Neckbearded Basement Dweller 15/02/22(Sun)04:17 No. 4698

>>4421
Slackware still has the BSD init scripts. If someone could make the package management better, it would probably be more useful.




Wanting to learn to program johon wkes 15/01/14(Wed)03:11 No. 4669 [Reply]
4669

File 142120146693.jpg - (5.15KB , 192x249 , imagesVGHIFR3K.jpg )

Wanting to learn a program language two questions;
1. What is an easy beginner language to learn.
2. What language after the beginner language to follow up with.


5 posts and 1 image omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 15/02/19(Thu)23:45 No. 4694

>>4669
>1. What is an easy beginner language to learn.
Python, maybe C.
>2. What language after the beginner language to follow up with.
Any C-like language like >>4671 said. If you start with python, try C. If you did C, try C++. Also, the general recommendation is learn C then C++, and not to dive into C++.


>>
Neckbearded Basement Dweller 15/02/20(Fri)02:59 No. 4695

>>4694
>Also, the general recommendation is learn C then C++
No, it's not.


>>
Neckbearded Basement Dweller 15/02/22(Sun)01:08 No. 4696
4696

File 142456369551.gif - (1.98MB , 350x251 , 1423686769031.gif )

Just learn Python 3. Its highly documented, easy to use, easy to program and will give you a good idea on what you're doing

alternatively, if you dont really like python, try Ruby. its a different approach to the same thing.


after that it depends on what you want to do. If you want "practical for moneys", learn Java, or C#, or C++

if you want to do OS dev, or microcontrollers, do C

if you want to do webdev, do JS, PHP, HTML/CSS, SQL and see what frameworks interest you(Ruby on rails, node, angular, etc)

if you want to be a special snowflake, use Lisp with SBCL, Hasklel, or ASM

just dont start with C or Assembly, really. a bunch of retards who didnt start with it will say you'll learn how the computer really works! which is largely untrue. Autistically managing resources is a waste of time for most development. using malloc isn't a hardcore skill.

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




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?


>>
Neckbearded Basement Dweller 15/02/09(Mon)09:06 No. 4687

One metric ass-ton


>>
Neckbearded Basement Dweller 15/02/19(Thu)00:23 No. 4693

Not enough
I was hired to do front-end shit a couple of months ago and now I'm all over the stack


>>
sage sage 15/02/23(Mon)23:05 No. 4699

300k starting
any job you want




Neckbearded Basement Dweller 15/02/09(Mon)20:00 No. 4688 [Reply]
4688

File 142350844190.png - (38.44KB , 937x1033 , キャプチャ.png )

Sup /pr/.
In the image is a program for adding 400 to a variable and one for adding 2b to a variable. The one for the bottom adds 2000000000. This is with 32 bit ARM, so the bottom add needs to do extra work to add the larger number (op codes and registers take up some of the 32 bits for the instruction, so it needs to load the 32 bit number into a register and add the registers together instead of just adding like the add r3, r3, #400 instruction). If I have a 64 bit processor and a 32 bit operating system, can I make a compiler that uses the 64 bit word size to add for both of these programs in just the one assembly instruction or does the OS limit itself to 32 bit words?


>>
Neckbearded Basement Dweller 15/02/12(Thu)04:46 No. 4689

bump for science


>>
Neckbearded Basement Dweller 15/02/13(Fri)00:06 No. 4691

You can compile it, but unless ARM does some magic Intel doesn't you won't be able to run the program.
Every time the running thread changes the OS saves the registers in memory (as they will be used by the next thread). A 32-bit OS only needs to save the 32-bit registers. To make sure, you could test it in QEMU.
Disclaimer: I don't have much experience with ARM.


>>
Neckbearded Basement Dweller 15/02/13(Fri)07:06 No. 4692

>>4691
I was mostly thinking Intel since I don't have anything that's 64 bit ARM. I'm not sure how Intel does the machine code yet since they do some kind of variable length instruction magic. I guess my idea works better with fixed length instructions though, maybe there are some instructions for Intel that can use it, I'll try to find that out eventually.




Hello Hi 15/02/03(Tue)01:19 No. 4684 [Reply]
4684

File 142292278771.png - (7.61KB , 200x240 , zbar_200.png )

I was wondering if anyone can give me insight on how to add the Zbar QR scanner into my Xcode. I have searched all over the place and I have only found tutorials on how to do it on older versions (Objective-C) Any help is greatly appreciated!




SQL ? Neckbearded Basement Dweller 15/01/24(Sat)13:34 No. 4680 [Reply]
4680

File 142210287754.jpg - (259.39KB , 720x480 , 1350159034001.jpg )

SQL Bernds, please halp:

We have the table "Qualifications" with the following fields:
1. Class (1,2,3, .., 2)
2. Subject (English, Mathematics, Computer_science, ...)
3. Family Name (Anderson, Sullivan, Smith ..)
4. Nick Name (Mary, John, ..)
5. Score (9,10,4 ..)
6. Date (13.03.2014,02,04.2014 ...)

Write a SELECT statement that returns the highest score for each student in a given class, on a given subject, along with the date, when the score was obtained.
"Class" and "Subject" for selection are transmitted through host variables. (H-CLASS , H-SUBJECT)
Variable "H-SUBJECT" may contain the name of a subject or the word "All".
In this case the top scores for all subjects for all students of the given class will be listed.
These two cases (one specific subject and all subjects) will be managed in the same select statement.
Message too long. Click here to view the full text.


>>
Neckbearded Basement Dweller 15/02/02(Mon)11:24 No. 4682

fuck databases, make games.
but it will probably be the stackoverflow result for a google query containing lots of databasy words like "sql select from max value"
https://stackoverflow.com/questions/612231/how-can-i-select-rows-with-maxcolumn-value-distinct-by-another-column-in-sql
or
https://stackoverflow.com/questions/7745609/sql-select-only-rows-with-max-value-on-a-column




Delete post []
Password  
Report post
Reason