LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-15-2015, 05:27 PM   #1
lolada6
LQ Newbie
 
Registered: Jun 2015
Posts: 24

Rep: Reputation: Disabled
Programming with 2 languanges.Guidance neede!


How to programm with 2 languanges which code simbols look alike.I mean is it possible to adjust part of a background on which we write code to specific languange.
 
Old 06-15-2015, 05:36 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Smile

LOL, welcome to the forum...
TWO languages???? You're not even trying...hehe
Okay, nuf giggles.
There is not really a good way to do that. I inter use PHP and JavaScript, sometimes even Java...trust me, JavaScript says:

Code:
var someName
and PHP, it's just

Code:
$someName
so, try a debug on a PHP module, that is called from client-side AJAX, confusion waiting to happen...
I use one tool: discipline...that and a debug stategy...errors will light up the room...soon enuff

Just...me
Thor
 
1 members found this post helpful.
Old 06-15-2015, 07:55 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
You mean: how do you get your mind into the state where it's ready to work with two programming languages at the same time? There's really no explanation more complicated than "know and be experienced with both languages".

My wine_env project is a relatively simple one that uses two languages: BASH and Python.
 
Old 06-16-2015, 07:53 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
The question (which might be posted by a non-English speaker ...?) could also refer to the practice of writing a single application in more than one source-language at a time. For instance, a gcc program which calls a gfortran subroutine.

This works, because the object-code file format produced by both systems is compatible. The linker and loader components know how to process these files no matter what source language(s) were used to create them.

Care must be taken that the runtime environments of the two "strange bedfellows" are also compatible. For instance, you couldn't hand a "C++ object" to a FORTRAN subroutine and expect FORTRAN to know what to do with it. You might have to consider that some languages store array values "row-wise," others "column-wise," and so on. You must take care not to "muck-up the stack," which would bring the whole contrivance crashing down. But otherwise, yes, it works.

Last edited by sundialsvcs; 06-16-2015 at 07:55 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please give me some guidance on C/C++ programming with Linux Violin Programming 13 05-17-2009 01:39 PM
Guidance on GTK+2.0 programming required. deepankar15 Programming 10 05-13-2009 12:56 PM
Where can I look for guidance on Shell Programming? Ian D Linux - General 4 08-23-2006 01:00 PM
Tutorial neede for VIsual Programming on Linux (having knowledge of Text based C/C++) dhirsolo Programming 3 08-02-2006 01:05 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration