Skip to content

Commit 8b7cfa6

Browse files
Merge pull request #139 from kamranahmedse/master
Create a new pull request by comparing changes across two branches
2 parents fb6aacf + 05eab58 commit 8b7cfa6

File tree

10 files changed

+14
-10
lines changed

10 files changed

+14
-10
lines changed

src/data/best-practices/frontend-performance/content/avoid-404-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
55
404 request can slow down the performance of your website and negatively impact the user experience. Additionally, they can also cause search engines to crawl and index non-existent pages, which can negatively impact your search engine rankings. To avoid 404 requests, ensure that all links on your website are valid and that any broken links are fixed promptly.
66

7-
- [How to avoid Bad Requests?](https://varvy.com/pagespeed/avoid-bad-requests.html)
7+
- [404 Not Found Overview](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404)

src/data/best-practices/frontend-performance/content/avoid-base64-images.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@ Instead of using Base64 encoded images, it is generally recommended to use binar
1717
- [Base64 Encoding & Performance, Part 1 and 2 by Harry Roberts](https://csswizardry.com/2017/02/base64-encoding-and-performance/)
1818
- [A closer look at Base64 image performance – The Page Not Found Blog](http://www.andygup.net/a-closer-look-at-base64-image-performance/)
1919
- [When to base64 encode images (and when not to) | David Calhoun](https://www.davidbcalhoun.com/2011/when-to-base64-encode-images-and-when-not-to/)
20-
- [Base64 encoding images for faster pages | Performance and seo factors](https://varvy.com/pagespeed/base64-images.html)

src/data/best-practices/frontend-performance/content/keep-ttfb-less-1-3s.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ Reduce as much as you can the time your browser waits before receiving data.
44

55
- [What is Waiting (TTFB) in DevTools, and what to do about it](https://scaleyourcode.com/blog/article/27)
66
- [Monitoring your servers with free tools is easy](https://scaleyourcode.com/blog/article/7)
7-
- [Time to First Byte (TTFB)](https://varvy.com/pagespeed/ttfb.html)
87
- [Global latency testing tool](https://latency.apex.sh)

src/data/best-practices/frontend-performance/content/use-http-cache-headers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
Set HTTP headers to avoid expensive number of roundtrips between your browser and the server.
44

5-
- [Using cache-control for browser caching](https://varvy.com/pagespeed/cache-control.html)
5+
- [HTTP Caching Overview](https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching)

src/data/best-practices/frontend-performance/content/use-non-blocking-javascript.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ JavaScript blocks the normal parsing of the HTML document, so when the parser re
1616
- If you have small scripts, maybe use inline script place above async scripts.
1717

1818
- [Remove Render-Blocking JavaScript](https://developers.google.com/speed/docs/insights/v5/get-started)
19-
- [Defer loading JavaScript](https://varvy.com/pagespeed/defer-loading-javascript.html)

src/data/guides/frontend-languages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ excludedBySlug: '/frontend/languages'
66
seo:
77
title: 'What Front End Programming Languages Should You Learn?'
88
description: 'Get ahead in web development. Discover the essential frontend languages every pro developer uses!'
9-
ogImageUrl: 'https://assets.roadmap.sh/guest/best-front-end-languages-1axiy.png'
9+
ogImageUrl: 'https://assets.roadmap.sh/guest/best-front-end-languages-exm6g.jpg'
1010
isNew: true
1111
type: 'textual'
1212
date: 2024-05-02

src/data/guides/full-stack-vs-software-engineer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ excludedBySlug: '/full-stack/vs-software-engineer'
66
seo:
77
title: 'Full Stack Developer or Software Engineer – Which Way to Go?'
88
description: 'Unsure about your dev career path? Compare full stack developer and software engineer roles to make an informed decision.'
9-
ogImageUrl: 'https://assets.roadmap.sh/guest/full-stack-developer-vs-software-engineer-et7gi.png'
9+
ogImageUrl: 'https://assets.roadmap.sh/guest/full-stack-developer-vs-software-engineer-yy0dk.jpg'
1010
isNew: true
1111
type: 'textual'
1212
date: 2024-05-02

src/data/roadmaps/cpp/content/109-language-concepts/101-type-casting/101-const-cast.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Keep in mind that using `const_cast` to modify a truly `const` variable can lead
99
Here's a code example showing how to use `const_cast`:
1010

1111
```cpp
12+
#include <cassert>
1213
#include <iostream>
1314

1415
void modifyVariable(int* ptr) {
@@ -21,12 +22,15 @@ int main() {
2122
std::cout << "Original value: " << original_value << std::endl;
2223

2324
modifyVariable(non_const_value_ptr);
24-
std::cout << "Modified value: " << *non_const_value_ptr << std::endl;
25+
std::cout << "Modified value: " << *non_const_value_ptr << ", original_value: " << original_value << std::endl;
26+
27+
assert(non_const_value_ptr == &original_value);
2528

2629
return 0;
2730
}
31+
2832
```
2933
3034
In this example, we first create a `const` variable, `original_value`. Then we use `const_cast` to remove the constness of the variable and assign it to a non-const pointer, `non_const_value_ptr`. The `modifyVariable` function takes an `int*` as an argument and modifies the value pointed to by the pointer, which would not have been possible if we passed the original `const int` directly. Finally, we print the `original_value` and the `*non_const_value_ptr`, which shows that the value has been modified using `const_cast`.
3135
32-
Please note that this example comes with some risks, as it touches undefined behavior. */
36+
Please note that this example comes with some risks, as it touches undefined behavior. */
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# DATEDIF
22

3-
The `DATEDIF` function is an incredibly valuable tool for a Data Analyst in Excel or Google Sheets, by providing the ability to calculate the difference between two dates. This function takes in three parameters: start date, end date and the type of difference required (measured in years, months, days, etc.). In Data Analysis, particularly when dealing with time-series data or when you need to uncover trends over specific periods, the `DATEDIF` function is a necessary asset. Recognizing its functionality will enable a data analyst to manipulate or shape data progressively and efficiently.
3+
The `DATEDIF` function is an incredibly valuable tool for a Data Analyst in Excel or Google Sheets, by providing the ability to calculate the difference between two dates. This function takes in three parameters: start date, end date and the type of difference required (measured in years, months, days, etc.). In Data Analysis, particularly when dealing with time-series data or when you need to uncover trends over specific periods, the `DATEDIF` function is a necessary asset. Recognizing its functionality will enable a data analyst to manipulate or shape data progressively and efficiently.
4+
5+
* `DATEDIF` is technically still supported, but wont show as an option. For additional information, see Excel "Help" page.

src/data/roadmaps/qa/content/100-qa-basics/101-tester-mindset.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ Visit the following resources to learn more:
1414

1515
- [The Software Tester’s Mindset](https://softwaretester.careers/the-software-testers-mindset/)
1616
- [How to Think Like a Tester](https://medium.com/@blakenorrish/how-to-think-like-a-tester-7a174ff6aeaf)
17+
- [ISTQB® Foundation Level Syllabus 2018](https://www.turkishtestingboard.org/files/FL-Syllabus-2018-GA.pdf)

0 commit comments

Comments
 (0)