-  [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
  • Maximum file size allowed is 10000 KB.
  • Images greater than 200x200 pixels will be thumbnailed.
  • Currently 478 unique user posts. View catalog

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

Please check this /7ch/ thread to discuss the potential addition of WebM support.

Movies & TV 24/7 via Channel7: Web Player, .m3u file. Music via Radio7: Web Player, .m3u file.

Nattajerk 11/09/07(Wed)10:31 No. 6 [Reply] [First 100 posts] [Last 50 posts] Stickied

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.

107 posts and 87 images omitted. Click Reply to view.
Neckbearded Basement Dweller 14/04/21(Mon)20:39 No. 4415

nice porn collection

Newbie Thread patchouli!!SyAQpmZGyw 13/05/26(Sun)19:31 No. 3818 [Reply] 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)
Message too long. Click here to view the full text.

17 posts and 2 images omitted. Click Reply to view.
Neckbearded Basement Dweller 14/01/23(Thu)13:41 No. 4280

will do, thanks

C# Newbie Neckbearded Basement Dweller 14/04/21(Mon)13:11 No. 4414 [Reply]

File 139807869189.gif - (0.99MB , 265x210 , 1380917526649.gif )

New to C# and programming in general, so please explain in simple terms. I want to have the program determine whether or not the text in textbox1 is numerical or text, my best shot so far is this;

bool textornot = Int32.TryParse(textbox1.Text);
if (textornot==false)

But it still gives me error messages, I'd appreciate any explanation to why or any better method of doing this.

Nattajerk 14/04/22(Tue)06:15 No. 4417

is that your exact code? that in and of itself will not work.

also post the error the compiler gives you, it's usually a good starting point as to what went wrong.

Neckbearded Basement Dweller 14/02/25(Tue)21:38 No. 4333 [Reply]

File 139336069175.png - (42.26KB , 800x444 , vi-emacs-final.png )

So, programming on GNU/Linux:

Which is best? An IDE, Vim, or Emacs? (Instead of shitposting or flamewarring, you have to give a legitimate reason for your answer and why you like it better than the other options)

15 posts and 3 images omitted. Click Reply to view.
Neckbearded Basement Dweller 14/03/31(Mon)22:31 No. 4389

For me the best IDE is same as always: a handful of xterm's (or screen/tmux) running vi, make, cscope, gdb, etc. It's old fashioned, but it still works.

Neckbearded Basement Dweller 14/04/01(Tue)03:46 No. 4390

Second that. Geany is a good modern editor that supports stuff like plugins, macros and rectangular selection/edit -- and it is open source.

Sublime text is also ok, but a bit too hip for me -- and it is closed source.

And finally, the editor/IDE is not really important when coding. The important thing is the code itself.

(Unless you code Java. Coding java without Eclipse will make your eyes and fingers bleed. Oh, the amount of boilerplate, factories of factory classes, and javadoc comment blocks...)

Neckbearded Basement Dweller 14/04/22(Tue)02:26 No. 4416

^O saves without exiting in nano

Neckbearded Basement Dweller 14/04/21(Mon)10:30 No. 4413 [Reply]

File 139806905115.jpg - (89.53KB , 1000x750 , Image-16.jpg )

I don't know and don't care if this is old news or not to you
but it's new to me
and i didn't know he was there so here you go
it's the snowden stuff at SXSW

I Before E Except After C Algorithm(Python) Neckbearded Basement Dweller 13/12/28(Sat)23:47 No. 4261 [Reply]

File 138827083071.jpg - (68.80KB , 620x880 , wrong ie.jpg )

So I was challenged today to prove this graphic I shared on Facebook and ended up disproving it by a lot with a simple python program. As with any good scientist, I would like some people to:
1. Try it with different (>100000 words) wordlists to see if my results hold up that when "I" and "E" are both in a word the I before E rule is followed roughly 75% of the time.
2. Make sure the algorithm is correct.
SOURCE: https://docs.google.com/viewer?a=v&pid=sites&srcid=ZGVmYXVsdGRvbWFpbnxoYXNlcmVubGFuZXNoZXJzdHVkaW9zfGd4OjUyM2YxYzU0YjZmYWE2N2U

2 posts omitted. Click Reply to view.
Neckbearded Basement Dweller 14/01/03(Fri)05:28 No. 4265

dict: http://downloads.sourceforge.net/wordlist/hunspell-en_US-7.1-0.zip
ei: 444
ie: 1076
cei: 28
cie: 56
both ei and ie: 13


l=open('en_US.dic').read().split('\n') for y in ['ei','ie','cei','cie']: print(y,len([x for x in l if y in x]))

Neckbearded Basement Dweller 14/01/18(Sat)10:42 No. 4277

Another big problem is that the rule only describes words where the "ei"/"ie" spell the sound "ee" as in "bee". There really are very few exceptions.

Neckbearded Basement Dweller 14/04/20(Sun)15:05 No. 4412

We almost wrote the same pieces of code.

(use (srfi 1 13)) (let ((words (string-split (with-input-from-file "en_US.txt" read-string)))) (map (lambda (pattern) (cons pattern (fold (lambda (h t) (if (string-contains-ci h pattern) (add1 t) t)) 0 words))) '("ei" "ie" "cei" "cie")))

Neckbearded Basement Dweller 13/01/31(Thu)20:18 No. 3387 [Reply] [Last 50 posts]

File 135965991476.png - (4.10KB , 640x320 , Girls-Who-Code.png )

What do you anons think about those people who are trying to increase the number female programmers in the world?

56 posts and 6 images omitted. Click Reply to view.
Neckbearded Basement Dweller 14/04/16(Wed)22:30 No. 4403

File 13976802282.jpg - (96.11KB , 612x612 , 1389501957013.jpg )

Stupid. Why do you need to increase the number people using something open and available to anyone?

It's same as how Gnome went to shit after they spent such a huge amount of their budget on Women Outreaches program.

It's just idiotic.

Neckbearded Basement Dweller 14/04/17(Thu)22:55 No. 4404

>But also it helps society to break traditional gender roles by educating our scientifically illiterate women in these fields.

I think the above sentence says it all.

You want to do it? Do it on your dime. And no coercing anyone else.

Neckbearded Basement Dweller 14/04/20(Sun)14:36 No. 4411

It doesn't bother or affect me in any way. It's misguided though. Efforts generally involve just trying to convince girls that coding is possible for them. That won't change how people see and treat girls in society, which is the real goal.

java project abood 14/04/19(Sat)19:21 No. 4410 [Reply]

File PF-0303102-ProgrammingProject.pdf - (92.49KB )

please help me with this java project

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

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


5 posts and 2 images omitted. Click Reply to view.
Neckbearded Basement Dweller 14/04/18(Fri)04:54 No. 4406

File 13977896555.gif - (943.54KB , 500x350 , tumblr_mq22z7L1wX1rcatuko1_500.gif )

>i was watching a youtube video and it said the NSA has fully cracked TOR
Well, it wouldn't be on Youtube if it were not the absolute truth. No evidence required.

Neckbearded Basement Dweller 14/04/18(Fri)05:17 No. 4407

i can't tell if sarcasm or not.... seriously i can't

Neckbearded Basement Dweller 14/04/18(Fri)05:18 No. 4408

nice gif btw

is Java dead? Neckbearded Basement Dweller 14/01/05(Sun)05:55 No. 4268 [Reply]

File 138889774551.jpg - (12.51KB , 258x195 , images.jpg )

Is Java dead? or does it have as comeback in the future

13 posts and 1 image omitted. Click Reply to view.
Neckbearded Basement Dweller 14/03/20(Thu)12:34 No. 4374

>kids probably get freaked out by the sight of a terminal.
I strongly feel programming should be taught as an extension of math, regardless of language. Beginning with user interfaces and cat pictures produces programmers who struggle to code actually useful things to put in those pretty windows.

As for java, been there, done that. It's a decent learning language, and it's binary/vm portability isn't to be scoffed at, but as a language it may encourage some bad habbits if you are going to do C++ later. It's no biggie if you are aware of it though. I would however probably suggest Python for someone starting out.

Neckbearded Basement Dweller 14/03/20(Thu)12:38 No. 4375

Addit*: And by teaching it as math/science it doesn't seem weird to work on a command line or produce only text output.

* Like edit, except you add something. :S

Neckbearded Basement Dweller 14/04/13(Sun)11:59 No. 4399

i'm in high school too and there are no AP computer courses here though they do teach c# and i did score #1 in the class and get a metal since then i haven't done anything with C# and have only been interacting with C++. But most of the time when i did learn it my freshman year in a class full of sophomores juniors and seniors the teacher didn't know what she was talking about and we had to figure it out ourselves it was a game dev class too. Numerous amounts of students taking her class now have trouble debugging due to the fact that the computer thinks it's running more than one C# and i had to explain why it won't run but i really don't know if they listened. But yeah to what the OP said Java is still alive and well i knew a guy that used java and still does and he hates C and any form of it.

Delete post []
Report post