86 votes
Accepted

Should you always program server side for a website?

If you don't know whether you need server-side code, you probably don’t* *Caveat: Server-side code is essential for security, when you want to internally control access to content, data, or ...
user avatar
  • 1,350
56 votes

Should you always program server side for a website?

Read about static site generators. These allow you to create a site in a programmatic manner (using templates, data, etc), and not by hand-crafting HTML. The result is a set of static HTML and CSS ...
user avatar
  • 23.9k
25 votes
Accepted

How Do News Websites E.g. Forbes / Zdnet Seamlessly Merge One Webpage into Another?

The short answer is that the page's client-side Javascript code detects when you get "too close" to the bottom of the page, and asks the server for more data when that happens. Without getting too ...
user avatar
  • 27.2k
20 votes

How Do News Websites E.g. Forbes / Zdnet Seamlessly Merge One Webpage into Another?

One big key to understanding what is happening: It is possible, via Javascript, to set the URL in the addressbar without actually redirecting the user. To see this in action, paste the below code ...
user avatar
  • 4,440
14 votes

Why so many good open source programs have websites that are very poorly managed?

I was reading about gzip program and I found the official website of the gzip software. No, you didn't. You found the website that used to be the official website back when the original authors were ...
user avatar
12 votes
Accepted

Should I parse XML on the server or provide a proxy and let the browser parse it?

The proxy option is the easiest one to implement. You don't have any custom development to do, the only thing to do is to set up a proxy. It's also straightforward: there is no additional code to ...
user avatar
8 votes

Should I parse XML on the server or provide a proxy and let the browser parse it?

There is a third option which you may not have seen: Cross Origin Resource Sharing (CORS). The CORS standard works by adding new HTTP headers which allow servers to serve resources to permitted ...
user avatar
7 votes

Providing friendly URLs for a website vs. realities of database IDs

Keeping the ID in the URL is the most future proof method and as you demonstrated, the URLs can still look relatively good. Another option used by multiple projects is to keep an history of ...
user avatar
  • 1,729
6 votes

Should you always program server side for a website?

You can and should use only a static site if it is enough, or use a static site generator. Why? Maintainability. Code has bugs. Every few weeks there is another WordPress security hole found. If you ...
user avatar
  • 297
6 votes
Accepted

Does DNS reply with more information than just IP address?

DNS can respond with some additional data like mail exchange server, but that's not related. Usually we can't access websites by IP address using web browser, because there are more than one websites ...
user avatar
  • 2,884
6 votes

How to adapt the architecture of a website and have suitable hosting along with it to meet increasing users?

Just a quick note on terminology: Scaling up refers to improving the hardware. Scaling out refers to adding more hardware in a load balanced environment. In the web world, we tend to scale out the ...
user avatar
  • 24.7k
5 votes
Accepted

How to make a website be formatted correctly on all screen sizes?

After re-reading your question you said it was pure HTML website. HTML is NOT where you want to do the design things, that should be done in another language (CSS3). HTML defines the content of what ...
user avatar
5 votes
Accepted

Scraping data from website and passing into Office - a lot of restrictions

Uncle Bob once said: "We don't ship shit...". Working with legacy tools(IE 9) and scraping website you are: Spending significant amount of time on unscalable, potentially unreliable technology. ...
user avatar
  • 2,338
5 votes

Is there any situation where there is a good reason to use an anchor <a> element without a href attribute?

In the old days, you used <a name="whatever"> if you wanted another link to jump to a particular point on the screen. Nowadays (for a long time actually) we use the "id" attribute.
user avatar
  • 1,727
5 votes

Why would one employ a POST-based search engine on their website?

So, when a GET request is sent over HTTPS, its query parameters are secure in transit. However, it can more easily leak data at the endpoints (browser history, referrer URLs, and server logs notably) ...
user avatar
5 votes
Accepted

Why so many good open source programs have websites that are very poorly managed?

Generally, an open source software project has a large(ish) number of contributors, so it can continue even if certain individuals stop contributing either temporarily or permanently. It is also ...
user avatar
  • 4,091
5 votes

How to create a cache-preventing link? Using random number? Unix time? or other better options?

It's probably better to use cache-controlling HTTP headers rather than generating lots of unique URLs.
user avatar
5 votes
Accepted

Secure Admin-pages-only login without HTTPS

You should probably go over to HTTPS for the whole website. If you really insist on having an insecure main site, the login form should at least be over HTTPS, otherwise an attacker can just read the ...
user avatar
  • 1,298
5 votes
Accepted

Cookie consent and facebook cookies?

Going against the law is not an option: first it might make you loose more visitors (i.e. those who count on you to respect their privacy). Second, GDPR fines calculated as percentage of your global ...
user avatar
  • 67.8k
4 votes

Should I parse XML on the server or provide a proxy and let the browser parse it?

For scalability reasons I would like to keep the server's load a small as possible I think this is more or less pointing to the answer. Whether or not providing preprocessed data to the client or not ...
user avatar
  • 2,384
4 votes
Accepted

Integrating a mobile website into a mobile app

Dont use frames ;) What you could do is to provide the links to the other departement and in the end of the url set some kind of GET variable ex mysite.com?commingFromApp=true And then on the website ...
user avatar
4 votes

Is there any situation where there is a good reason to use an anchor <a> element without a href attribute?

You could imagine that some Javascript code is dynamically changing the DOM to add that missing href= attribute dynamically at runtime.
user avatar
4 votes

Creating a web portal to access multiple databases (security and best practice?)

We do this in a different way. We have a directory based (in our case MS Active Directory) authentication. Access to the databases is given to active directory groups within SQL server. Then the ...
user avatar
4 votes

Is it hard to "add" semantic web to your website?

Short answer: Semantic HTML is one element of on-site SEO. It's about using HTML4/5 tags that communicate context and not just data to Google. Have a look at this article, it's the best beginner ...
user avatar
3 votes

How to make a website be formatted correctly on all screen sizes?

Unfortunately, there is no 'magic bullet' solution to your problem. What you are talking about is called Responsive Web Design and it takes a lot of experience to be able to efficiently design ...
user avatar
  • 159
3 votes
Accepted

How do I customize Bootstrap?

You question is a bit of a broad/opinionated "What's the best way to manage the whole CSS thing?". It's a great question, but I don't think there is a single answer. I feel like the question ...
user avatar
3 votes
Accepted

What is an initial skeleton of the website called? A Framework?

Framework has come to mean something like angular.js or .NET, so it would perhaps be misleading to use that word. (Only because of current trends in programming culture, though; it's perfectly ...
user avatar
  • 146
3 votes

Providing friendly URLs for a website vs. realities of database IDs

I have used two different scenario's in the past. /id/some-slug where the id is used to lookup, the slug not. Thus the slug can be anything. But, when the slug does not match with the actual slug, ...
user avatar
  • 220
3 votes
Accepted

Static and dynamic data : should I use different databases?

I see no advantages to separating the databases, and several downsides. You're forced to guess in advance what data will never change and which might change. Such guesses are virtually always wrong ...
user avatar
3 votes
Accepted

What is the different between web site and web application?

Web site is the most generic term for "something visible to people using a web browser and accessible via a URL". This can be just a collection of static HTML files and images, but nowadays that is ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible