473,883 Members | 1,684 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dollar sign ($) on foriegn keyboards? (prothon)

We are considering switching to the dollar sign ($) for self, instead of the
period ( . ) we are using now in Prothon. Ruby uses the at-sign (@) for
self, but our new usage of self also includes replacing the period for some
attribute references, as in obj$func() versus obj.func(), and too many
programs treat that as an email address and screw it up. Also the S in the
symbol $ reminds one of the S in $elf.

Can people from outside the U.S. tell me if typing the dollar sign often
would be a problem in writing code? Is it available and somewhat easy to
type on international keyboards?
Jul 18 '05 #1
29 22221
Mark Hahn wrote:
Can people from outside the U.S. tell me if typing the dollar sign often
would be a problem in writing code? Is it available and somewhat easy to
type on international keyboards?


Belgian azerty: no problem. Easier to type, in fact, than several other
symbols that are frequently used while programming, e.g. []{}_.

--
"Codito ergo sum"
Roel Schroeven
Jul 18 '05 #2
LB

"
Can people from outside the U.S. tell me if typing the dollar sign often
would be a problem in writing code? Is it available and somewhat easy to
type on international keyboards?

$ is a shift-key on italian standard keyboard.

LB
Jul 18 '05 #3
Mark Hahn wrote:
Can people from outside the U.S. tell me if typing the dollar sign often
would be a problem in writing code? Is it available and somewhat easy to
type on international keyboards?


Finnish/Swedish keyboards: No problems (AltGr + 4)

-Petter-
Jul 18 '05 #4
LB wrote:
$ is a shift-key on italian standard keyboard.


Also on german standard keyboard.

Mit freundlichen Gruessen,

Peter Maas

--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Hubert-Wienen-Str. 24
Tel +49-241-93878-0 Fax +49-241-93878-20 eMail pe********@mplu sr.de
-------------------------------------------------------------------
Jul 18 '05 #5
On Tue, 20 Apr 2004 10:04:35 +0200, Peter Maas <pe********@mpl usr.de> wrote:
LB wrote:
$ is a shift-key on italian standard keyboard.


Also on german standard keyboard.


Just as on the Japanese notebook in front of me.

Hans-Peter Schröcker
Jul 18 '05 #6
Mark Hahn wrote:
We are considering switching to the dollar sign ($) for self, instead of
the
period ( . ) we are using now in Prothon. Ruby uses the at-sign (@) for
self, but our new usage of self also includes replacing the period for
some attribute references, as in obj$func() versus obj.func(), and too
many
programs treat that as an email address and screw it up. Also the S in
the symbol $ reminds one of the S in $elf.

Can people from outside the U.S. tell me if typing the dollar sign often
would be a problem in writing code? Is it available and somewhat easy to
type on international keyboards?


In Germany every serious programmer has to switch to the American layout
anyway because of {}[]@\~| (all odd AltGr combinations). As this is no
problem on Windows and Linux(KDE) (how about the Mac?), I recommend against
making special character choices based on keyboard layout.

Apart from that obj$func() hurts my eye more than obj->func() and
obj!func(). As always, Python shines here with its obj.func() :-)

Peter
Jul 18 '05 #7
In article <c6************ *@news.t-online.com>, Peter Otten wrote:
Mark Hahn wrote:
We are considering switching to the dollar sign ($) for self, instead of
the
period ( . ) we are using now in Prothon. Ruby uses the at-sign (@) for

<snip>
Apart from that obj$func() hurts my eye more than obj->func() and
obj!func(). As always, Python shines here with its obj.func() :-)


I believe the suggestion is "$.func()" instead of "self.func( )" (the
Python way) or just ".func()" (the earlier Prothon way). Or possibly
the suggestion is for "$func()", although I like $.func() much better.

(I like this better than the ., though I still have no problem with
writing self all the time, so I prefer sticking to the Python way. It
solves my main problem with ., which is when you do have to pass self
explicitly. "function_call( param1, ., parm2)" is much more confusing
than "function_call( param1, $, param2)".)

Joe
Jul 18 '05 #8
On Mon, 19 Apr 2004 23:22:10 -0700
"Mark Hahn" <ma**@prothon.o rg> wrote:
Can people from outside the U.S. tell me if typing the dollar sign
often would be a problem in writing code? Is it available and
somewhat easy to type on international


Anyone who writes a language like Perl or PHP would use it a lot anyway (all variables start with a symbol, usually $)

--
Hugh Macdonald
The Moving Picture Company

Jul 18 '05 #9
Joe Mason wrote:
In article <c6************ *@news.t-online.com>, Peter Otten wrote:
Mark Hahn wrote:
We are considering switching to the dollar sign ($) for self, instead of
the
period ( . ) we are using now in Prothon. Ruby uses the at-sign (@) for

<snip>
Apart from that obj$func() hurts my eye more than obj->func() and
obj!func(). As always, Python shines here with its obj.func() :-)


I believe the suggestion is "$.func()" instead of "self.func( )" (the
Python way) or just ".func()" (the earlier Prothon way). Or possibly
the suggestion is for "$func()", although I like $.func() much better.


I skimmed too lightly over the first paragraph and missed that - but still
there is the obj$func() example in Mark's post, and with my Python mindset
(I didn't follow the Prothon discussion closely) I cannot figure out what
that is supposed to mean.
(I like this better than the ., though I still have no problem with
writing self all the time, so I prefer sticking to the Python way. It
solves my main problem with ., which is when you do have to pass self
explicitly. "function_call( param1, ., parm2)" is much more confusing
than "function_call( param1, $, param2)".)


[OT] Seems to happen all the time with Python - try to simplify at some
point and you pay twice elsewhere. Prothon will have a hard time occupying
a local optimum in beauty/simplicity/usefulness that is both near and
better than Python. This starts with the name, by the way - it evokes the
association of prothotype, which looks quite, er, ungreek :-)

Peter

Jul 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
10465
by: Digital Puer | last post by:
I've inherited some code where the coder placed dollar signs in his preprocessor macros. What is the significance of the dollar signs ($) ? Example: #define ALLOCATE(task,pointer) \ { \ long task$; \ if (task == FOO) { \ task$ = ZERO); \
2
3050
by: Yorian | last post by:
I just started to try regexps in php and I didn't have too many problems, however I found a few when trying to build a templte engine. The first one is found is the dollar sign. In my template I would like to write this: {$var} where var ofcourse will be replaced by the real var however I'm having trouble with the dollar sign I do escape the it though, my regexp:
2
2327
by: johnson4 | last post by:
Im wanting to display a dollar sign on my wap application, which requires that the cell phone is served with $$ to display $. Therefor I'm trying to find an easy way, in my php code, that will always add a dollar sign next to any existing dollar sign. so that dollar signs are always served in pairs The content is residing in a MySQL database. Thanks for any help that can be offered.
29
19327
by: Nick | last post by:
I've seen a few frameworks use the following: function $(id) { return document.getElementById(id); } Then to use: $('something').innerHTML = 'blah'; I'm just trying to roll this out to my site and so far doing this has saved about 8KB of javascript (lots of ajax/dynamic elements). I just
4
4413
by: Robbie Hatley | last post by:
Some months ago, I'd asked this group: "Backtick, at-sign, dollar-sign: legal in source?" I got 20 replies, most of which were off-topic and did not answer the question. Keith Thompson provided the only direct, on-topic reply. He wrote:
0
9942
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9792
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10743
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10847
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10416
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9574
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7971
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7129
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
4220
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.