|
Member
(04-01-2011, 02:51 AM)
|
#51
Originally Posted by Andrex:
as freelance: setting up an e-commerce and a couple of small stupid websites in my spare time: mantaining a couple of modules for a framework because i'm a masochist: developing with a colleague an iOS game |
|
|
|
ὁ αἴσχιστος παῖς εἶ
(04-01-2011, 02:55 AM)
|
#52
Originally Posted by Fersis:
|
|
Member
(04-01-2011, 03:00 AM)
|
#53
Originally Posted by Fersis:
all the companies i've been working for just do services and tourism applications |
|
got my tag in the OT
(04-01-2011, 03:08 AM)
|
#54
Originally Posted by Andrex:
Own time: starting to write a book about all the awful stuff I've seen. |
|
One day I realized that sadness is just another word for not enough coffee.
(04-01-2011, 03:12 AM)
|
#55
Homework:
1) Two player turn based game using Unity and SmartFox servers 2) Group project (shudder) multiplayer game for the same class with the same tools 3) Bezier curves in OpenGL using C++ |
|
Member
(04-01-2011, 03:14 AM)
|
#56
Originally Posted by Fersis:
Overtime kills you and the quality of your work, yet every company seems to want it to be the norm. |
|
Member
(04-01-2011, 03:16 AM)
|
#57
Originally Posted by mantidor:
|
|
Member
(04-01-2011, 03:19 AM)
|
#58
Originally Posted by Halycon:
|
|
One day I realized that sadness is just another word for not enough coffee.
(04-01-2011, 03:21 AM)
|
#59
Originally Posted by survivor:
My major is "Game Design and Development" (cue laughing from industry vets) |
|
Banned
(04-01-2011, 03:23 AM)
|
#60
Originally Posted by Andrex:
Hobby stuff is mostly Android dev at the moment, but my imagination has been failing me recently so I can't think of a good project. Thankfully my company has a huge number of legacy products written for Symbian, so I'm going to start doing some ports in the next few weeks. |
|
got my tag in the OT
(04-01-2011, 03:24 AM)
|
#61
Originally Posted by nickcv:
It's amazing how many companies hear that and balk. |
|
Member
(04-01-2011, 03:27 AM)
|
#62
Originally Posted by Halycon:
|
|
One day I realized that sadness is just another word for not enough coffee.
(04-01-2011, 03:30 AM)
|
#63
Originally Posted by survivor:
You can see the curriculum here: http://igm.rit.edu/node/175 |
|
Member
(04-01-2011, 03:32 AM)
|
#65
Originally Posted by nickcv:
I don't like coding in general, but I have to pick up C# .NET. I am in the unenvious position of having to write code that interacts with Microsoft Office products. (All the coders at work have other things to do right now. :( ) |
|
Member
(04-01-2011, 03:34 AM)
|
#67
Originally Posted by BigNastyCurve:
I agree that small functions and good function/variable names and such are important too, but that and comments are not mutually exclusive. I probably over comment and I'm sure there are plenty of obvious and unnecessary comments in my code, but I think its better to over comment than under comment. If you push yourself to document things in your code habitually it will help you since you'll wind up putting in very good comments for the complicated things that really need commenting. Which will help a lot when you or someone else come back years later. Some things are just complex man, and good commenting can really help you from feeling overwhelmed when trying to scan through a tree of code files figuring out how things work. Didn't mean to dump on you haha. I'm just surrounded by old farts that barely understand how to use fucking objects and never comment their archaic hack code (I swear its a contest around here for who can find the most convoluted ways to accomplish the most basic tasks) so its always a pain when I have to decipher their crap lol. |
|
Will use d3doverrider to force triple buffering instead of complaining about mouse lag in every PC game thread ever
(04-01-2011, 03:39 AM)
|
#68
I work as a Java programming at the Canada Revenue Agency. The coding practice here is awful. 99% of methods are not commented one bit.
Any time I create a new method, I make sure to write the JavaDoc. I try to give a general walkthrough in the code to help with organization and so that the flow makes sense. |
|
Fafracer forever
(04-01-2011, 03:46 AM)
|
#69
Originally Posted by Fersis:
64 hours weekend(Fri-Sun) - and we all loved it -_- In terms of bad-code, I've started seeing a LOT more once I joined big-companies, but nothing quite prepared me for the last 12months. One of conversations on such topics:
Quote:
|
|
Banned
(04-01-2011, 04:07 AM)
|
#71
Originally Posted by Fersis:
One of the random funniest lines I've seen in code: int favre = 4; The original developer was based in Wisconsin. This variable was not used anywhere but this line existed in two places in the code base.
Originally Posted by Halycon:
Anywho end thread derail by me.
Last edited by bluemax; 04-01-2011 at 04:12 AM.
|
|
got my tag in the OT
(04-01-2011, 04:54 AM)
|
#72
so what are some of the strange things you do to code well?
I keep one of those solar powered Piplup bobble heads in my cube. People ask me why I have it and I tell them that when I'm designing something or am going to fix something I look at the piplup and explain exactly what I'm going to do. If I can get to the end without stopping myself in thinking up exceptions then I know I'm good to go. People laugh especially when they see me actually doing it, but they'll agree the results can't be argued with. Also when I have a bug I can't figure out I'll get one of my developers to just stand behind me and look over my shoulder. Typically i find the issue in seconds. I found this by bringing over team members to help me with bugs and while they were standing behind me and I was explaining the problem to them I'd realize the solution or see the problem. And it was always embarassingly obvious once I saw it. Now I find just the fact that someone's looking over my shoulder is typically enough. |
|
Member
(04-01-2011, 05:40 AM)
|
#73
Originally Posted by ronito:
I haven't tried this but heard it works insanely well. |
|
got my tag in the OT
(04-01-2011, 05:41 AM)
|
#74
Originally Posted by SleazyC:
|
|
Member
(04-01-2011, 05:45 AM)
|
#75
should i count myself lucky that i haven't encountered anything too bad? company's been around for 8 years and all the proggers have been fairly competent. i'll sometimes call out others if i see some funny looking code, but it's not too often.
i'm a big proponent of commenting. trying to wrap my head around a big function? write out the pseudo code in comments doing some non-straight forward data transformation? write a comment at each phase. with comments, you can inject a little fun and lightheartedness. since it doesn't get compiled, you can do whatever i do have qualms with lazy co-workers though... it's a serious hit to the morale... |
|
Member
(04-01-2011, 06:14 AM)
|
#76
Originally Posted by ronito:
|
|
Member
(04-01-2011, 06:18 AM)
|
#77
Originally Posted by dogmaan:
Code:
iter = iter + 2; Edit: I'm still an undergrad, but I'm also a mentor for the intro to programming classes here. I've seen some, erm, interesting stuff. Granted, most students in those classes aren't CS majors, and usually the CS majors write good code, but the non-majors.....WTF at some of the things I see. |
|
Banned
(04-01-2011, 06:31 AM)
|
#78
I actually find that talking to the code helps me to debug, which really freaks new staff out. I just find that it helps me to consider everything. Simple example but it's usually something like:
"Okay, you're a float. But I wanted you to be an int. Who did this to you? Was it the database layer? Come on, you can tell me. We're pals." Then I'll go chat with the database layer and get his side of the story. Works for me. |
|
Member
(04-01-2011, 06:32 AM)
|
#79
Since I self-taught myself programming over the course of many years since the end of elementary school or so and never had the opportunity to actually receive any formal CS training (beyond a trade school certification course) it's a bit of a struggle incorporating useful techniques and coding conventions into my own work, especially when trying to unlearn various bad habits that I developed over time going at it alone.
One major thing that really took a long time for me to get into the habit of was commenting my code. Not like commenting every few lines or something like that, I think that's superfluous and doesn't really make for readable code. But being able to just sit back, actually think about what I'm trying to do in a particular function block or loop or whatever and being able to explain what the actual purpose of a given piece of code is. I'll still forget sometimes but I like to think I'm getting better there. One habit of mine that I still am not sure as to whether it's a bad thing or not is being overly explicit in operator precedence, aka: parenthesis the hell out of everything. Part of it is that, for as many languages as I've looked at and the amount of time I've been doing this, I seem to never really be 100% sure about operator precedence rules and just enforce what I want to happen "just in case". It makes code less readable but it also means I can always look at how I wanted a certain statement to behave. Of course that's dealing with high-level languages. I seem to have a knack for looking at and coding in low-level assembly, but that's a whole different can of worms to get into right now :P Someone give me a job! North Georgia is about as fertile a market for programmers as Alaska is for orange farms :( |
|
Member
(04-01-2011, 06:37 AM)
|
#80
a few years ago i worked on a project and we had a 3rd party writing our UI for us. when it finally came time to integrate it before a big event, shit kept crashing everywhere. after a lot of hours searching through line after line of their code we finally found that in some obscure header they were redefining like malloc to call new or something but were using both delete and free. it was some crazy ass shit as they didn't know their own code well at all.
it was at that point that we went into overdrive, said fuck it, and i took over writing a UI from scratch and we still shipped in a decent amount of time. a lot of shit we did was kinda like that. dude. this fucking sucks and i'm sick of wasting time trying to fix it two weeks. on a previous project, i got sick and tired of debugging this really shittily written set of filesystem drivers. so i sat down one night and in about a week i'd banged out a more complete version, and another week of testing and bug fixing, i'd completely replaced the other with something much cleaner and much more capable. i hate rewriting code that's unnecessary, but sometimes reducing the number of lines and cleaning it up can save so much time. it's a tricky subject as other times it can be a rathole. |
|
Member
(04-01-2011, 07:04 AM)
|
#82
Originally Posted by Andrex:
The depressing part? To successfully test it, we needed dead people! |
|
Member
(04-01-2011, 07:08 AM)
|
#83
Oh, and my rants:
Having to write an app based on details that fill half a page of A4. The other one is 'can you quickly write a proof of concept app that does x in about 2 days?' So I do, and it's rough as fuck, but it's a proof of concept yes? Erm, no.... 'the clients like what they see and they want to go live with it next week!' Depressing.... |
|
Banned
(04-01-2011, 07:27 AM)
|
#84
i need to bookmark this thread. would be a good place to vent. right now i'm not really in the mood.
some previews of my rants would be java/android tools/eclipse. or pretty much anything involving linux source, systems, and api's, which all just needs to be nuked from orbit. the whole fucking thing just nuke it and start over. i had to do some work on symbian recently. that was hell. symbian's standard code format is absolutely offensive to me. |
|
Member
(04-01-2011, 07:53 AM)
|
#85
I once wrote a program, or rather, four programs, to perform one pretty arbitrary task that none the less was important to the people I was writing it for.
I wrote it in a mix of C++, VBS, Batch scripting and at least some parts of it contained HTML. I didn't comment a thing, put entire blocks of code onto a single line, had variable names such as int I_dont_know_what_this_was_for;, and it was a complete fucking mess. What's worse is that it kind of actually worked. I made a small config text file for people to change the essentials, then I uploaded the mess onto our server. Oh, the program also fetched data from like three internal servers so if any of those PCs go offline the whole thing is fucked. I left the job a few months later (contract expired), and a few weeks back I got a phonecall from some poor asshole who needed to fix something on it. I told him he was fucked. I made an unworkable, illiterate and barely functioning program breaking every single standard that could ever exist. And I sleep well knowing someone else now has to deal with it. I am that guy, and I am so god damn proud. |
|
Junior Member
(04-01-2011, 08:36 AM)
|
#86
Originally Posted by Fersis:
And in terms of bad programming, I think I can trump you all. I'ver worked on porting Japanese games to the European market, working with post-processed Japanese source code! There's nothing quite like seeing a series of meaningless variables and method calls all over the place, oh and there is no one you can contact to find out what the hell is going on. On a side note, before starting in the industry, I always assumed that Japanese source code would be amazing and relatively bug free based on the quality of the games (particularly from the PS2 era). However, I can tell you from personal experience, this is not the case, lol. I'm also looking to move out of programming, as for me 5 years is more than enough. I respect it as a useful skill to have, but having to do all day, every day for years sucks!
Last edited by TheGoldenGunman; 04-01-2011 at 08:40 AM.
|
|
Member
(04-01-2011, 08:42 AM)
|
#87
Originally Posted by Ubersnug:
one of the projects that he mailed us was something his teachers made him do in college as a test: a graveyard management system you must be a really creepy dude to make your students do something like that. btw, do you guys in the US all work in cubicles? here we usually have open spaces or we are just divided in a bunch of different rooms w/o any logic.
Last edited by nickcv; 04-01-2011 at 08:51 AM.
|
|
Became a moderator just to tag himself.
(04-01-2011, 09:48 AM)
|
#90
Watching first years try to do their 101 java programming assignments is hysterical. I saw one guy a while back who had typed up:
public int 7; ... and he thought this was going to create an array of 7 elements numbered 0 through 6. |
|
Member
(04-01-2011, 11:13 AM)
|
#91
I was working for a natural gas pipeline company over ten years ago as part of my university's internship program.
My boss didn't like me all that much. Loved my predecessor. Who - I am not making this up - used variable names like "flag". That's not the worst part. One time, my boss assigned me to port some VAX code to Windows NT. I'm not sure why he thought I should do this (or even could) since I'd never seen a VAX at all before this (well, still haven't) much less seen VAX code. So I asked him where I could find references to help me understand the code, and he was like "Why would you need that?" ... Yeah. Still not the worst part. (Luckily, the company was so big it had a library of old manuals and I was able to sort of translate from VAX system calls to NT system calls. The thing even kind of worked.) Bear in mind this was in the late 90s and we didn't use any kind of revision control system at all. I don't think we even had test servers to run on before pushing to production servers. And as I wasn't a great programmer and was still in school, I had next to no understanding of what good software engineering practices looked like. I'm just trying to provide context for my actual best/worst story. OK, so my best/worst story from that experience is this: one day my boss decided he should do a code review with me. So we did. We sat down to look at the two or three pages of C code I'd been working on, and his first question was "What's with these global variables?" That would have been a very pertinent question if they were global variables. They weren't. They were function declarations. |
|
Member
(04-01-2011, 11:35 AM)
|
#92
Originally Posted by ronito:
I just sort of walked around the apartment and talked to myself. But it worked! |
|
Member
(04-01-2011, 11:39 AM)
|
#93
I'm looking to get into software. I currently develop HDL, but I want the glory of writing higher level stuff haha. I can code well enough to put together simple iOS apps, but I do not have any experience at good programming practices, since HDL is such a different world from software. But I'm amazed at all of the stories of bosses actually critiquing code. No one ever looks at my stuff.
|
|
Member
(04-01-2011, 01:03 PM)
|
#94
Originally Posted by Hari Seldon:
|
|
got my tag in the OT
(04-01-2011, 01:13 PM)
|
#95
I find it funny that developers outside of doctors are pretty much the only profession where it's pretty much expected you'll end up having to sleep in the office or work insane hours. You don't see accounting do that. Let alone sales and marketing.
|
|
Member
(04-01-2011, 01:49 PM)
|
#96
Originally Posted by ronito:
|
|
my womb is impregnable
(04-01-2011, 01:50 PM)
|
#97
Originally Posted by ronito:
Programmers I think tend to focus on the data structures and logic they're maintaining in their head, and lose sight of the bigger picture when they are buried in their code. Stopping, and talking about the problem from start to finish usually produces either another solution or an obvious flaw in the current method. |
|
(04-01-2011, 02:23 PM)
|
#98
Originally Posted by Midas:
|