Programming Style

General discussion about LÖVE, Lua, game development, puns, and unicorns.

What kind of programmer are you?

Logical (you plan a lot in advance and only do things with good reason)
6
10%
Structured (you follow a fixed/particular schedule from simple to complex)
8
14%
Intuitive (you think as you code and fix it later, you trust your gut and take risks)
12
21%
Inventive (you learn from others and do it your way or improve on old methods)
6
10%
Creative (you try new approaches each time building up until something works)
2
3%
Destructive (you break things down to the core and then rebuild it up how you want)
5
9%
Combination (you are more than one combination of the above, or don't have a fixed style yet)
17
29%
Other (none of the above, or you don't know --please specify in the comments)
2
3%
 
Total votes: 58

jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

Re: Programming Style

Post by jjmafiae »

Ensayia wrote:I lean the furthest in the direction of inventive.

I usually either pick apart code to understand it, or follow someone's directions to the letter until I understand the core concepts and then build my way up from there. I often don't explore unless I have a solid base understanding of what I'm working with. Often times this can be a hindrance, but usually when I finally do write code it's solid.

I really should break out of the box and just explore a little without knowing for sure. I think it's what holds me back as a programmer. I;m about ready to get my feet wet with C++, so I have a feeling it will happen.
but you are one of the good programmers :o
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Programming Style

Post by Robin »

Combination (you are more than one combination of the above, or don't have a fixed style yet)
Hm, no. No "yet". I use whatever style is best for the project at hand.
Help us help you: attach a .love.
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Programming Style

Post by Lafolie »

I'd have to follow what Robin said. There's so many ways to do things that using 1 set approach never really works, there's always room for reading new methods and refining your implementations of them. Meanwhile lots of more trivial tasks can be easily thought out and built without external aid.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Programming Style

Post by kikito »

I went structured. I see programming as solving a problem:

1. Divide problem into as many small problems as I can.
2. Pick the simplest of the problems, and get coding.
3. When done, test that it glues well with the rest of the things I have, and then pick another small problem.
4. When no small problems are present, I'm done.

That's the happy path, of course. Each of the steps has traps, so it is rarely a straight line. But that's the main idea.
When I write def I mean function.
User avatar
Ensayia
Party member
Posts: 399
Joined: Sat Jun 12, 2010 7:57 pm

Re: Programming Style

Post by Ensayia »

jjmafiae wrote: but you are one of the good programmers :o
Says who? Where did you get this information? :crazy:
jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

Re: Programming Style

Post by jjmafiae »

you made lots of good libraries and you made that chat client (that was pretty cool).
User avatar
jag_e_nummer_ett
Citizen
Posts: 52
Joined: Thu May 16, 2013 6:31 pm
Location: Stockholm, Sweden

Re: Programming Style

Post by jag_e_nummer_ett »

I tend to overengineer my work, like small prototypes. Just to make a simple test program I add miscelaneous things that is practical but not needed. Example: made a simple web "browser" so I could test out th functionality of using internet in a löve project. And so I added an adress field and all that to not have to edit the code, wich would've been faster. I feel like this as a strength 'cause I can go back and oue my old code with ease.
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Programming Style

Post by T-Bone »

I picked "logical" because I tend to think a lot about how I want to structure the program before I start coding. Sometimes that's a problem, in that when I have thought of a good way to do something, and it ends up not working, it feels like I've wasted a lot of time. But when you realize things you didn't think of before and end up changing your plan as you go, you learn things and become a better programmer.
User avatar
mickeyjm
Party member
Posts: 237
Joined: Thu Dec 29, 2011 11:41 am

Re: Programming Style

Post by mickeyjm »

Judging by the poll results I think you should change it to be multiple choice and I don't think anyone really does one style completely but uses elements of different. For example I am intuitive but also logical to an extent. I will know what I want to do for each section (logical), but have no idea what the actual calculations are until I dive in (intuitive)
Your screen is very zoomed in...
Ekamu
Party member
Posts: 178
Joined: Fri Sep 20, 2013 11:06 am

Re: Programming Style

Post by Ekamu »

Changed it to multiple votes:
You're right there is no "straight path" and usually including myself I change "style" depending on the situation. But I think we all have something we fall back on for example I tend to be intuitive mostly and get into a lot of problems then break those down until I solve them (destructive). Everyone is unique and our styles seem to be more dynamic than just one straight thing.

I guess its a journey. I wish that I could pop a pill and master Lua just like that, instead I have to read PIL and master it a couple months-years maybe even a lifetime. maybe never. (<_<) such limitations drive me crazy. Anyway I guess its a journey...
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest