Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

877996 Posts in 32898 Topics- by 24323 Members - Latest Member: nickFromPaintteh

May 21, 2013, 01:04:29 AM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)The grumpy old programmer room
Pages: [1] 2 3 ... 275
Print
Author Topic: The grumpy old programmer room  (Read 305880 times)
increpare
Guest
« on: May 10, 2008, 02:55:19 PM »

When I started my current project, (which I decided) I figured I could get by storing the various graphs and trees I was interested in in adjacency matrices, but I'm starting to get a bit irritated with having to refer to pretty much every little thing as something as manifestly exhibiting of redundancy as

word[ROOM_OBJECT_DESCRIPTION[items[rooms[houses[house].room[f]].item[g]].description]]   


Lips Sealed

Hopefully I'll be able to go on without having to recode everything, but gosh it's annoying.
« Last Edit: May 10, 2008, 02:57:24 PM by increpare » Logged
Klaim
Level 10
*****



View Profile WWW
« Reply #1 on: May 11, 2008, 06:54:23 AM »

It seems that you need to read this : http://en.wikipedia.org/wiki/Law_of_Demeter
Logged

http://www.klaimsden.net | Game : NetRush | Digital Story-Telling Technologies : Art Of Sequence
increpare
Guest
« Reply #2 on: May 11, 2008, 07:23:50 AM »

It seems that you need to read this : http://en.wikipedia.org/wiki/Law_of_Demeter
Roll Eyes
Logged
Klaim
Level 10
*****



View Profile WWW
« Reply #3 on: May 11, 2008, 08:28:33 AM »

It seems you're grumpy  Smiley
Logged

http://www.klaimsden.net | Game : NetRush | Digital Story-Telling Technologies : Art Of Sequence
increpare
Guest
« Reply #4 on: July 02, 2008, 04:35:59 PM »

AAAAH, so I spent a good one-and-a-half days fixing what I thought was a silly bug in part of the rotation code of the engine I'm working on.

So, this evening I sit down to write a clipping algorithm, but it was doing really weird things and I couldn't get it to work.  It turns out the angle function I was using was wrong and that, somehow, it hadn't messed things up too much until now.  And, it's not looking like it's going to be too easy to fix either, going to take a couple of hours anyway probably   Lips Sealed Lips Sealed Lips Sealed Lips Sealed Lips Sealed
Logged
Zaphos
Guest
« Reply #5 on: July 02, 2008, 08:01:35 PM »

What does an 'angle function' do?  atan2?
Logged
increpare
Guest
« Reply #6 on: July 03, 2008, 01:57:41 AM »

What does an 'angle function' do?  atan2?
It should have given the clockwise angle between the (1,0) vector and a given vector.  So I had somethign like atan2, only I did something really weird to correct the angle, instead of returning 180-atan2 if y<0.

Edit: OOPS, I had no idea that atan2 did that (I was using acos I think in my original implementation. Gosh.  Should really use that instead for the time being.  This is almost as bad as spending a couple of years with PHP before learning of the stripslash function ...

So: thanks!
« Last Edit: July 03, 2008, 02:02:41 AM by increpare » Logged
Alex May
...is probably drunk right now.
Level 10
*


hen hao wan


View Profile WWW Email
« Reply #7 on: July 03, 2008, 07:46:27 AM »

fuck everything. especially sony's psp memory stick library programmers. fuck them good.
Logged

Ryan
Level 1
*



View Profile
« Reply #8 on: July 03, 2008, 07:47:55 PM »

I hate the warnings in gcc that tell me I don't have an extra newline at the end of my documents.

I hate how SDL does weird magic for your main function and how it reroutes your stdout to a text file instead of the console.

I hate having to use the win32 api, it consistently defines constants and functions with names that I would like to use in my programs.

I hate wxWidgets, I wish there was something better that wasn't so darn huge.

Angry
Logged
mjau
Level 3
***



View Profile
« Reply #9 on: July 04, 2008, 12:21:23 PM »

I hate how SDL does weird magic for your main function and how it reroutes your stdout to a text file instead of the console.

You can disable the stdout redirect.  (There's a configure option.  You need to compile SDL from source, but the main part is statically linked so you can still use an official dll for dist.)

Quote
I hate having to use the win32 api, it consistently defines constants and functions with names that I would like to use in my programs.

X is worse.  It also defines macros with commonly used names.  You're in for a fun time when it starts renaming your stuff.
Logged
Ryan
Level 1
*



View Profile
« Reply #10 on: July 05, 2008, 05:18:13 PM »

You can disable the stdout redirect.  (There's a configure option.  You need to compile SDL from source, but the main part is statically linked so you can still use an official dll for dist.)

Bollocks, compiling the library myself with a define of NO_STDIO_REDIRECT to gain back functionality the library strips away is plain hogwash, good sir. The designers did indeed make some less than satisfactory decisions. Gentleman

I agree on Xlib, probably the worst library ever, so confusing.
Logged
Gravious
Level 2
**


"Swedish meatballs"

evil_gorilla@hotmail.com
View Profile WWW
« Reply #11 on: July 06, 2008, 10:00:11 AM »

Hello, I'm Gravious, I'm 31, a programmer and I'm grumpy.
Logged

One day I'll think about doing something to stop procrastinating.
Ivan
Owl Country
Level 10
*


alright, let's see what we can see

Valaam0
View Profile
« Reply #12 on: July 06, 2008, 10:02:13 AM »

I'm hungover.
Logged

http://polycode.org/ - Free, cross-platform, open-source engine.
Melly
Level 10
*****


This is how being from "da hood" is like, right?


View Profile
« Reply #13 on: July 06, 2008, 03:52:15 PM »

"expected `;' before '(' token "

 Tired
Logged

Feel free to disregard the above.
Games: Minus / Action Escape Kitty
increpare
Guest
« Reply #14 on: July 07, 2008, 03:59:24 AM »

   "Unexpected Indent"
Logged
Pages: [1] 2 3 ... 275
Print
Jump to:  

Theme orange-lt created by panic