-  [WT]  [PS]  [Home] [Manage]

Name
Email
Subject   (new thread)
Message
File
Password  (for post and file deletion)
  • Supported file types are: GIF, JPG, PNG, TXT
  • Maximum file size allowed is 5120 KB.
  • Images greater than 200x200 pixels will be thumbnailed.
  • Currently 405 unique user posts. View catalog

  • Blotter updated: 2009-07-22 Show/Hide Show All

File 125864122939.jpg - (28.56KB , 501x471 , from_my_space_to_my_face.jpg )
6200 No. 6200 hide watch expand quickreply [Reply]
How did people learn the language they prefer to code in?

Myself: I learnt C++ by reading other people code and through experimentation.
3 posts omitted. Click Reply to view.
>> No. 6239
>>6203
Greetings fellow I-started-on-VB coder.

I've moved on to greater things now, like C and python - I don't think VB ruined me.

I learn VB by downloading tonnes of examples and just reading them/debugging. VB IDE's debugger is how I think.

C <-- man pages.
>> No. 6260
>>6203
>he introduced me to rape

OP, WHERE THE FUCK CAN I BUY THAT SHIRT. I DON'T EVEN
>> No. 6264
>>6260
ebay


File 125867069728.jpg - (14.78KB , 340x166 , 12301478642.jpg )
6221 No. 6221 hide watch expand quickreply [Reply]
import java.io.*; import java.awt.*; import java.awt.image.*; import javax.imageio.*; import java.applet.*; import java.net.*; public class mainMap extends Applet { static BufferedImage grass; public static void loadImage() { try{ URL img = new URL("file://localhost/K:/test.bmp"); grass = ImageIO.read(img); } catch(IOException e){System.out.println("Error")} } public void paint(Graphics g) { int x = 0, y = 0; g.drawImage(grass,x,y,this); g.drawString("Loading....",50,50); loadImage();//); g.drawString("back to drawing",60,60); // g.drawLine(50,50,55,55); //MapMaker map = new MapMaker(); final int grid = 5; for(int i = 0;i<100;i++) { x = 0; for(int j = 0;j<=100;j++) { //System.out.println("draw"); g.drawImage(grass,x,y,this); //g.drawLine(x,y,x+5,y+5); x+=grid; } y+=grid; } //g.drawLine(70,70,75,75); } }

So /pr/ as you can see this is a applet and my applet executes up to the loadImage() part then executes that and just randomly breaks and i can't figure out why... Any of you know why ; ;?
8 posts omitted. Click Reply to view.
>> No. 6249
>>6247
If you're absolutely sure, replace (IOException e) with (Exception e). That should do it.
>> No. 6250
>>6249
ya, it fully executes now. There some error with loading the image it seems. thank you.
>> No. 6256
INDENTATION... IN MY /PR/??????????


File 125867978122.png - (0.97MB , 1280x1920 , 1256475520982.png )
6242 No. 6242 hide watch quickreply [Reply]
Sp, /pr/, today we talk about Lisp. It's a great language, yet not many people use it. But why? Tell me, /pr/:

1 - The parentheses
2 - The syntax and the parentheses
3 - The syntax, but the parentheses are okay
4 - Not what I'm used to
5 - Not practical
6 - Bare bones ¹

(¹ Some people I know consider it very small and bare-boned because, for example, it gives you a function (format) to write on the screen, on a file, or concatenate strings, but (Unlike other languages), doesn't offer functions (AFAIK) that skip the destination argument and have a predefined purpose, like printing text on the screen, another func to concatenate, etc...)

[NOTE: Pic unrelated.]
>> No. 6246
You have to think.


File 125859896619.jpg - (11.58KB , 290x345 , news017.jpg )
6182 No. 6182 hide watch quickreply [Reply]
Hello /pr/,

I've recently started working on a small game project in Java. I plan for this game to be eventually 2d and I think i might make my map an Applet. My reasoning behind this is because as a very simple way to make a map i figure every 5x5 pixels = 1 grid and i'll then take that and decide how many grids i want and most likely it'll be 100x100 grid map. The way i was thinking about drawing certain images[grass,roads,building,characters] was by making each of those stand as a #value and put all those # values in a array. 1 array per each grid row[100 arrays for 100grids x.x]. I then will loop throw the applet drawing each image[which I'll draw up in paint beforehand 5x5 pixel sizes] in each place where they go. Now i figure there is a more simple way to doing this kind of stuff, but right now I'm not exactly sure. What are your opinions about doing this kind of stuff /pr/?
>> No. 6186
I think what you're describing is a texture atlas (http://en.wikipedia.org/wiki/Texture_atlas) which is quite adequate for you purposes.

You could just have the 5x5 textures aligned from left to right and just have the # value of your array * 5 to allocate the desired texture.
>> No. 6211
>>6186
Thank you.


File 125843846763.jpg - (70.99KB , 800x572 , devcpp_scr.jpg )
6122 No. 6122 hide watch expand quickreply [Reply]
Hey /pr/,
I Have a bunch of free time and want to code a game. I know a group of people that made an online game in Game Maker and were dissapoint when they realized that their shortcuts in development had cornered them into a crappy, bulky and resource hog of a language. They are now learning C++.

If my games are starting out simple should I just jump right into C++ or something around as advanced so that way in the future I don't have to start over learning a whole new language?

I am a redneck from alabama. I know nothing about coding.
Please help.
10 posts omitted. Click Reply to view.
>> No. 6183
Please don't kill me /pr/ but I think java wouldn't be a bad idea if you want to start programming to make games. C++ is rather difficult to learn imo and java is quite easy :D . /* I'm not a fan of python at all srry, heard many good things bout it tough so you might want to give it a try*/
>> No. 6188
>>6161

>C++ is full of shit you need to know, such as learning how to work with pointers and different data types.

Fixed
>> No. 6204
I'd suggest Visual Basic to get your feet off the ground. It's really easy to learn and a great introductory langauge.


File 12574821534.jpg - (47.30KB , 600x400 , zombie.jpg )
5820 No. 5820 hide watch expand quickreply [Reply]
Howdy fellow /pr/odigys. I want to make a game. I have had this idea in my head for awhile now but the problem is I need help to do it. The game I envisioned was this: It simulated, more than the action aspect of a zombie apocalypse, the survival aspect. It wasn't about busting down doors and going ape shit on 20 zombies at once,it was about motherfucking staying alive. You're forced to use whatever objects are at hand as zombie slaying weapons, and depending on the weapon, will break easily. It's all about finding places to crash, finding food and what ammo you can, and avoiding being bitten at all costs. I'm pretty into coding game engines and stuff and I'd love to do something like this but its crazy to think I could do it alone. Would any of you fellow anons have interest in such an undertaking? Any discussion is welcome, even if you can't code and just wanna discuss in depth on the mechanics of the game.
10 posts omitted. Click Reply to view.
>> No. 6093
File 125834396198.jpg - (28.51KB , 300x300 , 1250975946840.jpg )
6093
>>6068

Well that's just like...




...your opinion, man.
>> No. 6148
File 125849165544.jpg - (22.89KB , 300x355 , interrogation.jpg )
6148
have you checked out tigsource? lots of creative people who are in the same state of mind as you are imho..

Apart from that, if a game is to be mostly about staying alive, you have to entice the player and make this game character "matter" in the mind of the player. How? And not just in loose terms. Exactly, how? Why am I going to spend 4 hours looking for food and ammo and a place to sleep? (I'm not saying it won't work. I'm just applying some pressure..)
>> No. 6202
OP I had the same idea, I would be interested in a proyect like that, I was thinking about a GTA game, like a sandbox.


File 125753737496.jpg - (32.33KB , 264x100 , UDK_01_small.jpg )
5832 No. 5832 hide watch quickreply [Reply]
What is /pr/ opinion about it
>> No. 6144
Finally a reason to give windows more than just a virtual machine to live in. As someone who does a lot of eye-candy programming, this is a godsend. First run through of API docs and test prog were easy to use. Can't wait to get some more time to spend on it.
>> No. 6198
It has gorgeous graphics but as a programmer I'm loathe to commit to a system that uses a scripting system that only works with one engine: UnrealScript.

I'm hanging out for Crytek to join the spate of free game tools and release CryEngine2 for free. Awww yeahhhhh.


File 125787679915.jpg - (10.55KB , 180x237 , 180px-Kr_c_prog_lang.jpg )
5927 No. 5927 hide watch expand quickreply [Reply]
hey /pr/,
i'm reading/doing the excercises in the h & k c book (everybody i've talked to says this is the best way to get a really good understanding of c). what are some other definitive programming books? i'm looking at doing the camel book after this because i have a web programming class next semester that makes heavy use of perl. any other great or enlightening books you guys would recommend on programming languages?
11 posts and 1 image omitted. Click Reply to view.
>> No. 6109
When I was in 8th grade, I found websites of professors from a local community college. I just followed the assignments.
>> No. 6110
>>6109
Good idea; though I'd definitely recommend looking at the MIT courseware first.
>> No. 6197
File 125863342868.jpg - (22.73KB , 300x300 , 1117D-C1.jpg )
6197


File 125780842492.jpg - (40.40KB , 600x402 , 1256622416646.jpg )
5883 No. 5883 hide watch expand quickreply [Reply]
I've looked around, but have found differing views.
What is the most commonly used Artificial Intelligence based Programming language used today? I know of LISP and Prolog. but...what is used more commonly. advantages? Disadvantages.

also off topic. does anyone know what something "like" Cleverbot or any of the AIM bots is created in, as in what language?
pic unrelated (as usual)

thanks a ton
7 posts omitted. Click Reply to view.
>> No. 5931
Lisp maps well into the "data structures" used in traditional mathematics.
AI was and is heavy in math (and light in practical applications), so I can see why AI pioneers choosed lisp, though, that probably WAS and is the best language available for that and they coulnd't have done any better with any other language.
>> No. 6151
>>5915

AI guys made it because they needed symbolic manipulation, and since their pseudocode was all logic anyway, why not make it run pseudocode?
>> No. 6196
>>5888
Stop being a jerk. Everyone has to start somewhere. And the language he uses does matter much, actually. Good luck writing something that creates new functions at runtime in C or C++. It can be done but you're doing 10x the work of functional languages.

STRIPS would be the closest fit to your "AI based language" idea.

It depends on what you want to do. It would be better for you to think of AI, or the current state that it is in in terms of problems. A quick and dirty list would be:

-Logic. Prolog would be good for this. Bayesian nets, Fuzzy Logic, first-order logic.
-Knowledge representation: Overlaps with logic and databases.
-Planning: GRAPHPLAN, STRIPS, fluent and situational calculus.
-Learning: Neural nets, Self-organising maps etc. This is a toughy. It really problem and domain-size specific.
Memory: anything. Not really a problem until you start talking about associative memory etc.
-Locomotion: Control theory. Lots of maths. Some success has been had with genetic algorithm based approaches but I don't know too much about this.

I'd learn more about the field first. Read "Artificial Intelligence: A Modern Approach" by Russel and Norvig. Its the bible for AI.
Message too long. Click here to view the full text.


File 12586140223.png - (10.51KB , 178x196 , beastie.png )
6189 No. 6189 hide watch quickreply [Reply]
Hi /pr/,
What should my resume look like for a Software Engineering job? It's for a web company that doesn't list any specifics. I have a degree in Computer Engineering and some experience with programming but it's never been one of my job responsibilities to maintain or create code, other than project management or simple html. What to do?
>> No. 6192
What employers want:
- individual skill
- "working" skills (group, communication, formal writing etc)
- interest

roughly in that order. Experience is #1, intelligence/education #2, personal stuff #3. Pimp what you have; if you have great grades, any awards, personal projects (this shows interest if nothing else).

Tailor your CV specifically for the type of job, so for software engineering, talking about how great you are at photoshop is pretty much useless. List languages you know, even if you've only made like one little project in them, as long as you can talk about it in interviews.


Delete post []
Password  
Report post
Reason  
[0] [1] [2] [3] [4] [5] [6] [7] [8]