Sponsored Content
Full Discussion: How to write good code
The Lounge What is on Your Mind? How to write good code Post 302486113 by pludi on Friday 7th of January 2011 03:58:06 AM
Old 01-07-2011
How to write good code

Too good, and (sadly) too real to pass over: xkcd: Good Code
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

need help to write perl code

I have 2 files , one is master file and another file i am genearting which contains Number of fails for all host & version. The first file is master file which contains 2 column, Test Case name and Product Name: daily/DB/attach/attach_redundancy.exp: YRS daily/DB/help/help.exp: ... (0 Replies)
Discussion started by: getdpg
0 Replies

2. Programming

How to write a code in C to search a file

Dear All, Plz give me some code that how can I search a file through a C program file may be in Present Directory or in its Sub-Directories and it should support Linux Platform. :mad: (6 Replies)
Discussion started by: krishna_sicsr
6 Replies

3. Programming

Write the source code for messenger

I have a few questions for the ones who know. I started to "learn" for a project.I wanna write the source code for a messenger like Gaim.I started learning about ncurses , GTK+ and UNIX socket programming.But I'm a bit stucked. Most of the books' I get , like : The Art of Unix programming ,... (10 Replies)
Discussion started by: !_30
10 Replies

4. Shell Programming and Scripting

how to write pseudo code

hi, I'm doing some project, I selected shell script as programming language, I need to write pseudo code for my script, can anyone tell me how to write that.......?:) (1 Reply)
Discussion started by: hanaveenkumar
1 Replies

5. IP Networking

read/write,write/write lock with smbclient fails

Hi, We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies

6. Programming

Code to write the heap into a file

Hi everybody, i am doing a project on checkpoints, where in i need to write the heap area into a file. I have got a code which i need to analyze, also asked in the forum under solaris https://www.unix.com/solaris/135483-libckpt.html The heap is implemented as a link list given by the structure... (2 Replies)
Discussion started by: holla4ni
2 Replies

7. UNIX for Dummies Questions & Answers

How to write code for a Logging Event?

How do I know what parts of the application to monitor and what means do I use to get this data? Can I use proc? What interactions are important and how do I view them?I would be more descriptive but I have not a clue. Thanks in... (18 Replies)
Discussion started by: theKbStockpiler
18 Replies
Perl::Critic::Policy::ControlStructures::ProhibitDeepNesUser)Contributed Perl DocumenPerl::Critic::Policy::ControlStructures::ProhibitDeepNests(3)

NAME
Perl::Critic::Policy::ControlStructures::ProhibitDeepNests - Don't write deeply nested loops and conditionals. AFFILIATION
This Policy is part of the core Perl::Critic distribution. DESCRIPTION
Deeply nested code is often hard to understand and may be a sign that it needs to be refactored. There are several good books on how to refactor code. I like Martin Fowler's "Refactoring: Improving The Design of Existing Code". CONFIGURATION
The maximum number of nested control structures can be configured via a value for "max_nests" in a .perlcriticrc file. Each for-loop, if- else, while, and until block is counted as one nest. Postfix forms of these constructs are not counted. The default maximum is 5. Customization in a .perlcriticrc file looks like this: [ControlStructures::ProhibitDeepNests] max_nests = 3 AUTHOR
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com> COPYRIGHT
Copyright (c) 2005-2011 Imaginative Software Systems. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module. perl v5.16.3 2014-06-09 Perl::Critic::Policy::ControlStructures::ProhibitDeepNests(3)
All times are GMT -4. The time now is 04:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy