coding

Improving the way we write code?

While thinking about software-engineering in general I came across the question why we don't see any improvements in the way we write/document code. Think about it: There has not been a revolutionary improvement since we've moved from punch cards to text editing. The last improvement I've seen is syntax highlighting and context sensitiv...

coding exercise with example solutions

I'm looking for coding exercises that have solutions. I've checked out topcoder and codekata but neither seem to have user posted solutions (maybe I just can't find them?). Basically I can (try) to figure out how I would solve a problem but what I want is to learn and expand my knowledge by see how other (better) coders would solve t...

Looking to get into the turn base webgames business....

Ok lets start off with info about myself.... that way there is no stone unturned. I am a adult, 27 years old. so this isnt a joke or a passing fad. Im into computers, how they work and how apps and games are designed from the ground up and made. I have ZERO programming back ground. I went to college for the wrong thing. I love ...

Parallel coding Vs Multithreading (on single cpu)

can we use interchangeably "Parallel coding" and "Multithreading coding " on single cpu? i am not much experience in both, but i want to shift my coding style to any one of the above. As i found now a days many single thred application are obsolete, which would be better for future software industy as a career prospect? ...

Where / How can I get inspiration to continue coding after doing so for long hours?

The best way to be inspired is to do something inspiring, I realized a while back. But, it's hard coming up with answers when you're uninspired. I've tried many things, but found nothing that inspires me to continue a task (yes, it seems like that at this point) I've been performing all day. Where? How? What? And it makes you want to wr...

How can I implement a language translation module in php.

Which is the best way of implementing a language translation for mutli -lang site. I have two methods, i.e. 1) Just put all the static text contents in the pages to database ie a database driven programing style $translation('register_form'); <form > <input name="search" > </form> some sort of transltion. 2) is in like wordpress .m...

How do you write "boring" code?

Sometimes, we have to write some really trivial code, such as enable/disable controls. EDIT: I don't want to ask how to fix my problem, it's just an example. I want to ask how you deal with "boring" code? For example, I now writing a Windows Forms application, and depending on the user's choice, controls get shown or hidden. My applica...

Coding on a PDA/Cell phone/MID

This is an opinion question. If you were to write code using your iPhone, Blackberry, MID, PDA or whatever small-screen, no-keyboard device you have... how do you see the UI working best? I do not mean writing app for the small device, I mean using the small device instead of a PC/notebook/netbook to actually do he programming work. I c...

How do I export facebook photos to website and save / print the photos?

I came across moo.com (a printing website) that allows me to import my personal photos from Facebook. The photos were then displayed in a gallery format and I was able to drag and drop photos I would like to print. What kind of programming language do they use and how do they do it? Any legal issues surrounding such import application? ...

How to get new Motivation after a bad code review

So i presented my code yesterday...after a lot of hard work i was happy to show it to my colleagues. After presentation all that was left was my projects name. Everything else has to change... They took a lot of time to explain their point of view but after getting back in my place i was really disappointed. I read mostly all "motivat...

Is it bad practice to nest 2 try catch statements in C#?

Is the following code bad practice? try //Try Overall Operation { try //Try section 1 of operation { } catch(exception ex) { //handle exception code //throw the exception } catch (exception ex) { // ...

C# Coding Standards Tool

Hi. Is there a Visual Studio plug-n or add-in which allows you to check code formats and conventions. This would include checking the indention, spacing,line spacing, casing of function names or variables, check if pascal case or camel case, etc. Anything which relates to coding convention. And of course we are allowed to set these. And ...

Too much coding at a job interview

I am In a situation where for an interview I have been asked to code For half a day and create a web based gallery with tagging, search, uploading, rating and so on. I'm starting to worry that I can't possibly fulfill the requirements in the alloted time. Does this mean I'm not good enough or is it a test designed not to be beaten? Edit...

Could use some help with this soundex coding.

The US census bureau uses a special encoding called “soundex” to locate information about a person. The soundex is an encoding of surnames (last names) based on the way a surname sounds rather than the way it is spelled. Surnames that sound the same, but are spelled differently, like SMITH and SMYTH, have the same code and are filed toge...

How to code via mental-models, in the absence of a keyboard.

I suffer periodically from carpel tunnel (The "carps" as I shall affectionately call it). In an effort to extend my ability to do programming at least into my thirties (after which I'll have made my first million, obviously, so it won't be an issue any more), I have cut back on my out-of-work coding time, among other preventative soluti...

Not good starter AND even not good finisher

If any body can advice me and help me a little. It is always difficult for me to start work on new task, but after starting work it is also difficult to finish it in estimated time. In start I can't grab the whole idea(idea mean how to start development on assigned task e.g. window or webpage etc.) of a task or group of tasks. If I m...

Tips for developing in several languages at once

Does anybody have any tips for utilizing multiple languages at the same time? I use objective-c, c, perl, ruby, bash, ksh, rails, and other proprietary languages every day and am finding increasingly difficult to go back and forth between them on a daily basis. As a trivial example when switching between perl and ruby I constantly forg...

Software development on Mac

I was just wondering if from a linux software development perspective & software development perspective in general, if a Macbook is worth it. I know that the Look and feel is very good and all that. But I wanted to know more about how easy it is to coding on it (tools, IDE etc.). Mostly of the people whom I know that own a mac are not ...

to start coding in C# for eToken

Newbie request for advise. I have a task to develoop C# (VB.NET) service class (library) for storing/extractin user's passwords in/from Aladdin eToken devices. Advise me any: walkthroughs, tutorials forums, discussions code sample(s), examples I googled but couldn't find anything helpful for starting coding. "eToken PKI Develop...

Practical and useful coding tricks that help web developers save time?

I'm a php web programmer. I want to know if there are common web problems that web programmers face for which there are unorthodox and effective solutions. As an example, I'm making a simple website of user generated profiles. A user can store a whole bunch of information that range from first high school to when he first went to a ba...