|
ok.
if you work with jQuery the code is intuitive. But the point is, doing the
same in RPG would require knowing procedure pointers. And even there you
can't chain your calls using the object returned from a function. The RPG
version would be a lot more code.
creating an object with properties in javascript is easy to code and easy
to learn. Convert it to a string, convert from string back to an object.
Very simple. In RPG there are the limitations of the language. And then
you have to learn to declare a DS, use qualified, maybe a based pointer,
then dim. Then you need LIKEDS instead of LIKE. And procedure and program
parms have their rules.
here is a swift for loop. Teaching the same in RPG there are simply more
concepts to learn.
let primeNumbers = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31]
for number in primeNumbers {
print("\(number)")
}
yes, I am off of .NET and C#. It remains incredible software, but MSFT is
failing its programmers same as IBM did to us. Swift is a dead ringer for
C#. And APPLE knows how to make money.
View this pluralsight course on Apple's Swift.
https://app.pluralsight.com/library/courses/swift3-fundamentals/table-of-contents
Simply incredible.
On Wed, Jun 28, 2017 at 4:56 PM, Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:
Steve - you are just so full of it sometimes. Why don't you try making a
valid comparison for heavens sake.
There are RPG oriented libraries that would be every bit as easy to use as
this - in fact sometimes a bit more obvious. This for example:
"$(elem).dialog( parms )
.prev(".ui-dialog-titlebar").css("background","yellow");"
Is hardly intuitive is it.
What library are you using? Where's the include or other configuration
details to tie it together? Who wrote catLookup_GetHtm and what are the
parameters about?
I guess we should be grateful that at least you are now on a "isn't json
wonderful" kick instead of "isn't .Net wonderful" - at east it makes a
change.
There doesn't _need_ to be more work for the RPG programmer than for any
other programmer. Arguably, compared with Java for example, there's often a
lot less work.
If you want to argue that learning old-style RPG so that you can be the
next great JDE maintenance programmer is harder than other languages I'd be
more inclined to agree - but it is the fact that those programs were
written before many of the modern capabilities were introduced that makes
the difference. Go look at Javascript from 15 years or so ago and tell me
how easy it is to understand and maintain. i.e. code that was written
before the language added a lot of the features that you now rely on.
I've taught modern RPG to C++, C#, .Net, Basic, COBOL, C, Java, and PHP
programmers. NONE of them have had any problems with the language. Many
(most?) of them learn to appreciate its strengths and use it where
appropriate in their apps.
Jon Paris
www.partner400.com
www.SystemiDeveloper.com
On Jun 28, 2017, at 4:23 PM, Steve Richter <stephenrichter@xxxxxxxxx>wrote:
there is just so much more work the programmer has to do in RPG thanother
languages.wrote:
here is some javascript code. Think of how much RPG would be needed to
code the same thing.
catLookup_GetHtml( lookupSource, prCatNum, function( htmlText )
{
var elem = $(htmlText) ;
var pos = {
my: "left+50 top+50",
at: "left top",
of: elem
} ;
var parms = { height:500,
title:'Select Product Category',
close: dialog_Close,
width:550, position:pos } ;
$(elem).dialog( parms )
.prev(".ui-dialog-titlebar").css("background","yellow");
}) ;
On Wed, Jun 28, 2017 at 4:03 PM, Justin Taylor <JUSTIN@xxxxxxxxxxxxx>
mailing listI was reading a magazine article that was a thinly veiled advertisement--
for a tool to migrate RPG to another language running on i. What really
caught my eye was "any developer can learn and use [language]", with the
implied contrast of "not every developer can learn and use RPG".
I learned RPG a long time ago, and for me it was "falling off a log
easy". What do you guys think, is RPG difficult?
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
To post a message email: RPG400-L@xxxxxxxxxxxxquestions.
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related
Help support midrange.com by shopping at amazon.com with our affiliatelink: http://amzn.to/2dEadiD
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.