Questions tagged [client-side]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
56 views

Translation Server-side vs. Client-side when having the same locales files

I'm currently working on a Turborepo project (monorepo architecture) and I have managed t share my locales files to both back-end and front-end parts. This means I share the exact same keys across ...
Jolan B.'s user avatar
1 vote
2 answers
391 views

Should I hide admin functionality code in Client Side Rendering App?

I'm starting a new project in which we will use Client Side Rendering for the frontend. This is my first time working with this kind of technology and I was wondering which would be the best approach ...
David's user avatar
  • 129
-3 votes
1 answer
165 views

How do client-side libraries prevent spoofing? [closed]

I'm looking at Segment's documentation right now and they have something called a "write key" that you include in your client-side JavaScript in order to send analytics data to the backend. ...
Gopal Vashishtha's user avatar
0 votes
2 answers
358 views

How to measure the benefit of replacing big parts of the HTML DOM vs doing a new fresh request?

I am looking for a method to measure the time difference between: the time it takes to load and completely reach TTI for example.com/page-B given that example.com/page-A is loaded. the time it takes ...
Álvaro Franz's user avatar
4 votes
2 answers
341 views

Is there a canonical definition of SPA or is SPA a broadly agreed-on architecture with fuzzy edges? [closed]

Is there a canonical definition of SPA which would exclude the software architecture model described below? I'm working on an app with a new web-architecture model (new to me, at any rate) which has ...
Rounin's user avatar
  • 275
0 votes
3 answers
791 views

How to design a statically typed REST API client?

Last time I used I created a REST API client in .NET I used exceptions to represent status codes which don't indicate success. (404 was returning null). It's been quite some time since then and my ...
Stilgar's user avatar
  • 1,504
2 votes
1 answer
97 views

Angular Folder directory approach

I know the proper folder structure for an Angular application should be like this: /app /core module /components /services /feature module /components /services ...
user avatar
1 vote
1 answer
215 views

Server side rendering of third party updated html components

Say I am wanting to include a third party HTML component in my site... I know that I can simply include a <script> tag to pull in the component on the client's side; however because I do not ...
physicsboy's user avatar
1 vote
0 answers
104 views

Appropriate way to organize dependency with external class avoiding high coupling

I was design a server communication module of native application. As starting point for now I have 3 classes: HttpSession — class which contain all necessary data for sending requests. ...
Liastre's user avatar
  • 171
1 vote
1 answer
750 views

Client-side XHR request, which IP does the endpoint read?

Assume a Javascript plugin, for a developer, that's included on their website. <script src="https://external.com/plugin.js"></script> The plugin makes a XHR request to a 3rd party ...
Luka's user avatar
  • 119
0 votes
3 answers
221 views

Is there a secure way to check previous passwords purely on the client-side?

We have a requirement for a security audit that our password policy must disallow the re-use of a previous password from the last 4 used passwords. We can accomplish this fairly easily by making a ...
crush's user avatar
  • 131
-2 votes
1 answer
480 views

How to implement a CLI interaction with running java programm? [closed]

I would like your tipps about implemening a command line interface to interact with a running java application. Example: The Java Application is a webserver and a cli-client should interact with it: ...
User8461's user avatar
  • 113
0 votes
1 answer
63 views

Why does YouTube save Restricted Content filter locally?

I was scrolling down on my YouTube Homepage and found that beside the filter marked Restricted Content, a point mentioned that the setting of this filter applies to this browser only. Here's the ...
Arjun's user avatar
  • 171
1 vote
1 answer
794 views

Rendering custom markdown format: client side or server side?

I am working on a project on both iOS/Android/macOS/Linux (Windows is optional, and surely no website version). There are a lot of related webpage-like data and the team decided to store the data in a ...
tonychow0929's user avatar
12 votes
3 answers
10k views

How can I prevent a user from editing my code in their browser?

Description I'm designing a Node.JS application (more like a full website). The app will send five JavaScript files and will have <script> tags linking them together. Question How can I prevent ...
Ed The ''Pro'''s user avatar
8 votes
1 answer
3k views

Single-Page vs Multi-Page and Client-Side vs Server-Side

I am currently researching the benefits and disadvantages of SPA (Single-Page Applications) vs MPA (Multi-Page Applications). Having established that MPA is more suitable for my project, I proceeded ...
Suleyman's user avatar
  • 191
0 votes
3 answers
930 views

API responsibilities vs Client responsibilities (Characteristics of returned data)

I have a hard time trying to find a 'rule of thumb' to follow when dictating certain responsibilities to either the API, or the client-side code base. For instance, if I know a dataset should be ...
connected_user's user avatar
5 votes
2 answers
1k views

Benefits of using a JS Framework

I am starting a new project and trying to decide if I should use a Javascript framework (like vue.js or react) and create a Ruby on Rails API, or use Ruby on Rails to server-side render pages and ...
SegFaultDev's user avatar
9 votes
4 answers
3k views

Best way to do Client side authorization for a single page JavaScript application?

I already have a solid back-end permissions authorization (ie. admin can perform an action, a normal user cannot perform an action). However, I'm wondering if there is a better way to do a frontend ...
Christian Pavilonis's user avatar
2 votes
1 answer
3k views

Is it a good practice to log client side errors to a file

I basically want to know if it is considered a good practice to persist the errors that happen on the client side of a web application (typescript/angular for example) by logging them to files? Or if ...
Uentee's user avatar
  • 391
3 votes
2 answers
782 views

Mixing JavaScript and server-side scripting

I see code like this sometimes (mixed PHP and JS in this case, but could be any server-side language): <script> var data = <?php echo $bigDataStructure ?>; // then lots more pure js ...
jinglesthula's user avatar
0 votes
2 answers
76 views

Hide Away Technical Abstraction of an Object from Users without needing Static Rules

I'm an owner of some Product, where I have different clients who use that product, and the attributes of that product alter the experience that my clients have on my page. For an example, lets say ...
SnG's user avatar
  • 115
3 votes
2 answers
430 views

How do services that rely on client-side access to an API or data consumption endpoint prevent abuse?

For example, web application monitoring services like New Relic RUM or Bucky use JavaScript to collect data on a user's session and eventually send that data back to an endpoint. For New Relic, the ...
edaemon's user avatar
  • 133
3 votes
1 answer
467 views

Misunderstanding of viewmodels relations on client and server side

I have basic viewmodel on server-side, let it be on C# language and ASP.NET Core server-side, for example: public class BookViewModel { public string Id { get; set; } public string Name { ...
Yurii N.'s user avatar
  • 341
0 votes
2 answers
155 views

Decision that drives use of a Front Technology like Javascript for server side tasks

I have created a Project in Java which helps generate HTML's from an Excel Sheet & a template file. I am trying to understand, if I want external users to use this facility from an external ...
GauravEdekar's user avatar
1 vote
3 answers
404 views

How to draw high-resolution images on client-side?

Any libraries, API, or tips are welcome. I am trying to draw Landsat 8 images using Canvas utility of Javascript on my browser. The grayscale reflectance values for Landsat 8 bands are from minimum -...
gaurav tripathi's user avatar
1 vote
2 answers
212 views

Will Web Components in HTML Add Too Much Complexity? [closed]

The way I've been accustomed to User Interfaces is to see everything as a div. Where a div is essentially a box and they can be stylized in CSS. <div class='container'> <div class='...
user avatar
25 votes
4 answers
6k views

Is client-side validation really all that important, always? [duplicate]

Through the years I've worked in web development it's been ingrained in me that client-side validation is absolutely and completely necessary in all web applications. Seems to me like all the people ...
Alternatex's user avatar
  • 1,033
0 votes
1 answer
1k views

How to stop someone from calling URL on server

I am very new to web development and am trying to create a website using client/server model. From what I understand, the front-end (client-side) calls URLs specified on the server to get information. ...
kev's user avatar
  • 11
1 vote
1 answer
804 views

How to filter RSS feed results, according to a DOM element in its page content?

I've a "RSS feed", want to filter its results according to a DOM element in its content! So, this is the mission I'm looking forward to do: Monitor a "RSS feed" continuously. If new RSS elements ...
Homer's user avatar
  • 11
-1 votes
1 answer
2k views

Connect to MS SQL database from client side [closed]

I had a software that was written on VB .Net and used Crystal Report to print out reports. It was a pain to maintain in my case, so I want to move the report to webpage version. I did some ...
momon's user avatar
  • 11
2 votes
1 answer
477 views

Updating a video's view count. Should this happen client-side or server-side?

I built an iOS app similar to Vine, where a user can scroll a feed of videos that auto play. All of these video have a View_Count field in the backend to keep track of how many times the video has ...
user3344977's user avatar
8 votes
1 answer
3k views

Is there any reason not to make a webapp be client-side only?

I recently started writing a path-finding algorithm simulation application in python. It takes user inputs, randomly generates a 2d graph, and shows displays the simulation via GUI. Now, what I ...
dwjohnston's user avatar
  • 2,543
2 votes
2 answers
141 views

Should I use an open source client framework or create my own?

I am working at a medium sized internet company, and I was handed the task of implementing the framework for our sites rebranding. It's quite an old (and ugly) site, and we want to update its look ...
Tomer Amir's user avatar
2 votes
1 answer
137 views

Application components dependency and decoupling

In my client application I have two major components: Core: wrapper that handles everything about running the actual application NetworkClient: A layer that takes care of communicating (receiving/...
luleksde's user avatar
2 votes
2 answers
3k views

Is it possible to protect client side algorithms 100%? [duplicate]

If you had a pretty novel idea that involved a new algorithm. Like lets say you were the first person to think of orbitz.com or kayak.com (travel sites) and you were able to and wanted to implement ...
Frank Visaggio's user avatar
3 votes
2 answers
135 views

Is it reasonable to have grunt/gulp build phases in javascript dev environment

Nowdays it's goes to be very fancy to have grunt/gulp build phases who concatenate and minify and organize javascript code. And I agree that this is important for production. But as a developer, I ...
Ph0en1x's user avatar
  • 332
0 votes
1 answer
3k views

Relatively large data on client side in web application

We are discussing on building a web application where (as per clients requirement), there will be relatively large data (60,000 items) to be shown as tree view. Let's assume each item is string of ...
Ali's user avatar
  • 1,222
2 votes
3 answers
166 views

Handle server-side/client-side when for showing missing information as placeholders

I have a database table which stores Incident details. Each Incident can have an image saved for it. There are some Incidents which will not have an image for it. I have an API which pulls the image ...
manas's user avatar
  • 123
0 votes
1 answer
56 views

Balancing between performance, convenience & separation

Consider a web application that works with somewhat sensitive data on reliable, high performance clients. The data needs to be processed and manipulated. So far I have learned that when possible, ...
user2422960's user avatar
61 votes
8 answers
19k views

Client-side coding: How to prevent malicious use?

Over the last few years, the trend for client-side (browser) applications has really taken off. For my latest project, I have decided to try and move with the times and write a client-side ...
GWed's user avatar
  • 3,095
0 votes
1 answer
197 views

Pattern that prevents events to trigger themselves

I am working at the client-side part of a web application, that is responsible for getting answers from users for specific questions and storing and restoring them from the database (or cookies) and I ...
Cristian's user avatar
  • 125
1 vote
1 answer
111 views

Ensuring submitted hiscores are not fake

I have a small game that I would like to keep track og global hiscores for. The basic is simple: username and score is submitted to a server for storage and later polling. However how do I ensure that ...
Jarmund's user avatar
  • 133
5 votes
3 answers
3k views

Dividing responsibilities between client and server

I'm working on a Web app that uses node.js on the server and AngularJS on the client. I'm new to Angular, but enables writing client-side applications that can be more self-contained than some other ...
ahoffer's user avatar
  • 613
0 votes
1 answer
623 views

Send mapped data from server-side code to client-side code

I'm developing a application based on two technologies: ASP.net (SharePoint) and JavaScript. I use server-side code for retrieve data from database and manipulate it whereas I use client-side code ...
ilMattion's user avatar
  • 103
4 votes
3 answers
5k views

Options for client-side encryption of local web databases

My scenario is as follows: Web application, run from the browser, designed for mobile devices. Uses WebSQL storage which may contain sensitive data. Uses Application Cache to enable offline use where ...
Adam Marshall's user avatar
3 votes
1 answer
269 views

How can I interact with a client-side sound device through a web application?

I'm trying to find something that will allow a web application to analyze the line or microphone input from a client and transmit that data to the server. I've looked briefly at WebRTC and, although I ...
armadadrive's user avatar
1 vote
1 answer
972 views

JSF problems due to shared server-side state

On it's latest technology radar, the guys at ThoughtWorks recommended avoiding JSF because it's attempt to create statefulness over HTTP ends up "causing a whole host of problems involving shared ...
andrepnh's user avatar
  • 121
1 vote
3 answers
4k views

Are (mostly) client-side JavaScript web apps slower or less efficient?

I am in the midst of writing a web application for work. Everything is from scratch. I have been a PHP programmer for about 13 years, Node.js programmer for the past 2 years, and have no shortage of ...
rpaskett's user avatar
  • 166
5 votes
4 answers
4k views

To MVC or not MVC, that is the question

Originally, I started off doing jQuery plugins, then moved onto Backbone.js applications, then been experimenting with MicroJS MVC modules, but these days I'm even wondering if there is any need for ...
balupton's user avatar
  • 197