browse by category or date

Another reminder on what is Stay Home Notice (SHN):

[Sent by Gov.sg – 21 Feb]

COVID-19: What should I do if I stay with someone issued with a Stay-Home Notice (SHN)
👥 Avoid close and sustained contact, limit time spent together at common areas
🌬Ensure proper ventilation of room/apartment
🙅‍♀ Avoid having visitors
🍴 Avoid sharing food, crockery, utensils and other personal hygiene items
🧼 Maintain good personal hygiene at all times

SG United 🤝
A one-stop portal to contribute to community efforts, such as volunteering to help those affected by the virus
More: www.sgunited.gov.sg

Update on number of confirmed and discharged cases:

[Sent by Gov.sg]

COVID-19: 21 Feb Update

As of 12pm:
New cases: 1
Total confirmed: 86
Discharged today: 10
Total discharged: 47
Total still in hospital: 39

Most in hospital are stable or improving. 5 are in the intensive care unit.

Today’s new case, a 24 year-old male Singapore Citizen, is linked to a previous case.

More: Go.gov.sg/moh21feb

Stay safe everyone!

GD Star Rating
loading...

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Possibly relevant:

Guidelines on workplaces with suspected or confirmed cases:

COVID-19: What should employers do if there are suspected or confirmed cases at the workplace?
MOM’s guidelines say:

For suspect cases, employers should:
👀 Identify close contacts
📝 Notify others of test outcomes
👨‍⚕ Get employees to monitor health, adopt good personal hygiene, see a doctor immediately and stay home if unwell

For confirmed cases, employers should:
🔁 Cooperate with contact tracing officers from MOH
⛔ Vacate and cordon-off the area where the case worked; no need to evacuate floor/building if there’s no sustained and close contact
🧽 Clean and disinfect thoroughly: go.gov.sg/NEAadvisory
💵 Consider providing additional medical coverage

More: go.gov.sg/covid19-workplace

Updates on number of confirmed and recovery cases:

[Sent by Gov.sg]

COVID-19: 20 Feb Update

As of 12pm:
New cases: 1
Total confirmed: 85
Discharged today: 3
Total discharged: 37
Total still in hospital: 48

Most in hospital are stable or improving. 4 remain in ICU.

Today’s new case is a Chinese national, Singapore work pass holder.

Contact tracing is underway to establish any links to previous cases or travel history to China.

More: Go.gov.sg/moh20feb

Thanking our unsung heroes keeping Singapore safe:
Go.gov.sg/togetherwecan

Stay safe and vigilant everyone!

GD Star Rating
loading...

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Possibly relevant:

This is a continuation of my previous post, where I am trying to complete reading this book:

So, C# 7.0 also introduce pattern matching in switch statement. Consider below example function:

public static string detectParam(object o) {
	switch (o) {
		case int i when i > 10:
			return "Big Integer";
		case int i:
			return "Integer";
		case double d when d > 10:
			return "Big Double";
		case double d:
			return "Double";
		case string s:
			return "String";
		default:
			return "Object";
		case null:
			return "Null";
	}
}

We can then test the output of the function:

public static void Main()
{
	object o = 15;
	Console.WriteLine($"{o} is {detectParam(o)}"); // 15 is Big Integer
	
	object o1 = 9;
	Console.WriteLine($"{o1} is {detectParam(o1)}"); // 9 is Integer
	
	object o2 = 15.1;
	Console.WriteLine($"{o2} is {detectParam(o2)}"); // 15.1 is Big Double
	
	object o3 = 9.9;
	Console.WriteLine($"{o3} is {detectParam(o3)}"); // 9.9 is Double
	
	object o4 = "15";
	Console.WriteLine($"{o4} is {detectParam(o4)}"); // 15 is String
	
	object o5 = new Object();
	Console.WriteLine($"{o5} is {detectParam(o5)}"); // System.Object is Object
	
	object o6 = null;
	Console.WriteLine($"{o6} is {detectParam(o6)}"); // is Null
}

We can actually shorten the switch statement even further:

public static string detectParam(object o) {
    var result = o switch {
		int i when i > 10 => "Big Integer",
		int i => "Integer",
		double d when d > 10 => "Big Double",
		double d => "Double",
		string s => "String",		
		null => "Null",
		_ => "Object"
	};
	return result;
}
GD Star Rating
loading...

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Possibly relevant: