Skip to content

Mikux

A blog of my programming experience

Don’t use C++ exception specifications

Posted on 2010-04-272016-10-31

Exception specifications should be very familiar to Java programmers. Here is an example: class MyException extends Exception { } class Foo { void abc(int x) throws MyException { if (x < 0) throw new MyException(); } void def() throws MyException { abc(3);…

Posted in Programming Tagged c++1 Comment on Don’t use C++ exception specifications

Template pattern v.s. Interface pattern

Posted on 2010-03-092016-10-31

As a library programmer, the decision between using templates or using inheritance may be a difficult decision. Everyone wants their libraries to be generic. Which pattern is better? Template pattern Templates allow you to write code that does the same thing on…

Posted in Programming Tagged c++ Leave a Comment on Template pattern v.s. Interface pattern

Java is NOT my favourite programming language

Posted on 2010-02-192016-06-14

I dislike Java very much, mainly due to its lack of features: Object model Objects and values In C++, a primitive variable is an object, a class variable is an object, a pointer variable is an object, everything that has an address,…

Posted in Programming Tagged java Leave a Comment on Java is NOT my favourite programming language

A definite killer of UN*X systems

Posted on 2010-02-082010-11-18

UN*X systems are commonly known for their stability, reliability and robustness. However, you can make these systems unusable by running the following program. Here’s the pseudocode: while true fork Fork is a system call in UN*X to copy the running process. If…

Posted in OSes Tagged linux, unix1 Comment on A definite killer of UN*X systems

Preventing OOM killer on Linux

Posted on 2010-02-052010-11-18

Have you ever experienced sudden crash of an application on Linux? Most people have. The most common reason of a crash is segmentation fault but this is not the subject of this article. Here, I’ll talk about how Linux does when memory…

Posted in OSes Tagged linux, unix1 Comment on Preventing OOM killer on Linux

XHTML+SVG+Javascript: Say goodbye to Flash.

Posted on 2010-01-162016-10-31

In the past, people used Adobe Flash to create animation on web. These animation are distributed in .swf format and referenced by the HTML. However, there is a huge problem: none of the open-source free players plays Flash well now so it’s…

Posted in Programming Tagged html, javascript, svg, xhtml Leave a Comment on XHTML+SVG+Javascript: Say goodbye to Flash.

HTML? XHTML? Standards and compatibility

Posted on 2010-01-092010-11-18

Pass the 10 most popular sites to http://validator.w3.org/ and see the results: Page Document type HTTP Content-Type Errors Warnings Google HTML 5 text/html 48 2 Facebook XHTML 1.0 Strict text/html 39 0 YouTube HTML 4.01 Transitional text/html 154 52 Yahoo! HTML 4.01…

Posted in Programming Tagged html, xhtml4 Comments on HTML? XHTML? Standards and compatibility

PHP: “Hypertext” Processor?

Posted on 2010-01-082010-11-18

PHP stands for “PHP: Hypertext Preprocessor” which is designed for processing hypertexts (HTML). This can be seen by its dominant usage: running on a web server as a shared module/CGI script and output “text/html” documents. PHP is the primary mean of generating…

Posted in Programming Tagged php Leave a Comment on PHP: “Hypertext” Processor?

Hello world!

Posted on 2009-12-112009-12-11

Welcome to this brand-new blog. I will post articles about computing, from general topics to specific. I hope that you’ll enjoy reading my articles.

Posted in Uncategorized Leave a Comment on Hello world!

Posts navigation

Previous 1 … 3 4

Categories

  • Applications
  • Network
  • OSes
  • Programming
  • Uncategorized

Archives

  • December 2022 (1)
  • November 2022 (1)
  • May 2022 (1)
  • April 2022 (1)
  • March 2022 (1)
  • November 2021 (1)
  • April 2021 (1)
  • April 2020 (2)
  • February 2020 (1)
  • March 2019 (1)
  • November 2018 (1)
  • April 2018 (1)
  • April 2017 (1)
  • February 2017 (1)
  • December 2016 (1)
  • April 2016 (1)
  • August 2015 (1)
  • February 2015 (1)
  • November 2014 (1)
  • November 2013 (1)
  • October 2013 (1)
  • July 2013 (1)
  • December 2012 (1)
  • December 2011 (1)
  • November 2011 (1)
  • September 2011 (1)
  • November 2010 (1)
  • October 2010 (1)
  • June 2010 (1)
  • April 2010 (1)
  • March 2010 (1)
  • February 2010 (3)
  • January 2010 (3)
  • December 2009 (1)

Blogroll

  • Development Blog
  • Documentation
  • MÄ«Kl
  • Plugins
  • Suggest Ideas
  • Support Forum
  • Themes
  • WordPress Planet

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
All rights reserved © Mikux Theme by Seos Themes