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

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

There's a new /777/ up, it's /Trump/ - Make America Great Again! 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.

Neckbearded Basement Dweller 15/05/25(Mon)05:22 No. 4735 [Reply]
4735

File 143252415564.png - (6.85KB , 213x213 , Icpc_logo.png )

ACM programming competitions are done - Russia kicking ass.
Thoughts?




Subscription Manager Neckbearded Basement Dweller 15/05/30(Sat)07:18 No. 4743 [Reply]
4743

File 143296310212.png - (51.87KB , 2200x1000 , woocommerce-logo.png )

Hey guys , I had a offer to build a subscription service with premium content . I want wordpress to manage payments and subscriptions . To build the custom content i'm using codeigniter .I'm using woocommerce + subscription , Is this the best approach ?




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.


7 posts and 1 image omitted. Click Reply to view.
>>
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/05/29(Fri)05:19 No. 4740

1. Python is a very easy language to learn, especially if you understand the fundamentals of programming.
2. I would say C, or maybe Java, since Java has a higher level of abstraction.


>>
idoit4thelulz 15/06/02(Tue)03:59 No. 4744

I'll be different and say start with Racket. Don't even think about a second language yet though. Where you go next is a bridge to cross when the time comes.

BTW, I started with BASIC in the 80's, immediately followed by Z-80 assembly language. Now I code in C and Perl mostly. But anyway, asm back then wasn't so difficult because the machines were much simpler (check out MOS 6502, for example). Actually BASIC->ASM path would still work fine today if someone happens to have a simple 80's machine. Modern hardware and OS are too big of hurdles for that sort of thing.




Any help is appreciated! Neckbearded Basement Dweller 15/06/05(Fri)10:56 No. 4745 [Reply]
4745

File 143349458999.jpg - (40.12KB , 500x428 , 1433312565948.jpg )

Hello 7chan, I don't come here ever but I need help from someone familiar with python. I know nothing of programming and I need to modify a game in a variety of ways. Most of the modifications I'm able to figure out on my own, they're as simple as changing a few variables. However I've hit a dead end, and I need to make one more change.

The game is called space fortress and was a DARPA project to test various aspects of learning, reaction time, and gaming. It's a very simple 2D shooting game, nothing complicated. Here's a link for anyone who's interested in it:

https://www.dropbox.com/sh/p6wvyw7jd7vyjlr/AAAuKD6Vlfvsp4Ned0qUls0Va?dl=0

What I need to do is create a wind effect that constantly blows the ship downwards by 0.4 pixels per game tick. That will require adding lines of code that I have no idea where to begin at. If you can't do it yourself I'd appreciate it if you told me how extensive of a modification this would be. I assume it's a simple command to have the ship always move in one direction, -0.4 on the y axis to be exact, but again I'm not a programmer. So any help would be appreciated.


2 posts omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 15/06/06(Sat)11:29 No. 4749

Yes that makes sense. Would adding 'self.position.y -= 0.4'to the compute method under ship.py do that? That's a suggestion I got from a different board.


>>
Neckbearded Basement Dweller 15/06/07(Sun)05:38 No. 4750
4750

File 143364830511.png - (227.25KB , 1920x1080 , Untitled.png )

I was told this would work. But my lack of programming knowledge makes it difficult for me to troubleshoot what I'm doing wrong. I'm not a programming student.


>>
Neckbearded Basement Dweller 15/06/08(Mon)00:58 No. 4751

So I added 'self.position.y += 0.4'in ship.py under computer and it works!

Thanks for taking the time to read this thread.




How bad is it? rayman 14/12/02(Tue)01:39 No. 4625 [Reply]
4625

File iwlmem.c - (1.27KB )

How bad is this piece of code?


7 posts omitted. Click Reply to view.
>>
legit 14/12/20(Sat)23:34 No. 4648
4648

File iwlmem2.c - (1.19KB )

>>4625

