|
C# is listed twice. and LOLCODE is missing
|
|
|
|
|
|
I know. If you wanted to be a lawyer, you would have gone to law school instead of spending your nights poring over K&R. Tough. In 2013, if you're an open source programmer you need to know a few things about copyright law. If you don't, bad things can happen. Really bad things. This humorous subhead is licensed under The Code Project Open License (CPOL).
|
|
|
|
|
One of the key problems is that software patents are essentially patents on mathematical algorithms -- sets of instructions for carrying out a calculation. Since it has long been a principle that you can't patent mathematical formulae or laws of nature, there is a tension there: if software is just mathematics, why should you be able to patent it at all? New Scientist points to an interesting article in the April 2013 issue of Notices of the American Mathematical Society, in which David A. Edwards proposes a radical way of solving that conundrum.... In particular, he believes it should be possible to patent mathematics, and hence software. It's impossible to calculate how much harm these patents would cause... because the formula is patented.
|
|
|
|
|
I'm sorry, but I have already patented "impossible", "calculate", "cause" and "is".
I think you owe me a lot of money...
Simon
|
|
|
|
|
By common definition, the purpose of a job interview is to allow an employer to screen candidates and find someone to fill an open job position. Each and every applicant must prove his or her worth to the potential employer. Many will apply, but only one (or very few) will be selected. In the world of software, the overall hiring process follows the same sort of pattern. I always aim to impress any potential employer by showcasing my work and showing the best of my abilities. However, I expect any potential employer to reciprocate and make an effort to impress me. When the interviewer finally asks me, "Do you have any questions for me?", I like to conduct a little interview of my own. Check the comments for more great questions to ask your interviewer.
|
|
|
|
|
I should just repeat the headline a few times and then drop in the link to the free download, but a little context may be helpful. Playing Football Manager, so people jest, is like playing with spreadsheets, poring over lists and figures. They are wrong. Playing with spreadsheets doesn’t lead to a management simulation, it’s more of an arena-based roguelike sort of experience. Cary Walkin, an accountant and MBA candidate at the Schulich School of Business in Toronto, has created an RPG in Excel. Much of the content is procedurally generated, with more than 2,000 possible enemy types and 1,000 item combinations, but there are also boss encounters and a story with several endings. You are in a cell. There are functions to the north and the west...
|
|
|
|
|
To make sure everyone knows what we’re planning and can participate in this rapidly growing ecosystem, I’m pleased to announce and personally invite you to our next developer conference, Build 2013, which is taking place June 26-28, 2013 at the Moscone Center in San Francisco. It’s been a while since our last developer event in the Bay Area, and we’re looking forward to a fantastic gathering. Save the date and mark your calendar for the opening of registration next week, at 9 a.m. PT on Tuesday, April 2 at www.buildwindows.com. I left my heart (and an ethernet cord) in San Francisco.
|
|
|
|
|
Do a lot of HTML/CSS coding? Want to save your <> keys from an early grave, and your fingers from wear and tear? Then you'll want to install Emmet[^] in your favourite text editor (I see Notepad++, Vim, Sublime and TextMate in the list, that's all that matters to me). No VS yet, but as Zen Coding had a VS plugin, and Emmet is the upgrade of Zen Coding, it's only a matter of time.
--------------
TTFN - Kent
|
|
|
|
|
I've been playing around with some web stuff, and getting irritated with Aptana's auto tag closing acting funny if you add an attribute before ending the opening tag (e.g. type "<div class="cls">" end up with "<div class="cls">></div>", an extra ">" than I wanted). This looks like an easy way around that, and the added benefit of less typing. Have to try it out when I get home.
|
|
|
|
|
|
And they are already giving hints... Clickety[^]
|
|
|
|
|
That is actually kinda cool.
Gryphons Are Awesome! Gryphons Are Awesome!
|
|
|
|
|
It's a lot of fuss over what is basically Windows 8 Service Pack 2.
=====
\ | /
\|/
|
|-----|
| |
|_ |
_) | /
_) __/_
_) ____
| /|
| / |
| |
|-----|
|
=====
===
=
|
|
|
|
|
Lloyd Atkinson wrote: It's a lot of fuss over what is basically Windows 8 Service Pack 2. It's a big deal for those of us running 8 and missing those features.
|
|
|
|
|
An invalid time?! Since when is 1am on March 31 an invalid time? I mean it’s not like it’s November 31 or February 29 on a non-leap year, what an earth is wrong with this time?! And for that matter, how on earth do you get an error when converting GMT to UTC, isn’t it the same thing?! The problem is that 1am on March 31 this year simply will not exist in the time zone above; people there will literally travel through time! The other problem is that GMT isn’t UTC – but it’s close. Spring forward. Fall back. Abort. Retry. Cancel.
|
|
|
|
|
Just a question, how did you try to do this, C#. I know I am not real thrilled that there is no specific data and time formats. I understand the need for a datetime format, but there are many times that adding the extra information just makes the developer's life harder. Finally got around to creating them in SQL-Server several years ago. Not sure I disagree with taking into account the stupid time change due to daylight savings time. Doing the time change in the first place is dangerous (http://stress.about.com/b/2012/03/11/the-dangers-of-daylight-saving-time.htm[^]). Also, obviously it can be a pain in the neck for a developer.
|
|
|
|
|
Don't get me started on Daylight Saving Time. As soon as I finish building my time machine, I will erase this horrible idea from history. I just need to determine if I have to pay a visit to Ben Franklin, George Vernon Hudson or William Willett[^].
Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
|
|
|
|
|
Interesting.
00,00 GMT Standard Time (Fails)
00,00 Greenwich Standard Time (Passes).
Aren't they one and the same?
Code Snippet:
DateTime dtSourceDateTime = new DateTime(2013, 3, 31, 1, 0, 0);
TimeZoneInfo objTimeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("GMT Standard Time");
Console.WriteLine(TimeZoneInfo.ConvertTimeToUtc(dtSourceDateTime, objTimeZoneInfo).ToString("MM/dd/yyyy HH:mm"));
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
One of the things that have annoyed me about Visual Studio for many years, is the inconsistency when pasting code copied from websites. Depending on the browser you get different results.... So, in a rare moment of clarity a few days ago, I decided to fix this issue by writing an extension for Visual Studio - Pretty Paste. The idea is to inject some logic just before the regular Paste command in VS executes. That logic will quickly analyze the text being pasted and correct any non-intended line numbers and extra blank lines. Copy-paste programming made easier - and prettier - in Visual Studio.
|
|
|
|
|
When it came to outreach, we went bigger than ever by reaching down to the little ones: children. For the first time, we offered two days of free tutorials for kids, titled “The Young Coder: Let’s Learn Python”.... “I don't think you'd ever see that kind of experimentation in a classroom full of adults, who would more likely do everything in their power not to break their computers,” Barbara wrote of the kids’ ability to learn, write, and run code that quickly bogged the machine down. Shortly into the course, they learned to write their name in a string and then multiply it by huge numbers. If they went too far, a simple unplug and re-plug brought them back to square one. Great ideas for teaching kids programming from a successful event.
|
|
|
|
|
This is some humble advice on how I believe people should deal with bad code. It’s not technical advice. Actually it’s not really advice. It’s just stuff I’ve been thinking of lately. Typically, the first thing a person does when encountering bad code is determining who they should blame. Immediately it becomes a personal or tribal vendetta. This is wrong. This should not be the first step. A deeper understanding of the code is necessary before we identify the poor soul who should suffer your wrath. Admit it: You could have written code this bad. It’s not beneath you.
|
|
|
|
|
Probably the most controversial part of PEP 8 is the limit of 80 characters per line. Well, is actually 79 chars, but I’ll use 80 chars because is a round number and the way everybody referes to it.... It seems that, naturally, Python code tends to occupy around 35-60 characters (without indentation). Longer lines than that are much less frequent. Having suddenly a line much longer than the rest feels strange and somehow ugly.... So, even if the initial intention probably has little to do with all those things, I really feel that this limitation helps me writing more readable and compact code. I am sort of a “readability” integrist, in the way that I feel that readability in the code is the most important consideration by default, and should be keeping in mind at all times. Could you code effectively with an 80-character line limit today?
|
|
|
|
|
Terrence Dorsey wrote: Could you code effectively with an 80-character line limit today?
I only code with this width in mind, as I often use the terminal on Linux. I thought pretty much anyone who wrote over this width just broke it down into a multi-line statement anyway
=====
\ | /
\|/
|
|-----|
| |
|_ |
_) | /
_) __/_
_) ____
| /|
| / |
| |
|-----|
|
=====
===
=
|
|
|
|
|
Quote: I thought pretty much anyone who wrote over this width just broke it down into a multi-line statement anyway Sadly, no. I've seen some pretty hairy-long lines. It's not pretty.
I spent many years re-formatting for print layout with more or less 80-column width, so the habit in hard-coded in my brain now.
Lately I've been messing about quite a bit in Xcode, and discovered that it does a pretty nice job of auto-formatting and indenting line breaks in a sensible, readable manner. Message parameters stack up nicely, etc. Still learning to trust it and anticipate what's likely to happen in a given situation, but the defaults do seem to lend themselves to compact, readable code.
Director of Content Development, The Code Project
|
|
|
|