|
When I was first starting out in development, I thought that writing code was pretty easy. It took me a while (and a long learning process) before I realized that writing code is harder than it looks. Looking back on some of that first code, I wonder how it ever worked, how I avoided a serious security problem, and what I was thinking about when I wrote some of that code. Experience is the way that most of us learn how to write code, but experience is a lousy teacher: it gives the lesson after the test. Here are some ways you can improve your code writing right now. Sure, he wrote a PHP book. Don't hold that against him.
|
|
|
|
|
"5. Learn all you can about software development best practices."
So you can avoid them.
|
|
|
|
|
PIEBALDconsult wrote: So you can avoid them.
Ah, this is one of the rare moments when I miss voting. So true...
|
|
|
|
|
I've been writing "5" on sticky notes and putting them on my screen.
|
|
|
|
|
|
Oh, hey, I could store the URLs and 5 them later. Nah, to much work.
|
|
|
|
|
Some time ago, I ran across this conundrum: Why does Visual Studio continue to build projects when a dependent project failed to compile? So, I took it upon myself to figure out how to stop the Visual Studio compiler from building projects unnecessarily. That is: stop building immediately after it encounters an error. My solution took the form of a Visual Studio macro. For the uninitiated: that means writing some Visual Basic code to manage the IDE. For the initiated: You can cringe with me... Visual Basic to the rescue.
|
|
|
|
|
Time spent compiling is never a waste.
|
|
|
|
|
Especially since it makes a great legitimate excuse to goof off for a while. Never had much issue with VS building things, but then again I've never worked in a huge solution in VS. Eclipse on the other hand...if I haven't been working in Java for a week or so the update and build can take a good 30 mins.
|
|
|
|
|
Terrence Dorsey wrote: Why does Visual Studio continue to build projects when a dependent project failed to compile?
Debugging-purposes in the IDE. I like a list of things that's wrong, not just the first thing that the compiler encountered.
|
|
|
|
|
Like other PC hardware manufacturers, Dell's core business has been squeezed as tablets and mobile devices have started to take center stage as the device of choice for many in business and consumers alike. As someone who uses a variety of device but who principally uses desktop machines you might be forgiven for wondering what the fuss is about. After all, if your day is spent writing 'stuff,' creating multi-media content, entering invoices, manipulating spreadsheets or other CPU intensive activities, then the desktop really is the best tool for the job. At least for the time being. However, that cannot mask the secular trends with which Dell has been battling the last few years. Soon, "desktop" computers will be niche products only used by power users. (That's us, BTW.)
|
|
|
|
|
That's what's scary about the Aaron Swartz indictment. He was indicted for wire-fraud for concealing his "true identity", for doing what I do. But at no time was he asked for his true identity. His true identity was not needed to access the JSTOR documents. JSTOR allowed anybody from the MIT network to access their documents, and MIT allowed anybody to access their network without requiring identity. Let me repeat that: nobody asked Aaron for his true identity, but he was indicted for wirefraud for concealing his true identity. He was indicted for doing the same things I do every day. Any sufficiently technical expert is indistinguishable from a witch.
|
|
|
|
|
I hope they don't indict me over my pseudonym.
|
|
|
|
|
To say that Nolan Bushnell single-handedly created the arcade would probably be overstating it: coin-operated machines had been popular in America for decades by the time he got his start in the early '70s, and the pinball arcade had a storied (and notorious) spot in American history. It is also undeniable, however, that the video game arcade would not have happened without him. The video game arcade had its roots in 1971, when Computer Space, the first commercially sold, coin-operated video game, was designed by Bushnell and Ted Dabney. Though considered a failure at the time, the game was revolutionary, and formed the foundations of a new industry. Magnets for loitering youth and gateways to bad behavior? Or the first shots of a coming digital revolution?
|
|
|
|
|
I really should heed my own advice. Yesterday I warned you that all preview versions of Windows 8 would expire. You had two choices -- upgrade to gold code or deal with a computer that reboots every two hours. Hopefully you went with the former, but I chose the latter with a desktop PC that I rarely use. I had the nerve to say to myself that "I will get it tomorrow". If you tried the preview, are you upgrading?
|
|
|
|
|
For the last four and a half years, the iOS App Store has been a promised land for independent game developers. Teams consisting of only two or three people could develop and publish an app and have a real shot at hitting the top of the charts. Anybody could hit it big: a pair of Croatian brothers (Doodle Jump), a husband-and-wife team (Temple Run) or a construction worker with minimal programming experience (Geared). It was a modern-day gold rush. Those days are officially over. In fact, they ended in 2011. Even the incoming wave of Android-powered game consoles won’t save indie game developers.
|
|
|
|
|
We've finally done one of those "give me 5 minutes and I'll get it done" tasks and made it so when you are logged onto CodeProject, and then then visit rootadmin.com[^] using the same browser, you will be automatically logged in.
A small thing, but an important thing.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
modified 15-Jan-13 23:50pm.
|
|
|
|
|
The link is wrong here. it is just "www."
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore, Dream. Discover.
|
|
|
|
|
The rest was left as an exercise for the reader.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
"Rest" is the best form of "Exercise" for programmers.
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore, Dream. Discover.
|
|
|
|
|
What happens when people have different usernames or passwords under each?
|
|
|
|
|
Confusion reigns. The skies rain blood, the poles reverse, cats start chasing dogs. It's terrible.
Accounts are linked, so for any given email, the password is the same across all sites. If you're logged in with one account on CodeProject, and manually log in with a different account on RootAdmin, that's how it stays. If you log out of RootAdmin then the next time you visit you'll be logged in with the account on CodeProject.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Chris Maunder wrote: Confusion reigns. The skies rain blood, the poles reverse, cats start chasing dogs. It's terrible
Mayan calculations are adjusted.
Chris Maunder wrote: Accounts are linked
Ahh, so you automatically created accounts for those that existed in one, but not the other.
Chris Maunder wrote: If you log out
Never had a need here.
Chris Maunder wrote: If you log out of RootAdmin then the next time you visit you'll be logged in with the account on CodeProject.
And vice-versa I assume? Meaning, if any RA-only user visits CP ...?
|
|
|
|
|
Finally, I was able to create my account on RootAdmin. Thanks.
(It was failing before, so I decided to give it some time.)
|
|
|
|
|