Sponsored Content
The Lounge What is on Your Mind? The poorest of computer users are programmers... Post 303041958 by wisecracker on Monday 9th of December 2019 06:43:10 AM
Old 12-09-2019
The poorest of computer users are programmers...

Hi guys and gals...
A mildly humourous blog from 2013, but I come into this category... ;oDD

Languager: The Poorest Computer Users are Programmers
These 3 Users Gave Thanks to wisecracker For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Perl - Programmers manual online?

I have never programmed in Perl (insert laughter, mock, etc. here ____) - so I need a sort of "Programming in Perl" covering the basics. I now have two Perl books, one is a 5 volume Unix resource kit, the other is "Mastering algorithms with Perl" - none of them explains how to produce "hello,... (11 Replies)
Discussion started by: AtleRamsli
11 Replies

2. News, Links, Events and Announcements

Good Essays For Programmers

Check the essays out. http://www.paulgraham.com (0 Replies)
Discussion started by: photon
0 Replies

3. What is on Your Mind?

Suggested venues to look for advanced C programmers

Can someone suggest any online venues to assist in recruiting a senior C programmer (looking for someone interested in working on kerberos code). I've tried a bunch of the open source and higher ed lists (this is for Univ. of Michigan). The commercial services such as Dice or monster yield a... (7 Replies)
Discussion started by: painman
7 Replies

4. Solaris

To restrict the users not to change the passwords for NIS users

Hi All, How to restrict the NIS users not to change their passwords in for NIS users?? and my NIS user is unable to login to at client location what could be the problem for this ? Any body can help me. Thanks in advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies

5. Shell Programming and Scripting

Shell quoting rules for other languages programmers

I've seen so many times that programmers were confused about shell quoting and white spaces interpretation, that I decided to investigate that problem deeper. And my conclusion is that quoting in shells is very different from other programming languages. Programmers who have bigger experience in... (6 Replies)
Discussion started by: wyderkat
6 Replies

6. Shell Programming and Scripting

Create multiple users with individual passwords to users

hi, i am new to shell scripts i write a shell script to create multiple users but i need to give passwords to that users while creating users, command to write this script (1 Reply)
Discussion started by: DONFOX
1 Replies

7. Programming

Hello UNIX programmers

i have MOTIF installed X11 a easy program is saved as hello.c there is the following message where can i get the X11/intrinsic.h , file ??? need help to compile my system : MX-16 Linux Debian Jessie / i386 hans@mx1:~/Documents $ cc push.c -o push -lXm -lXt -lX11 In file included from... (0 Replies)
Discussion started by: Zabo
0 Replies

8. Forum Support Area for Unregistered Users & Account Problems

Trojan is detected when I visit Programmers forum

When I visit Programmers forum my ESET Nod32 detects TrojanDownloader.Pegel.BH.trojan I don't know when it started, as I visited the site today after staying off-line a few days. (2 Replies)
Discussion started by: migurus
2 Replies

9. What is on Your Mind?

Multics Systems Programmers Manual as of 1969-04-01, comprising 996 PDF Files

While working on my current "UNIX history project" I ran across this: Jerry Saltzer created an online scanned copy of the Multics Systems Programmers' Manual (MSPM) in this directory. Based on the 1969-04-01 MSPM, the repo comprising 996 PDF files. In order to help preserver the MSPM, ... (1 Reply)
Discussion started by: Neo
1 Replies
Class::Load(3)						User Contributed Perl Documentation					    Class::Load(3)

NAME
Class::Load - a working (require "Class::Name") and more VERSION
version 0.20 SYNOPSIS
use Class::Load ':all'; try_load_class('Class::Name') or plan skip_all => "Class::Name required to run these tests"; load_class('Class::Name'); is_class_loaded('Class::Name'); my $baseclass = load_optional_class('Class::Name::MightExist') ? 'Class::Name::MightExist' : 'Class::Name::Default'; DESCRIPTION
"require EXPR" only accepts "Class/Name.pm" style module names, not "Class::Name". How frustrating! For that, we provide "load_class 'Class::Name'". It's often useful to test whether a module can be loaded, instead of throwing an error when it's not available. For that, we provide "try_load_class 'Class::Name'". Finally, sometimes we need to know whether a particular class has been loaded. Asking %INC is an option, but that will miss inner packages and any class for which the filename does not correspond to the package name. For that, we provide "is_class_loaded 'Class::Name'". FUNCTIONS
load_class Class::Name, \%options "load_class" will load "Class::Name" or throw an error, much like "require". If "Class::Name" is already loaded (checked with "is_class_loaded") then it will not try to load the class. This is useful when you have inner packages which "require" does not check. The %options hash currently accepts one key, "-version". If you specify a version, then this subroutine will call "Class::Name->VERSION( $options{-version} )" internally, which will throw an error if the class's version is not equal to or greater than the version you requested. This method will return the name of the class on success. try_load_class Class::Name, \%options -> (0|1, error message) Returns 1 if the class was loaded, 0 if it was not. If the class was not loaded, the error will be returned as a second return value in list context. Again, if "Class::Name" is already loaded (checked with "is_class_loaded") then it will not try to load the class. This is useful when you have inner packages which "require" does not check. Like "load_class", you can pass a "-version" in %options. If the version is not sufficient, then this subroutine will return false. is_class_loaded Class::Name, \%options -> 0|1 This uses a number of heuristics to determine if the class "Class::Name" is loaded. There heuristics were taken from Class::MOP's old pure- perl implementation. Like "load_class", you can pass a "-version" in %options. If the version is not sufficient, then this subroutine will return false. load_first_existing_class Class::Name, \%options, ... This attempts to load the first loadable class in the list of classes given. Each class name can be followed by an options hash reference. If any one of the classes loads and passes the optional version check, that class name will be returned. If none of the classes can be loaded (or none pass their version check), then an error will be thrown. If, when attempting to load a class, it fails to load because of a syntax error, then an error will be thrown immediately. load_optional_class Class::Name, \%options -> 0|1 "load_optional_class" is a lot like "try_load_class", but also a lot like "load_class". If the class exists, and it works, then it will return 1. If you specify a version in %options, then the version check must succeed or it will return 0. If the class doesn't exist, and it appears to not exist on disk either, it will return 0. If the class exists on disk, but loading from disk results in an error ( i.e.: a syntax error ), then it will "croak" with that error. This is useful for using if you want a fallback module system, i.e.: my $class = load_optional_class($foo) ? $foo : $default; That way, if $foo does exist, but can't be loaded due to error, you won't get the behaviour of it simply not existing. SEE ALSO
http://blog.fox.geek.nz/2010/11/searching-design-spec-for-ultimate.html <http://blog.fox.geek.nz/2010/11/searching-design-spec-for- ultimate.html> This blog post is a good overview of the current state of the existing modules for loading other modules in various ways. http://blog.fox.geek.nz/2010/11/handling-optional-requirements-with.html <http://blog.fox.geek.nz/2010/11/handling-optional-requirements- with.html> This blog post describes how to handle optional modules with Class::Load. <http://d.hatena.ne.jp/tokuhirom/20110202/1296598578> This Japanese blog post describes why DBIx::Skinny now uses Class::Load over its competitors. Moose, Jifty, Prophet, etc This module was designed to be used anywhere you have "if (eval "require $module"; 1)", which occurs in many large projects. AUTHOR
Shawn M Moore <sartak at bestpractical.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Shawn M Moore. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.16.2 2012-07-15 Class::Load(3)
All times are GMT -4. The time now is 07:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy