- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
What? Are you suggesting the number of days in a week should be hardcoded? Sloppy.
Admin
This is beautiful - it is ready to handle both solar and lunar weeks!
Also, when we finally get to another planet, the "week" will certainly have more/less than 7 days; we need to plan for this!
Admin
wow. just wow.
Admin
Heh, neat. In my coworkers webapp I found the following table:
Oh well, at least this was beyond his planned lifespan.
Admin
Reminds me of the code for the timesheet software at a company I used to work at. That was written in good old VB as well.
Admin
"By the time he found the below snippet, he felt like he needed a cold shower."
The code made him horny?
Admin
If you haven't been around much:
When TopCod3r posts (and he will post) about how he used to require his team to code in such and such a manner, ignore it. He's trolling, and if you respond you will be mocked by all the kids here who are way cooler than you will ever be.
Admin
Somehow, this is going to get blamed on good ol' trusty VB.
captcha wisi
As in wisi-washi code?
Admin
Admin
And if you feel the need to prewarn people about TopCod3r in advance, it means you've fallen prey to him at least once and been embarrassed as a result.
Admin
If we designed a new system of measures for time with no legacy support, we'd probably end up with day divided into 100 thousand units (10/100/100) and possibly a week of 5 or 10 days.
Admin
...and if someone else post something that defends the practices in the article and you respond; you've been trolled by a n00b! I will mock you even more, since I am cool (way more than you'll ever be.)
Admin
Incorrect! But thanks for playing.
Admin
See: Discordian Calendar
Admin
Instead of storing the calendar in a table, they should have used DATA statements. It's a lot faster than database access and you can make change right in the code.
Admin
Maybe if you're one of the few who use metric system. Here in the US we like our measurements (whether they be time, length, or mass) to be intuitive. 12 inches = 1 foot, 3 feet = 1 yard, 1760 yards = 1 mile.
Admin
We had a scheduling system with tables named 1998, 1999, 2000, etc. It stopped working every year right after the holidays.
I asked why we don't make the year a column. I was told that the table would get too big if we kept reusing the same table every year.
Admin
My feet are under 11 inches, my yard is bigger than 3 feet and I don't have a mile, you insensitive clod!
Admin
shivers- if you weren't being sarcastic I would be very frightened.
Last time I checked well over 5.5 billion people used metric. I hope you like being in a club where you're the only member. Well, other then Burma and Liberia. But they don't count.
Once we colonize other planets there will develop a metric-style time system.
Admin
Oh TopCod3r, where art thou?
Admin
I hear that topcoder's account was banned...
Admin
Any time unit other then second is a convience unit... the second is the official SI unit for time-measurement.
Both the day and the year measure cycles, but they are not the official units for time and indeed depend on the planet you happen to be on.
Admin
Admin
There is an unfortunate inability to change the number of days it takes for a planet to revolve around its star, and this leads to some people's unnecessary hacks in the calendar to make everything fit. What we really need is either:
a) a planet that revolves around its star in a power of 10 days
or
b) to count all future time with systems base-x, based on this one thing we can't change. Of course, this still creates a problem if the number of days in a year is not an integer. And if it's a prime number, that doesn't really leave us much choice as to subdividing the year into months or weeks, etc.
Admin
I come from the UK - we like to use imperial for milk, beer and speed limits. Everything else is metric. Not sure how we ended up like this...
Admin
Didn't you hear, 12 is the new 10.
Admin
100+ lines of code for something that can be done in nearly 5 lines (as long as you don't mind hard-coding the fact that there are 5 days in a work week). This is a common practice when you are dealing with people who want to keep their jobs secure. Here is one way to correct the code:
Admin
I am a star. My co-workers revolve around me. Redefine the year!
Admin
Don't get this as an anti imperial system rant but why is 12inch=1foot, 3feet=1yard, 1760yards=1mile more intuitive than simple multiplication (or division) by 10 for each prefix? Also there are many people using the metric system, probably more than the ones using the imperial one: most of Europe, most of Asia (if I'm not mistaken China too which really boosts the number), probably most of South America etc. Imperial is used only in the former British Empire countries which don't amount to a large portion of the world population.
Anyway that is irrelevant to the idea of a non-legacy time measurement system. The current units are very well rooted in the systems and minds of today and it would be very hard and pointless to change them. I see no problem in having 24hour days, 60minute hours and 60 second minutes. Computers can calculate those pretty easily and it's not really hard for humans either. The real problem is the fact that the year has 365.24219 days. Also another issue is that the Earth doesn't have a constant angular speed around the Sun which makes finding the current time even harder. The orbit also shifts each year, the Polar Axis is rotating and oscillating and the Earth's spin is slowly decreasing. All those give huge headaches to people that need to calculate the day and time of day but the units of measurement are really of no importance.
Admin
Because those are the important bits.
Admin
The French tried a decimal time system--it didn't catch on.
Admin
Errr... if we used hex it would still be 100 hours in a day, 10 minutes in an hour and 10 seconds in a minute (as long as you used both base 16 time and base 16 numbering).
Admin
Just as I suspected -- it's a hardware issue.
Admin
Reminds me of the former German chancellor Helmut Kohl, who apparently got so fat he had two smaller chancellors orbiting him. Or so they say...
Captcha: usitas, the usual...
Admin
Although that still doesn't explain the milk. Perhaps the metric system in England is simply lactose intolerant.
Admin
Most of this conversation is irrelevant - once they introduce the metric calendar in 2020 it's all going to change. 20 hour days and 10 day weeks, with a totally different definition for the 'metric hour' and 'metric second'. It's going to be a nightmare, I'm truly dreading it.
Admin
What? No XML ?!!!
Admin
If they keep the 40 hour work week I'm all for it.
Admin
I also heard TopCod3r got banned. If you go back and look at some previous articles it seems like all of his comments got deleted. It is almost like he never existed now.
Why? I didn't think there was anything wrong with them, and have seen much, much worse comments on here, including some that have made it difficult for me to be able to read at work (due to language or offensive remarks). It seems the only moderation being done is to make sure someone else isn't TOO funny as to upstage Alex.
Admin
The trick is going to be working out a simpler means of compensating for time dilation. Because, you know, traveling fast underclocks your computer... and you, as well.
Admin
What? Why? I have started reading the comment threads almost exclusively these days to see TopCod3r's response!
Admin
TopCod3r post doubleplusungood refs unperson. unbellyfill dwtf too luaghwise. rewrite fullwise upsub anteposting.
Admin
Take all the rocket engines on Earth, put them on one side of the planet (the "back" to speed up, the "front" to slow down) and fire them up (compensating for rotation) long enough to speed up [slow down] the planet until a year is a power of ten days long.
Man prevails over nature and alters his environment.
Problem solved.
Admin
Well, because a pint is the perfect amount of beer to be served in one glass.
Admin
Admin
The whole reason there are 60 minutes in an hour, 24 hours in a day, 12 inches in a foot, etc is that the aliens who originally colonized earth had 6 fingers on each hand.
Admin
O RLY?
My milk comes in 500 ml cartons, which is lessthan a pint. Sure, they charge me as if it's a pint, but it's not really.
Admin
Admin
I'd make a snarky comment about this, but only last Friday I found myself putting the following comments in one of my code files:
/*
Yes, metaWTFs in my own code. I am rightly ashamed...
Admin
Metric division of the day isn't so hard, as long as you keep a day defined as the length of one rotation of the planet on its axis. In fact, you could design a near-perfect calendar under a metric scheme. Dividing a year into days will almost always require minor hacks (see: leap year).
The only problem with colonizing a planet with a longer (or shorter) day is an evolutionary one; assuming a sleep cycle of 16 Earth hours awake, 8 Earth hours asleep, the first settlers will be dealing with the mother of all jet lag.
This discussion reminds me of an old Doctor Who (Tom Baker years) which featured a planet with winters that were roughly 16 earth years (I may be off on the actual number). If humanity ever colonizes such a place, I hope they can recruit plenty of astronauts from upstate New York.