Click here to Skip to main content
15,913,280 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: We all eat... Pin
908236523-Dec-15 4:52
908236523-Dec-15 4:52 
GeneralWSO FOSW 23/12/2015 Pin
Raje_22-Dec-15 20:40
Raje_22-Dec-15 20:40 
GeneralRe: WSO FOSW 23/12/2015 Pin
Kornfeld Eliyahu Peter22-Dec-15 21:05
professionalKornfeld Eliyahu Peter22-Dec-15 21:05 
GeneralRe: WSO FOSW 23/12/2015 Pin
Raje_22-Dec-15 21:19
Raje_22-Dec-15 21:19 
JokeHahaha Pin
Kornfeld Eliyahu Peter22-Dec-15 20:35
professionalKornfeld Eliyahu Peter22-Dec-15 20:35 
GeneralRe: Hahaha Pin
Duncan Edwards Jones22-Dec-15 20:44
professionalDuncan Edwards Jones22-Dec-15 20:44 
GeneralRe: Hahaha Pin
chriselst22-Dec-15 22:02
professionalchriselst22-Dec-15 22:02 
GeneralRe: Hahaha Pin
jsc4223-Dec-15 3:58
professionaljsc4223-Dec-15 3:58 
I inherited a system like that. I rewrote it to generate public holidays for multiple countries in perpetuity. Unfortunately, it became a company mandated product used globally. Why was that unfortunate? Because they implemented a forked version that predated my mods and still required manual annual table updates. When I left the company in 2013, it was still waiting the manual updates for 2004!

P.S. I know that this is not a coding forum, but I have a nice algorithm for Easter that I have used since the mid 1970s. The version below was transpiled to JS in the late 1990s and is still in use today. Do not repost this to the Weird and Wonderful (aka Hall of Shame) forum - the unmeaningful variable names are from the original unoptimised version that I plagiarised based it on.

JavaScript
//	-------------------------------------------------------------------------
//
//	Date of Easter Sunday in a given year
if	(! Date.prototype.Easter)
{
	Date.prototype.Easter	= 
		function()
		{
			// Algorithm optimised from 'Puzzles and Paradoxes' by T H O'Beirne 
			// (Oxford University Press, London (c) 1965)
			var	year	= this.getFullYear();
			var	a	= year % 19;
			var	b	= Math.floor(year / 100);
			var	c	= year % 100;
			var	d	= Math.floor(b / 4);
			var	h	= (19 * a + b - d - Math.floor((8 * b + 13) / 25) + 15) % 30;
			var	mu	= Math.floor((a + 11 * h) / 319) - h;
			var	lambda	= (2 * (b - d * 4) + Math.floor(c / 4) * 6 - c + mu + 32) % 7 - mu;
			var	month	= Math.floor((lambda + 90) / 25);

			return	new Date(year, month - 1, (lambda + month + 19) % 32);
		};	// Date.prototype.Easter

	Date.Easter	= function(optYear) { return (new Date(optYear)).Easter(); };
}	// if		
//
//	-------------------------------------------------------------------------

GeneralRe: Hahaha Pin
bVagadishnu23-Dec-15 6:22
bVagadishnu23-Dec-15 6:22 
GeneralRe: Hahaha Pin
Nicholas Marty29-Dec-15 4:41
professionalNicholas Marty29-Dec-15 4:41 
GeneralRe: Hahaha Pin
Marc Clifton23-Dec-15 2:14
mvaMarc Clifton23-Dec-15 2:14 
GeneralRe: Hahaha Pin
H.Brydon23-Dec-15 8:20
professionalH.Brydon23-Dec-15 8:20 
GeneralHappy Holidays and Merry Christmas Pin
qptopm22-Dec-15 20:27
qptopm22-Dec-15 20:27 
GeneralMerry Christmas and Happy New Year Pin
Arthur V. Ratz22-Dec-15 20:15
professionalArthur V. Ratz22-Dec-15 20:15 
GeneralWishing you all a Merry Christmas Pin
Dominic Burford22-Dec-15 19:21
professionalDominic Burford22-Dec-15 19:21 
GeneralRe: Wishing you all a Merry Christmas Pin
Snesh Prajapati22-Dec-15 19:40
professionalSnesh Prajapati22-Dec-15 19:40 
GeneralUI Design Question Pin
_Maxxx_22-Dec-15 13:33
professional_Maxxx_22-Dec-15 13:33 
GeneralRe: UI Design Question Pin
Richard Andrew x6422-Dec-15 13:42
professionalRichard Andrew x6422-Dec-15 13:42 
GeneralRe: UI Design Question Pin
_Maxxx_22-Dec-15 13:47
professional_Maxxx_22-Dec-15 13:47 
GeneralRe: UI Design Question Pin
Mycroft Holmes22-Dec-15 16:52
professionalMycroft Holmes22-Dec-15 16:52 
GeneralRe: UI Design Question Pin
_Maxxx_22-Dec-15 16:54
professional_Maxxx_22-Dec-15 16:54 
GeneralRe: UI Design Question Pin
Mycroft Holmes22-Dec-15 20:35
professionalMycroft Holmes22-Dec-15 20:35 
GeneralRe: UI Design Question Pin
BillWoodruff22-Dec-15 18:43
professionalBillWoodruff22-Dec-15 18:43 
GeneralRe: UI Design Question Pin
_Maxxx_22-Dec-15 19:07
professional_Maxxx_22-Dec-15 19:07 
GeneralRe: UI Design Question Pin
BillWoodruff22-Dec-15 19:49
professionalBillWoodruff22-Dec-15 19:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.