I'm attaching an improved version of your code, if you want more info let me know, I had typed then inside the form, but when I submitted, the site said that the file name already existed and I'm not gonna write it all again if it's not worth it.

BTW, here is your source


>>
Neckbearded Basement Dweller 15/05/22(Fri)20:20 No. 4733

>>4648
>args[0]+2
Isn't that just args[2]?


>>
Nattajerk 15/05/25(Mon)14:47 No. 4736

>>4733
no, that is 2 plus the value of args[0].

args+2 would give you the equivalent of args[0+2].




Closures & Callbacks(javascript) Boy Next Door 15/05/04(Mon)13:27 No. 4730 [Reply]

Can someone please explain these two concepts to me? I've been going through different books & youtube videos and I think I got the gist of them, but I'd like an explanation from others. I'm more confused how these concepts tie in with asynchronous vs. synchronous.


>>
Nattajerk 15/05/19(Tue)23:33 No. 4732

A closure can be thought of as a function within a function, which has access to variables in its scope. That's basically all it is, there are some technical things about it but you need not concern yourself with them just yet.

A callback is passing a function to another function as a variable. Wikipedia probably describes it best,

http://pastebin.com/6rXWAQEd

in this, someAction requests a function as a parameter. what this means is you can insert your own compatible function and it will be executed within the someAction function, rather than evaluated it if it were just asking for a standard variable.




show urself and find a bug Neckbearded Basement Dweller 15/04/24(Fri)10:24 No. 4728 [Reply]
4728

File 142986389971.jpg - (438.23KB , 2000x1000 , bug.jpg )

Find da bug!

http://pastebin.com/dKm2G2XV


>>
find bugs in popular open-source projects Neckbearded Basement Dweller 15/04/25(Sat)11:53 No. 4729

Authors of PVS-Studio static code analyzers offer programmers to test their sight and to try finding errors in C/C++ code fragments. https://software.intel.com/en-us/blogs/2015/04/24/lets-play-a-game-find-bugs-in-popular-open-source-projects




Iffy vocational school Neckbearded Basement Dweller 15/01/15(Thu)20:03 No. 4672 [Reply]
4672

File 142134860082.jpg - (19.80KB , 364x329 , 1365193232_Guy-with-Question-Mark-over-his-headFot.jpg )

I'm attending a one-year training in COBOL. So far, I've seen these alarming signs of varying importance:

*There is these mandatory exercises. But you can pass a course despite not having made them all. The general modus seems to be dragging people trough the education so that they can get their tax money at the end of the spring semester.

*There is no paper towels in the dining room nor the toilets. Despite our complaints.

*We had a week with a horrible sales pitch with a representative from IBM. z/OS and stuff. He was knowledgeable, but he was the worst teacher ever. And of course a few megabrains did catch everything he said. But not the most of us.

*This education will be crowned with a 2-month period of an internship. But the school had only some 15-20 places earmarked for us. Then a few places disappeared, because one of the banks has decided to move all the COBOL-development to Balticum. Then a few places will be taken by children to people working at these banks.

*Applying for internship will be as if you was applying for a real job. So the last week before christmas there was this little course on how to promote ourselves. One of the panaceas suggested was LinkedIn, yeah THAT LinkedIn, THAT spam-engine.

So what do you think? Am I only training for unemployment?


>>
Neckbearded Basement Dweller 15/01/16(Fri)04:44 No. 4673

There's supposedly a lot of legacy COBOL code that isn't going anywhere. Get in touch with someone who works where you want to work, then get a job there.


>>
Neckbearded Basement Dweller 15/04/17(Fri)21:54 No. 4726

For now, COBOL is very sought-after, because lots of shit is programmed in COBOL, and the old geezers who are proficient in it are dying out. So for a decade or so, I'd say you're set.

I strongly suggest you learn some more modern programming languages though, too.




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.




Delete post []
Password  
Report post
Reason