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

  1.   (new thread)
  2. (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 369 unique user posts. View catalog

  • Blotter updated: 2010-08-30 Show/Hide Show All

Donate to 7chan to keep us going another month: Goal $20/200 Due 9/1 Check IRC for Paypal info
Or donate using Alertpay
Amount (USD)

File 128303518422.jpg - (38.23KB , 540x413 , posse.jpg )
9643
C++ programmer carerr - Videogames Anonymous 10/08/28(Sat)15:39 No. 9643 [Reply]

I just finished my degree on computer science, and I would like to start a career as a video games programmer. The truth is, I have never done any game. Yes, that is kind of sad and shameful.

As far as I know, to get into a well known company, you must have up to 3 years of experience and worked on at least 1 AAA game.

I don't really know how things work, and I am not asking about "How to code my first game", but on how to follow this path. I thought about starting as a junior C++ programmer, then maybe after a year or two, move to a company or a group of people to learn how to make games, or at least applications to use on those games, then... apply for a big company.

Does this seem logical to you ? Thanks in advance.

>>
Anonymous 10/08/29(Sun)13:56 No. 9657

So you would be a junior programmer at a software company? should be easily done for you if you are really a CS major. But the idea that you'll learn to make games 'with' a company is rather stupid. They hire people to get the job done because they have a deadline.

your best bet is to code a few relatively complex games (something you can show during the interview process), and then work your way up in that company or several different ones (from Junior to hey, let's shoot for the stars and say lead programmer on a project).

if you have never made a single game (come on man, not even pong? two paddles, one ball, and some velocity changes with collision, that's all it takes) the chances that they (a company or any 'group of people') will want you on the project is infinitely low.

>>
Anonymous 10/08/30(Mon)01:59 No. 9661

>>9657
Is right, experience is your friend when programming!
So start making games in your spare time.

>>
Anonymous 10/08/30(Mon)16:14 No. 9664

I know, but I would rather enter a company to develop applications for them to use, rather than develop the game itself. Of course I have always wanted to make games, but maybe because of the time, lack of motivation and several other stuff I naver got into it. Maybe I would do something once I get a money income, no more studying.



File 128294063362.jpg - (350.03KB , 1698x1131 , ComputerProgrammer.jpg )
9625
Favorite Language Fasriro!PNJnsuu/IY 10/08/27(Fri)13:23 No. 9625 [Reply]

Hey guys, I'm curious as to what's your favorite programming language and why?

5 posts and 1 image omitted. Click Reply to view.
>>
Anonymous 10/08/29(Sun)13:50 No. 9656

In order from Favorite to least, mine are...
Python
Pascal
PHP
C/C++
Ruby
C#
VB.Net

>>
Anonymous 10/08/29(Sun)22:50 No. 9660

Ruby
Assembly (prefer RISC to x86)
C
Every Other Language
TI-83 Calculator Basic
C++

>>
Anonymous 10/08/30(Mon)08:14 No. 9662

Perl 6. It used to be Perl, but things have changed.

For fixing what was broken in Perl 5, and extending what was great.

And no, it's not production-ready yet. But it's awesome to play with.



File 128310093384.png - (81.84KB , 1800x1000 , turing_machine.png )
9650
Anonymous 10/08/29(Sun)09:55 No. 9650 [Reply]

Hello /pr/.

I'm trying to use the C-preprocessor in non-C context, and I have a macro a kind of:

#define ADD(A,B) ((A)+(B))

In the file being processed, ADD(1,1) will leave behind ((1)+(1)) instead of 2, which is the wrong thing.

Google says there is no way to make it evaluate the expression at preprocessing time, can you prove I'M A GIGANTIC FAGGOT?

2 posts omitted. Click Reply to view.
>>
Anonymous 10/08/29(Sun)13:12 No. 9654

>I can't do it
>google says it can't be done
>I know the fucker can do it
How the fuck would you know that?

I'm not completely sure, but I don't think the preprocessor can do that since it doesn't know how C works (1+1 could be 1 for all it knows).

>>
Anonymous 10/08/29(Sun)13:28 No. 9655

>>9652
#if and a few others can evaluate expressions at preprocessing time, but that doesn't mean that the preprocessor can output their result.

There's no way.

>>
Anonymous 10/08/29(Sun)21:14 No. 9659

You can't make a turing machine out of the preprocessor.

http://www.ioccc.org/2001/herrmann1.hint

But you can make a tiny processor!

http://www.ioccc.org/2004/vik2.hint

Or solve the towers of hanoi:

http://www.ioccc.org/1995/vanschnitz.hint

But what you really want is a term rewriting system. Something like ADVIS, but not retarded. You could probably write one in the time you've spent fucking the preprocessor.



File 128197776457.jpg - (632B , 1x1 , Blank.jpg )
9511
Anonymous 10/08/16(Mon)09:56 No. 9511 [Reply]

Hey /pr/.

I come asking a few questions.

What would be better to learn to start my education towards a career?

1. c++
or
2. java

And what can you tell someone who hasn't learned any langues what to expect?
I'm taking an intro to programming and the book I'll be learning from is called
Programming Logic and Design: Sixth Edition.
Is this a good book that will help me understand programming a little bit or am I just going to be wasting my time.

8 posts omitted. Click Reply to view.
>>
Anonymous 10/08/23(Mon)14:59 No. 9590

well if you really want a language for a career you should know both, even if it´s just to have a deeper understanding

>>
Anonymous 10/08/28(Sat)12:30 No. 9640

>>9541
So, you prefer microshafts bastard child of java and c++ over the real thing?

In honesty I would say Java because it forces you to learn all of the OOP concepts and its fairly easy to understand. Once you get that any of the languages that are OO will be pretty easy.

Do make sure you learn both though because even though Java is nice and relatively simple, there is nothing I hate more about it then not having the ability to shoot myself in the foot (pointers, passing by reference, etc)

>>
Anonymous 10/08/29(Sun)05:03 No. 9648

>>9640
I have nothing against Java. With 5.0, it really has became as pleasant as it can get without breaking its own rules, if you know what I mean. It also is probably the best replacement imaginable for pascal as the default teaching language.

I don't think tressing the object orientation is that necessary anymore. It's so mainstream today and so many languages support it that the new generations of the programmers do learn it without a hassle. Its time to demote the object orientation into a mere paradigm among the other useful paradigms - and allow the computer scientists and language developers to focus to other aspects of language design as well.

Same thing with goto. The new programmers no longer have the C64 BASIC as their first language, there's no longer need to recondition them away from that sort of practices.



File 128302827526.png - (469.84KB , 750x1112 , amelia.png )
9642
Anonymous 10/08/28(Sat)13:44 No. 9642 [Reply]

My goal: simple program (possibly a browser extension) that creates RSS feeds based on dynamically changing pages and keywords you pick.

Ex. On the Craiglist Gigs section, you could create a feed that includes keywords like "computer" + "tech" or "repair". Any new gigs with those terms would be posted in your rss-reader.

How would I go about doing this?

>>
Anonymous 10/08/28(Sat)19:28 No. 9645

Since you didn't specify any language I'll assume you don't know any.

It'll be somewhat difficult, but all you need is the basics of Python and regular expressions (regex). You may use Java, Ruby, or whatever instead of Python, I just recommended Python because it's the easiest language that I've ever used.
Anyway, install Python, do the tutorial at docs.python.org, and, after you feel like you know the basics well enough,

import re help(re)

After you understand it, google how to download files and you can start working on your project.
I've made a similar program for comics that don't have good RSS feeds, and it's pretty easy.



File 128290156568.jpg - (193.64KB , 912x764 , complexity_network.jpg )
9622
Anonymous 10/08/27(Fri)02:32 No. 9622 [Reply]

/g/ I'm working on a project at the moment and I'm having trouble managing complexity. I have a lot of work to do in coming days, what approach can I take to manage complexity.

Pic related: it's my brain at the moment.

>>
Anonymous 10/08/27(Fri)02:54 No. 9623

You seem to have problems managing boards too. This is /pr/, not /g/

>>
Nattajerk 10/08/27(Fri)15:14 No. 9630

helo. there is no /g/ board on 7chums, unlike that other place.
it is split into /sci/, /halp/, and /pr/ respectively.

wonderful :3



File 128268669070.jpg - (48.72KB , 551x700 , yo-dawg-derive-while-you-derive-700.jpg )
9596
Anonymous 10/08/24(Tue)14:51 No. 9596 [Reply]

What would be a good programming language to learn for a starting game programmer?

3 posts omitted. Click Reply to view.
>>
Anonymous 10/08/25(Wed)04:16 No. 9607

>>9604
Libraries and stuff.

>>
Anonymous 10/08/25(Wed)07:05 No. 9609

>>9602
Each OS has their own headers since they have different ways of doing shit. Linux, Mac, and Windows also all have different threading models so you pretty much just have to make your own abstraction of it. Sure, you can be lazy and pull in shit like APR to do it for you, but that's stupid.

>>
Anonymous 10/08/27(Fri)04:42 No. 9624

There's no such thing as a 'starting game programmer'.

If you don't know how to program, learn C or Python, then when you're at a professional standard you should research whatever language your prospective employers use and learn that.
Some languages are more common than others in the industry, C++ and C# in particular, but neither of these languages are very beginner-friendly.

If you want to grab an early feel for what video-game development is like, I suggest downloading the Allegro library. It's certainly not a professional tool, but it'll teach you a few basic ideas like double buffering.



File 128267978799.png - (5.75KB , 185x266 , Pointers.png )
9594
Anonymous 10/08/24(Tue)12:56 No. 9594 [Reply]

I don't know if I fully understand pointers, but I don't get what's the use for pointers in C instead of just using the variable. Can anyone explain why I should use a pointer instead of just using the variable itself?

6 posts omitted. Click Reply to view.
>>
Anonymous 10/08/26(Thu)22:19 No. 9618

Ah ok, this makes a lot more sense now.

>>
MrHat 10/08/26(Thu)23:37 No. 9619

>>9616
Dude...

int* i = 4;

That'll make an int pointer, which is initialized with address 4

>>
Anonymous 10/08/27(Fri)02:19 No. 9621

>>9619
>allocate enough space for a pointer (usually a single byte)
lol, mods trolling?



File 128269783074.jpg - (11.14KB , 400x323 , gnome.jpg )
9603
GTK+ Anonymous 10/08/24(Tue)17:57 No. 9603 [Reply]

How do I find the topmost window of a specific program on openBox (it's a GTK+ window)? And how do I get a specific GtkEntry text from another process (I know there's the gtk_entry_get_text function but I don't have a pointer to the GtkEntry since it wasn't created by my program)?
What I want to do is find the topmost PCManFM window's current path.
I'm using C.

>>
Anonymous 10/08/25(Wed)04:23 No. 9608

I believe window order is handled by X, not the window manager, so you would get the list of windows and look through them from top to bottom and use the first pcmanfm one. I don't know how you'd get the list of windows but look up xlib or xcb, they would probably have functions to access this.
>how do I get a specific GtkEntry text from another process
I don't think this is possible without modifying pcmanfm. you can't use pointers in your program to access memory belonging to another process unless they're using shared memory; it will trigger a segfault. however, if pcmanfm puts the current directory in the window title you can get it from there if you already have the window's information.

why do you need to do this? have you considered writing a plugin or something for pcmanfm that outputs the current directory to a file/pipe, or doing whatever you want to do inside the plugin?

>>
Anonymous 10/08/25(Wed)18:48 No. 9610

>>9608
>why do you need to do this?
I'm making a small program to launch a terminal to the current directory of the topmost file manager's window. I've made a similar program for Windows some years ago and it's very useful, I can open a terminal to the directory I'm looking at with very few key presses (ctrl-shift-q). Usually I have a half a dozen terminals open in the same directory (or nearby), and it's much more practical than typing "cd /a/really/long/path/possibly/with/hard/to/type/chars/" in each of them.

>look up xlib or xcb, they would probably have functions to access this.
I still haven't managed to get the order of the windows but it seems to be in xlib somewhere since it can list all the Windows.

>>how do I get a specific GtkEntry text from another process
>I don't think this is possible without modifying pcmanfm
If it really can't be done I'll just take it from the title, although that reduces the portability since the window doesn't have to be named like that AFAIK.

>>
Anonymous 10/08/26(Thu)12:49 No. 9617

I'm not an expert, but I suspect this is only possible in windows because microsoft was sloppy. I'm getting the feeling this really should be a filemanager plugin.



File 128256877070.jpg - (39.22KB , 314x500 , 1258316247969.jpg )
9586
c# & ado.net question zerochan 10/08/23(Mon)06:06 No. 9586 [Reply]

images are sent to a database as a byte array. to read them back can I use BinaryReader? If not what are my options?

I am using mssql 2k8 as my data provider

1 post omitted. Click Reply to view.
>>
zerochan 10/08/24(Tue)02:30 No. 9592

>>9591
Yes thats what I meant, thank you.
Would I need to iterate through it to fetch all the rows? something like a foreach row loop?

>>
Anonymous 10/08/24(Tue)14:55 No. 9597

if you are just getting the one image from the database you would do something like this:

string cmd = "select picture from Picture where PictureID="+ picID +";";
SqlConnection cc = new SqlConnection(connectionString);
SqlCommand com = new SqlCommand(cmd,cc);

try
{
cc.Open();
byte[] b = (byte [])com.ExecuteScalar();
MemoryStream mem = new MemoryStream(b);
Image dbImage = Image.FromStream(mem);
}
catch (Exception) {}

>>
Anonymous 10/08/26(Thu)00:32 No. 9612

But should You keep images in the database in the first place, isn't it more efficient to keep image path in database and image itself on the hard disk?



Delete post []
Password  
Report post
Reason