![]() |
Forum Index : Microcontroller and PC projects : Sore elbow
Author | Message | ||||
Gizmo![]() Admin Group ![]() Joined: 05/06/2004 Location: AustraliaPosts: 5116 |
I'm about half way through porting a Classic ASP based intranet system to PHP. The system was written by me over the last 10 years or so, its a web based business/workshop management application used by a few of my business clients. I'm porting it to PHP to make it more future proof, and PHP will let me add a lot of extra features and functions. There are about 550 pages, each with from 100 and 2500 lines of code. Porting to PHP basically involves editing each line, from a BASIC like language to a Java/C like language. Been at it for about 6 weeks. I guess I'm about half way through, got a bit of pressure to get it operational in a few weeks. Problem is, my right elbow ( the mouse elbow ) is bloody sore! Normally I can only do about 4 or so hours a day working on code, but this port needs 8 plus hours a day, and I cant afford to take any days off. Just wondering if any other coders have any tips on keeping the old organic bits functioning? Are heat packs or cold packs any help? Glenn The best time to plant a tree was twenty years ago, the second best time is right now. JAQ |
||||
MicroBlocks![]() Guru ![]() Joined: 12/05/2012 Location: ThailandPosts: 2209 |
Learning as many shortcuts in your favorite editor can help. Instead of moving back and forth between keyboard and mouse you only use the keyboard. As a fulltime programmer for the last 40 years that made the greatest impact. Having a good chair that can support your arms on the right height also helps. I am curious why you made the choice for PHP? I am about to embark on a similar task as i also need to port a website. My choice is ASP.NET/SQL Server (I am pretty good at C#) because it has the best integration with IIS and Windows Server. . Microblocks. Build with logic. |
||||
astroboy Regular Member ![]() Joined: 28/12/2014 Location: AustraliaPosts: 41 |
Hi Glenn I'm not really a programmer but I had trouble with my (right) mouse hand/wrist/arm a few years ago and tried switching to left hand for mouse. I thought it would be difficult but it wasn't at all. I suspect part of the problem was that the arm is further out away from the keyboard because of the number pad. I agree with MicroBlocks about keyboard shortcuts. John |
||||
Gizmo![]() Admin Group ![]() Joined: 05/06/2004 Location: AustraliaPosts: 5116 |
Using a mix of keyboard shortcuts and mouse. Using text replace where useful. Editor of choice is dreamweaver. I have tried swapping the mouse to the other hand in the past, while it worked, the speed was way down. I'm happy with my techniques, its just the quantity of code that needs editing thats the problem. I was out earlier and picked up a cold pack, will give it a go tonight to see if it helps. I've looked into Asp.net a few times, but I never bonded with it, seamed like a lot of extra code and less flexibility than I was used to. Classic ASP was dead easy to develop code in, and its popularity is still strong 15 years after Microsoft wanted us to stop using it. This forum uses Classic ASP. But its a old language, and lacks new features. Ruby was tempting as an alternative, but in the end I wanted to use a language with a strong community support, and cross platform compatible, and could be written in a style I was used to, ie, messy code. So I'm migrating to PHP and MySQL. I've written a few sites using that combination, and am very happy with how easily it works on different systems. I can develop on my windows PC using IIS and MySQL, then upload to a linux server and it just works first time. Even functions like file uploading and image manipulation work without fuss cross platform. In fact I find php interacts with the Microsoft file system and Microsoft documents better than ASP does. Plus the PHP help community is great, lots of examples to work with. So I made the decision to go with PHP and MySQL. No doubt there are other combinations that work as well, but this is my choice, and learning a new language needs a commitment. Glenn The best time to plant a tree was twenty years ago, the second best time is right now. JAQ |
||||
bigmik![]() Guru ![]() Joined: 20/06/2011 Location: AustraliaPosts: 2949 |
Hi Glenn, Having no idea what the conversion entails, is it possible to do global find and replace of sections of the code? Kind Regards, Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
Gizmo![]() Admin Group ![]() Joined: 05/06/2004 Location: AustraliaPosts: 5116 |
Not really Mick. You can do a few simple one's like replace "response.write" with "echo", etc. But most of the chunks of code are specific to the task they need to do. And most of the commands in PHP look very different to ASP, eg "for a=1 to 100" in ASP is "for($a=1;$a<=100;$a++){ " in php. PHP does have a shorthand like format, but its harder to follow so I've decided to use vanilla PHP. In some commands, ASP is easier, in other's its PHP. Glenn The best time to plant a tree was twenty years ago, the second best time is right now. JAQ |
||||
Lou![]() Senior Member ![]() Joined: 01/02/2014 Location: United StatesPosts: 229 |
Glenn, How about trying PEMF (Pulsed Electro Magnetic Field) therapy. Look it up at http://www.pemft.org/ etc. or search PEMF on YouTube. It can work very well on the sort of pain you have. I have a PEMF unit just going into production (with Zonker's help) using the MicroMite 170 chip. Zonker's wife is using one and likes it !! Shoot me an email if you're interested. I hope all Shed'ers had a Merry Christmas and a Happy New Year. Lou Microcontrollers - the other white meat |
||||
Gizmo![]() Admin Group ![]() Joined: 05/06/2004 Location: AustraliaPosts: 5116 |
Lou removed the political comment in your post. Quickest way to alienate half the forum members is to let them know who you voted for. Glenn The best time to plant a tree was twenty years ago, the second best time is right now. JAQ |
||||
bigmik![]() Guru ![]() Joined: 20/06/2011 Location: AustraliaPosts: 2949 |
What about Football teams? Go the BOMBERS Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
ajkw Senior Member ![]() Joined: 29/06/2011 Location: AustraliaPosts: 290 |
Western Bulldogs for me thanks Mick. A fine year it was. And lets not forget about Footscray in the VFL either. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Apologies for getting off topic. Sorry I can't help with PHP. |
||||
Gizmo![]() Admin Group ![]() Joined: 05/06/2004 Location: AustraliaPosts: 5116 |
Yeah sports is fine, its friendly. Politics, like other sensitive topics, isnt. Never heard of the BOMBERS? Is that a netball team? The best time to plant a tree was twenty years ago, the second best time is right now. JAQ |
||||
n8mdl Newbie ![]() Joined: 11/08/2011 Location: United StatesPosts: 11 |
Aleve - it is the elixir of youth. When that fails - vodka. Happy New Year all! Gary |
||||
bigfix Senior Member ![]() Joined: 20/02/2014 Location: AustriaPosts: 129 |
Have a look at this page Tennisarm page I think it is the same problem with a "mouse-elbow" rather simple exercises where you twist/stretch the arm in a certain way It is in german with self explaining pictures - maybe google xlate helps I had the problem years ago and it worked for me |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6269 |
When I started having a similar elbow/arm problem I took a board and placed it on my knees. The mouse was used on the board which now has my forearm going downwards instead of up when the mouse was on the desk. That helped a lot but I eventually went to the doctor who didn't help much. I went to the physio who told me it was the shoulder and my shoulder joint was loose. Lots of exercises, increasing in complexity over time and I have been able to put of a shoulder reconstruction for a while (hopefully a long while). I can now use the mouse on the desk again. Look up RSI Jim VK7JH MMedit |
||||
Phil23 Guru ![]() Joined: 27/03/2016 Location: AustraliaPosts: 1667 |
Out of curiosity i picked up one of those home ultra sound units from the chemists a few years back. Very impressed at the ailments it relieves. $40 from memory. Not wonder cure but it does work on some stuff. |
||||
greybeard Senior Member ![]() Joined: 04/01/2010 Location: AustraliaPosts: 172 |
I've found that using the mouse right handed and holding my beer in my left hand sort of balances things out. It does kind of prevent me from getting in an entire 8 hours a day though ![]() |
||||
busa Regular Member ![]() Joined: 12/02/2015 Location: AustraliaPosts: 81 |
That would make both elbows sore wouldn't it?? ![]() |
||||
Tim_the_bloke![]() Senior Member ![]() Joined: 15/11/2009 Location: AustraliaPosts: 105 |
Go see your GP doctor, then maybe have some imaging such as an ultrasoud, and maybe visit a physiotherapist. Treatment without diagnosis is like editing code you do not understand. There are probably exercises to strengthen specific muscles in your wrist which could help. I think of pain as an error message. Treating the pain may be just masking the error. Panadol is like On Error Resume Next. Pain is often like microsoft error messages, confirming there is an error but telling you the wrong cause. For example, a bad hip can cause pain in the knee. Sometimes microsoft error message do give useful information, but I really like PHP because its error message usually accurately describe the cause. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |