Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7605213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:06:33+00:00 2026-05-31T00:06:33+00:00

I am a web developer, and I have observed that many times I need

  • 0

I am a web developer, and I have observed that many times I need the same function on both client and server. So I write it in JS as well as in PHP or whichever server side language. I am fed up with this. If I have to change it then I need to change it in both places. If I want to use it for some hand held devices, then I will have to rewrite that code yet again using objective-C or Java etc. Then if I need to change that function then I will need to change it everywhere.

Is there a solution for this? If I will call some webservice via ajax, then the client will have a delay. If it will be in JS then it can’t be accessed from within PHP or Java, etc. If I use some service in PHP from another language then that can also become a performance issue.

It is also possible that some time we need such functions output from some paramters as input using db or without db.

I know there would be some pretty simpler solution but I am not aware of that. Please tell some language independent solution as I don’t have VPS always.

I am not sure if my question actually belongs to stackoverflow.com or programmers.stackexchange.com so please transfer it to programmers.stackexchange.com instead of closing this question if it belongs to there.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T00:06:34+00:00Added an answer on May 31, 2026 at 12:06 am

    Typically, the solution to this problem is to write common code in one language and use translators or library linking to allow access from other languages.

    Node.js allows you to write server-side code in JavaScript.

    Node.js is a platform built on Chrome’s JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

    You can also use JavaScript to write HTML5 apps for mobile devices.

    “Building iPhone Apps with HTML, CSS, and JavaScript”

    Now web designers and developers can join the iPhone app party without having to learn Cocoa’s Objective-C programming language. It’s true: You can write iPhone apps quickly and efficiently using your existing skills with HTML, CSS, and JavaScript. This book shows you how with lots of detailed examples, step-by-step instructions, and hands-on exercises.


    If you don’t want to try to write large complex applications in JavaScript, GWT provides a way to write Java and via-translation, run it on the client.

    The GWT SDK contains the Java API libraries, compiler, and development server. It lets you write client-side applications in Java and deploy them as JavaScript.


    If you develop in .Net languages: C# -> JavaScript ScriptSharp

    Script# is a free tool that enables developers to author C# source code and subsequently compile it into regular script that works across all modern browsers

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a web developer functionality/tool that allows us to know how many times
As a web developer I am using PHP and I know that I have
I am a web developer, have worked with PHP and .NET both. having over
I have SQL Server Express and Visual Studio Web Developer Express running on my
I have installed Visual Web Developer Express 2010, and SQL Server 2008 R2 Express
I am web developer from a year.I have Used PHP,python with client side Js
Heres my problem, I'm web developer and I have a web based script(PHP/CURL/HTML/JS) that
I am a Web developer and in my projects I have noticed that my
I'am a asp.net web developer. I have the Oracle Client 11 instaled to test
Being a web developer I have noticed that anything I create works absolutely great

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.