|
Initialization Function Or Constructor - Which is Better? |
|
Jan 30, 2012 - 9:38 PM - by Karpov2007
|
We decided to write several small posts on how C/C++ programmers play with fire without knowing it. The first post will be devoted to an attempt to explicitly call a constructor.
Programmers are lazy creatures. That's why they tend to solve a task using minimal code amount. This aim is praiseworthy and good. But the main point is not get too involved in the process and stop at the right time.
For example, programmers are too lazy to create a single initialization function in a class so that it could be called from various constructors later. They think: "What for do I need an extra function? I'd rather call one constructor from the other". Unfortunately, sometimes programmers can't solve even such a... [Read More]
|
|
0 Replies | 77 Views
|
Wordpress Security Tips & Plugins |
|
Jan 30, 2012 - 8:33 AM - by shabbir
|
WordPress out of the box is pretty secure still if you follow few simple security tips and install few security plugins, it can make your Wordpress lot more secure.
Choose Secure Passwords
Public always knows your Wordpress username because of your author profile on your blog and so this means you need to choose a password that is lot more secure. For a "secure password," use at least ten to twelve characters long passwords that contain at least one upper-case letter and one symbol, such as # or !.
Blog From Safe System
Don’t login to your Wordpress dashboard and admin area... [Read More]
|
|
0 Replies | 236 Views
|
Writing Linux Daemon Process In C |
|
Jan 17, 2012 - 1:39 AM - by Trinity
|
What is Dameon Process?
A Daemon process is a process which is not associated with any terminal and hence is supposed to run in background. Since, a daemon process involves background processing, it is recommended it should not include any user interaction. Therefore, it should be clear about its continuous processing not caring to wait for any input or to display any output. However, C programming does not define any such restrictions in its development as such. A daemon process developer should be well aware of its definition and ideal functionality before one starts the programming.
A well known example of a daemon process could be a mail server, which runs... [Read More]
|
|
0 Replies | 678 Views
|
C++ Style TypeCasts |
|
Jan 02, 2012 - 1:27 AM - by Trinity
|
In C-Style typecasting we discussed about type casting and why is it required and how it is used in C programming. C++ has more types of typecasting and an entirely different way to use them.
A point to be noted that C++ typecasting would be mostly described and used in context of classes, as an effect of C++ being object oriented.
Types of C++ TypeCasting
There are following four types of type casting in C++:
Static-cast
Static cast is generally said to be used for... [Read More]
|
|
0 Replies | 792 Views
|
Good Programming Practices - System Calls |
|
Dec 31, 2011 - 12:31 PM - by poornaMoksha
|
This article is the Part-II (Part-I here) of the series where in we are focusing on good coding practices. In the Part-I we discussed the importance of the assert macro/function for detecting and debugging bugs in program. In this part we will focus on good coding practices while dealing with system calls.
Note: As always, we will be discussing everything in the Linux environment.
Working with system calls
There are certain points that one should keep in mind while dealing with system calls. - One should have in and out knowledge of the
... [Read More]
|
|
0 Replies | 691 Views
|
» Article Archives |
| |
Title, Username, & Date |
Last Post |
Replies |
Views |
|
|
Programming with Temporary files in Linux
Dec 30th, 2011 08:50 AM
|
|
0 |
542 |
|
|
C/C++ assert Function
Dec 30th, 2011 08:43 AM
|
|
0 |
584 |
|
getrlimit() and setrlimit() to Control System Resources on Linux
Dec 29th, 2011 08:27 AM
|
|
3 |
459 |
|
Understanding File Accessibility and File Locks with access() and fcntl() functions
Dec 27th, 2011 10:34 PM
|
|
0 |
531 |
|
Developing Linux utility - Part III Displaying Detail File Info
Dec 27th, 2011 06:54 AM
|
|
0 |
496 |
|
Understanding Linux fstat() With Example
Dec 26th, 2011 10:19 PM
|
|
0 |
467 |
|
C-Style TypeCasts
Dec 25th, 2011 04:27 PM
|
|
0 |
610 |
|
Developing Linux Utility - Part II Arranging Output in Alphabetical Order
Dec 24th, 2011 06:15 PM
|
|
0 |
589 |
|
|
Developing Linux Utility like 'ls' in C
Dec 24th, 2011 12:08 PM
|
|
0 |
658 |
|
OpenGL Tutorials for Absolute Beginners
Dec 18th, 2011 07:25 PM
|
|
3 |
959 |
|
How to Reduce Coding Errors when Writing Code - Part 4
Dec 15th, 2011 05:19 PM
|
|
0 |
692 |
|
Faster Webapps with Memcached
Dec 14th, 2011 06:42 PM
|
|
0 |
689 |
|
AJAX jQuery Tutorial - An Introduction
Dec 12th, 2011 06:32 PM
|
|
0 |
840 |
|
Git VCS - Cloning & Workflow
Dec 7th, 2011 04:35 PM
|
|
0 |
806 |
|
Amazon Simple Queue Service
Dec 6th, 2011 02:51 PM
|
|
0 |
780 |
|
Digging C malloc() & free()
Dec 2nd, 2011 10:23 PM
|
|
0 |
1,031 |
|
» Latest Forum Topics |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|