Sponsored Content
The Lounge What is on Your Mind? Programming languages polyglots: how many languages you know? Post 302225469 by vbe on Friday 15th of August 2008 01:01:22 PM
Old 08-15-2008
15 years ago I had to do some reverse engineering to rewrite in cobol85 a program written in cobol74...
I have heard a lot about NOT using goto like mad and spaggetti code, but never imagined what it could be like until that nightmare day where I was given thig challenge...
I almost went through depression after a week, and so had the help of the top analyst to play " Train " with me for a an extra week just to understand how the damn thing worked...

To give you an idea the goto started on the first line already, you had 400 lines of code
finishing with stop run on last line...

It took me 6 weeks to rewrite the program and almost 1200 lines of code.
But anyone able to read english can maintain what I wrote, and the reading of the first page you knew what and how it worked.
You just cant imagine how bad you feel when as a confirmed programmer you have been reading 3 pages of code not understanding whats going on and still have not seen the end.

OK I learned ( and forgot..) basic and basic clones PASCAL MANTISSE (Mainframe) COBOL
 

8 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Shell scripting & programming languages

If I want to do high-end 3d animation, what skell scripting languages, and programming languages shoul I learn? If you know any good resources for learning these languages they would be appreciated. (1 Reply)
Discussion started by: aloysius1001
1 Replies

2. UNIX for Advanced & Expert Users

Operating System and Programming languages

I'm trying to create an operating system. Just as a small hobby, it will not be anything big I am trying to get some practice. Does anyone reccomend a certain programming language because I dont know which one to use. Any help please? (2 Replies)
Discussion started by: jacx2
2 Replies

3. UNIX for Dummies Questions & Answers

Programming/Scripting Languages To Learn

Which languages would, in the long run, be best to learn on a UNIX environment for kernel work, every day programs, and overall UNIX programming? I've been learning C for over a year now (which I'm pretty confident with) and decided I want to look into some other languages. I'll mainly be... (1 Reply)
Discussion started by: tjinr
1 Replies

4. Shell Programming and Scripting

output in different languages

hello, i have to change a lot of shell scripts for one reason : the output in a script should be done in different languages. for example: echo "this is a test" and "this is a test" should be printed out in language for an example: german,italian and so. i saw a tool "gettext" ,... (2 Replies)
Discussion started by: bora99
2 Replies

5. Shell Programming and Scripting

bash and languages

Hi everyone, First of all, i dont know what id do without this forum its been such a great help:) so a big thankyou to all, anyway i have a simple question, if i wrote a scrpt in english would it work on another machine with a different language, or do i have to put something in the script to say... (9 Replies)
Discussion started by: dave123
9 Replies

6. UNIX for Advanced & Expert Users

How to export/link Control_m with another programming languages

Hello All. Everyday at work I have to fill a big .xls spreadsheet with process chains start and end time information. The thing is that it takes too long and a lot of boring work. :( I was wondering if I could link this with a tool in java that would export this information into a .xls... (1 Reply)
Discussion started by: pingosa
1 Replies

7. Web Development

What Web Development languages should i learn?

I am learning Web Development, so far i am learning html,xhtml, css, java script.... What I want to know is what other Web Development languages should i learn? (1 Reply)
Discussion started by: Anna Hussie
1 Replies

8. What is on Your Mind?

How can I learn computer programming languages on my own?

I would love the idea to develop games. How can I teach myself computer programming? What programs or software must I use? I have the new iMac? (5 Replies)
Discussion started by: Anna Hussie
5 Replies
Mojolicious::Plugin::I18N(3pm)				User Contributed Perl Documentation			    Mojolicious::Plugin::I18N(3pm)

NAME
Mojolicious::Plugin::I18N - Internationalization plugin SYNOPSIS
# Mojolicious $self->plugin('I18N'); % languages 'de'; %=l 'hello' # Mojolicious::Lite plugin I18N => {namespace => 'MyApp::I18N'}; %=l 'hello' # Lexicon package MyApp::I18N::de; use Mojo::Base 'MyApp::I18N'; our %Lexicon = (hello => 'hallo'); 1; DESCRIPTION
Mojolicious::Plugin::I18N adds Locale::Maketext support to Mojolicious. All you have to do besides using this plugin is to add as many lexicon classes as you need. Languages can usually be detected automatically from the "Accept-Languages" request header. This plugin can save a lot of typing, since it will generate the following code by default. # $self->plugin('I18N'); package MyApp::I18N; use base 'Locale::Maketext'; package MyApp::I18N::en; use base 'MyApp::I18N'; our %Lexicon = (_AUTO => 1); 1; Namespace and default language of generated code are affected by their respective options. The default lexicon class will only be generated if it doesn't already exist. The code of this plugin is a good example for learning to build new plugins, you're welcome to fork it. OPTIONS
Mojolicious::Plugin::I18N supports the following options. "default" # Mojolicious::Lite plugin I18N => {default => 'en'}; Default language, defaults to "en". "namespace" # Mojolicious::Lite plugin I18N => {namespace => 'MyApp::I18N'}; Lexicon namespace, defaults to the application class followed by "::I18N". HELPERS
Mojolicious::Plugin::I18N implements the following helpers. "l" %=l 'hello' $self->l('hello'); Translate sentence. "languages" % languages 'de'; $self->languages('de'); Change languages. METHODS
Mojolicious::Plugin::I18N inherits all methods from Mojolicious::Plugin and implements the following new ones. "register" $plugin->register($app, $conf); Register plugin hooks and helpers in Mojolicious application. SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojolicious::Plugin::I18N(3pm)
All times are GMT -4. The time now is 09:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy