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


113 posts and 87 images omitted. Click Reply to view.
>>
Nattajerk 15/03/20(Fri)17:28 No. 4713

>>4712
CHM files are the worst offenders. PDF is nice, though it often has the problem of being large if they're not properly made. There's a few books I want to post but they're a good 50-200MB in size




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.




take the international OOP TEST JAVA MexicanRedneck 15/03/26(Thu)03:50 No. 4721 [Reply]
4721

File 14273382427.jpg - (1.48MB , 3264x2448 , IMG_20150325_085920 - Copy.jpg )

although this exam is in Spanish and in java it should be about the same in some programming languages. here Google translate is your friend. Good luck. serves as a good learning tool (collage exam unit 3) . (theme inheritance)


>>
Nattajerk 15/03/27(Fri)08:50 No. 4722

do you have a link? or is that the test in the image. it's a bit blurry.




Neckbearded Basement Dweller 15/03/22(Sun)21:37 No. 4715 [Reply]
4715

File 142705664858.png - (8.89KB , 600x523 , mono-logo.png )

Java, C# or F# for my new project?

It's a small project but not too small. I master none of them but can put my shit together pretty well with Java. Anyways I don't mind learning a new language, will be the first one in years (not counting interpreted ones) which is always a good thing.

Also, is Visual Studio + Blend a good thing or a bad thing?


1 post omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 15/03/23(Mon)00:14 No. 4718

>>4716

Well, as I said it's a small project so it does what basic programs do: it takes information out of databases, make not too complex operations with them, needs extensive external input but for a few sources and peripherals, update databases, create new ones, use some files too to store certain kind of info (mostly current user configurations and states) and uses a big enough GUI.

Nothing special.


>>
Neckbearded Basement Dweller 15/03/23(Mon)20:02 No. 4719

C# might be easiest way. Easy GUI editor,friendly dataset,
you can use WPF for GUI, microsoft will support this at least 10 years or more after win10


>>
Neckbearded Basement Dweller 15/03/23(Mon)23:01 No. 4720

>>4719

Now that's something useful.

Finally I've decided to delay at least a week the writing of the first line of code because my interest on F# has grew enough to take a step in.

I'll probably do as you said, anyways, and make it in C#, which seems much more reliable known that I can already code Java.

But F# really tickled my apetite for learning something new and that's something uncanny since... lots of time.

As for WPF, thanks, I was looking for something Blend and didn't know where to start. All this shit gets rusty fucking fast.




writting program Ali 15/03/09(Mon)21:26 No. 4705 [Reply]
4705

File CENG112_Lab2.pdf - (356.25KB )

can you write this program


>>
Neckbearded Basement Dweller 15/03/09(Mon)21:47 No. 4706

We're not here to do your homework for you, instead, tell us the problem you're having that prevents you from doing it yourself.


>>
Neckbearded Basement Dweller 15/03/20(Fri)20:26 No. 4714

with what should one even write this with ?




phk on how to sabotage everything Neckbearded Basement Dweller 14/04/12(Sat)15:42 No. 4397 [Reply]
4397

File 139731017820.jpg - (43.97KB , 600x400 , Behj8RUCYAAR42X.jpg )

Talk by Poul-Henning Kamp (FreeBSD) @ FOSDEM '14

- he covers how open source projects are sabotaged
- how shit is distracted purposely
- how NSA shills can sneak in patches
- how NSA can shutdown privacy projects with patent trolling
- how Skype was likely bought by the NSA thru proxy
- how totally fucked OpenSSL is
- how totally fucked Ipv6 is
- how totally fucked DNSSEC is

http://youtu.be/fwcl17Q0bpk


8 posts and 3 images omitted. Click Reply to view.
>>
GHØST 14/04/26(Sat)00:25 No. 4425

>>4405

Sadly, Yes this is true. They have fully cracked the Tor network and now using reverse machanics to get users that are using tor network for hitman, drug traffic, child porn, etc. The best example would be Silk Road how in no time after the arrest of its owner it relaunched.. in reality.. it was a trap being runned by a high lv agentcy we are thinking CIA cause it has there stank all over it.. but we are still unsure, but since its relaunch many silkroad members has secretly been getting arrested... ---GHØST(Anonymous)


>>
Neckbearded Basement Dweller 15/01/01(Thu)22:13 No. 4662

>>4397 nice one, OP. haven't seen that yet.

>>4398 you can use jitsi instead of skype or any other tool supporting ZRTP.

>>4425 not sure if idiot or troll. anyway, there are other darknets so just use those if you think tor is compromised.


>>
Neckbearded Basement Dweller 15/03/20(Fri)16:55 No. 4711

>>4405
>As a matter of fact i was watching a youtube video and it said the NSA has fully cracked TOR
The problem is that it's easy to uncover yourself through your browsing habits when using TOR if you don't know what you're doing.
Was this video by a fat screaming Texan, by any chance?




Neckbearded Basement Dweller 15/03/19(Thu)11:20 No. 4707 [Reply]
4707

File 142676041448.png - (194.51KB , 1920x1080 , sequention.png )

Hey guys,

I am trying to make a sequention diagram out of my class diagram.

I have never made a sequention diagram, all I know is that I am working in the wrong order.


This is what I currently have, do you guys have any pointers and or tips on how to progress.


>>
Neckbearded Basement Dweller 15/03/19(Thu)11:21 No. 4708

I could rewrite it in english if anybody would like that.


>>
Neckbearded Basement Dweller 15/03/19(Thu)12:09 No. 4709

I have 2 players, playing a game of 4 in a row against eacht. I have a reactToDoTurn() but I dont know how to place it in my diagram, do I have to make 2 seperate questions, or just 1 as player1 and 2 are the same object.


>>
Nattajerk 15/03/19(Thu)19:34 No. 4710

That looks more like a class diagram rather than a sequence diagram.

I don't really know UML (i know nothing of it) but from the look of it there isn't too much to know - its basically a flowchart

In this case I think every class would be set side by side, below them would be a stem - you would draw on the stem the flow the program would make. probably labelled with each function call.

I'm not entirely sure, that's just an 'at a glance' observation




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.


7 posts and 3 images omitted. Click Reply to view.
>>
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.


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




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




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.




Delete post []
Password  
Report post
Reason