Is it ok to use a non-English, foreign language variable name? [closed] - variables

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
For me, English is too big a mountain. So whenever I use tools like Visual Studio 2017 (C ++), Unity 3D(C#), Visual Studio Code (html), Eclipse (java), and Android Studio, I've always assigned variables in my native language.
ex)
int get넓이(int 가로, int 세로)
{
int square = 가로 * 세로;
return square;
}
However, many people advised not to use non-English variable names because they can 'cause errors'. But I have not experienced any errors yet.
I also contacted the Unity Game Engine customer center on this issue.
And they answered me like this. "You can do this by going to [Visual Studio → File → Advanced Save Options], and then specify" Save as default encoding option "to UTF-8."
So, I wonder if there is an error when programming in a language other than English. because I have not experienced errors using non-English variable names. I have also contacted other community sites on this issue, but I have not seen anyone who experienced the issue.

It completely depends on what language you are programming in. For example, Python3 will support it (mostly, as long as it's Unicode), however, Python2 will not like it at all as it only supports ASCII.
As with any code, if it makes it easier for you then do it. Just try your best to make it readable to others if it is going to be deployed to others. Just make sure your language fully supports Unicode.

C++ has supported Unicode identifiers for a long time with some compiler caveats. So do Java and C#. So there should be no problem compiling it unless you use an old compiler or and old C or C++ standard
However code is for others to read later. Unless you don't want anybody to maintain your code you can use variables in another language.

Related

Embed XCode(8) editor for Swift [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am creating an application which besides everything else must display Swift (and ObjectiveC) source code, with code highlighting, inspections, compiler warning and errors.
Is there a way to reuse the XCode functionality which does that? Any internal APIs which are stable enough?
Note that since XCode v8 there are no XCode plugins according to WWDC 2016.
Unfortunately, what you want doesn't exist — there are no system APIs (private or otherwise) that will let you embed Xcode functionality in the way that you want. However, you can take a look at tools like SourceKitten (a wrapper around the SourceKit service that does the syntax highlighting and semantic parsing for Xcode) to replicate some of that yourself.
Depending on what you're looking for and the type of IDE that you want to implement, there are embeddable versions of other editors (say, vim, via the embeddable frameworks that projects like vimr provide) which can provide syntax highlighting and some compilation, but then you're coupling yourself to those editors, how they work, and the features they provide.

How to run Clipper Application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a legacy code base written in CLIPPER. I don't have any idea of CLIPPER programming language.
How do I get started with it and deploy this application? Is it a scripting language OR some sort of OOPS language any study reference will be helpful
Thanks in Advance
Kaushik
Clipper is 16-bit compiler for character-based (not GUI) applications running on MS-DOS platform. There are, however, 3rd-party tools that will allow to produce 16-bit Windows GUI applications.
It's still owned by Computer Associates but all future development and support was delegated to GrafX long time ago.
The last released version was 5.3 but many developers stayed with 5.2e. The last update was around Y2K.
There are Harbour and xHarbour open source projects that developed their own compilers for this language (which in the beginning was similar to dBase III).
You can find information about the language and some 3-rd party libs in a Clipper section of this web-site.
Native Clipper compiles all its code into a single executable that runs on user desktops. Its data and index files are usually placed on a network share. Executable itself can also be placed on a share with user desktops having a short-cut to it.
Native Clipper applications (16-bit) will not run under 64-bit Windows. There are emulators (like DosBox) that allow to overcome such limitation.
Clipper related questions can be asked on comp.lang.clipper newsgroup.
If you have more questions add them as comments here.
Another good resource is Norton Guides for Windows, you can download it from a great site with lot of information about Clipper:
Download NGW from www.the-oasis.net.
I was unable to find the .NG files on that site, but you can see them online here if you want or try to found the files googling them.

New job, Giant project [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
So, I just started a new job a few weeks back. It is my first job doing software, and I have been tasked with learning how a giant project works. Now, the guy before me left NO (zilch) documentation or comments anywhere in the source code. In addition, he applied basically EVERY design pattern in the famous design patterns book by Gamma, etc...
My question is, how do I start? I have tried setting break points for certain calls that I want to learn (learn bit by bit), but because of the 5 million design patterns employed, every call goes up about 7 levels just to finish, and by then, it's hard to keep track of the 20 some objects being created and used.
Has anyone had a similar experience? A few pointers on different methods to try?
Specs: language - VB.net
IDE - Visual Studio 2010
Using - Windows Forms
Brain - Melting
Inheriting a large project without documentation is always a huge pain in the ass. I hope you have already accustomed your manager to the inconvenient truth that it will take several weeks or even months until you can maintain that project efficiently.
I would start with creating some UML class diagrams. That could tell you a lot about how the system works and which design patterns are used where.
While doing so, I would also add comments to the code with everything I learned about it. When I am not sure if I understood what the code does correctly, I would add a common string like "NOT_SURE" to the comment. Later, when I have a better understanding of the system, I could use a text search to find and revise these comments.

What IDE/editors provide multi-selection editing capabilities? (like Sublime Text does) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 11 months ago.
Improve this question
The main feature of Sublime Text 2 that makes it my editor of choice for programming (and anything else really) is multi-selection search and edit. It's like search-and-replace-on-steroids. Once you get used to, it's really hard to go back to not using it.
I did some research myself and couldn't find a single other editor that offers it as powerfully. Some even let you create several cursors but lack the searching bit (just found out that Notepad++ does that).
So I'd like to ask for this community's help: do you know of another programming editor that provide multi-selection search and editing in a similar level as Sublime does?
Cloud9 IDE does this.
Disclaimer: I work there.
vim seems to have support for that via plugins. See a related question on SO: Multiple selections in VIM
More recently jetBrains began adding "Sublime Text style multi selection" to their line of IDEs. I know IntelliJ and Pycharm already have it.
gedit 3 has a plugin which looks similar: http://codetree.com.au/projects/imitation/
After switching from Sublime Text 2 to gedit, I've written a plugin that's much closer to Sublime's version of multiple cursors than imitation. I've tested the plugin on versions 3.4 and 3.12. You can find it here:
https://github.com/jessecrossen/Gedit-MultiCursor
I don't think it's 100% perfect yet, so I'd be really glad to hear of any edge cases people run across so I can continue to improve it. I've also implemented something like gedit's Command-R functionality with this plugin.
Those were pretty much the only two features I missed from Sublime, but then again I don't tend to use the deep features of any editor, so as to preserve my independence ;). The quick-open functionality is not as good as Sublime's "Goto Anything", but on the other hand you get usable integration with remote file systems mounted on FUSE, gvfs or similar, whereas Sublime tends to be slow because it's recursively indexing every file.

Creating standalone help files [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
Currently I'm wrapping up an application at the moment, and I'm at the stage where I need to document the application for anyone who wants to use it.
At this point, I just need something that will tell users how to use my program. Even though I tried to design it as user friendly as possible, I have a group of users who aren't tech savvy and need something they can refer to.
So my question is basically: What can I do to easily create help files?
This answer will pretty much assume you're using some version of Microsoft Visual Studio, although the first approach is generic enough to work on any OS with a HTML rendering engine.
You could create a series of HTML files, store them locally on the user's computer, and when the user calls up help, load those in the default browser (this being the same kind of approach Microsoft took with Visual Studio 2010). However, I think that's kind of a hacky solution.
There used to be a product called HelpStudio Lite; unfortunately it's been discontinued.
If you're willing to use Microsoft Help 2.0 (which was used through Visual Studio 2008 and some other products), you might want to take a look at http://www.mshelpwiki.com/wiki/tiki-index.php?page=Help2. Evidently it's some kind of wiki detailing how to put together your own Help 2.0 documents. I'm not sure if it will work with Visual Studio 2010 (this is because VS 2010 uses a new help system).
I really wish Microsoft would get their act together on the help documentation front.
EDIT: You may want to look at Sandcastle Help File Builder. I found it recommended at https://stackoverflow.com/questions/6023/what-are-good-tools-for-creating-compiled-html-help-files-chm... actually you may want to go read that thread as well.