teleren/devto huggingface dataset:
PHP vs Nodejs
Tags: programming, computerscience, node, php
Published: 2021-09-10 12:38:50

Hi All,
This is my first blog related to PHP and Nodejs. I will go through compare both this technologies and let's understand both languages!

##**What is PHP?**##
PHP (Hypertext Preprocessor) was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994. It is highly used languages for creating websites. More than 45% of the Website Still use PHP.
Some of successful websites which are now globally still uses PHP like Facebook, Wikipedia, Tumblr, Slack, etc...

##**What is Nodejs?**##
In 2009, Node js was born by Ryan Dahl. The idea was the pick-up V8 engine (V8 is an open-source JavaScript engine developed by the Chromium Project for Google Chrome and Chromium web browsers) out side of web browser so can executes javascript codes at server side. Node js is not language but it is open source run-time environment for back-end scripting for in javascipt.
Node js uses by popular companies like Uber, Trello, PayPal, etc..

##**Which one you should Learn?**##
For Learning purpose you can dirty your hands on both. PHP is easy to learn and can create a website easily with only some of knowledge of html and css and can deploy with one click. 
While in Nodejs You must understand asynchronous behaviour and syntax of javacript. It's not big deal, but must have knowledge of async/await, callbacks, promises, modules, prototypes.

##**Which one you should pick for next project?**##
Well, This is interesting. Both languages have their own pros and cons. It does mean that you can not build same application in either PHP or Node js. It depends on requirements of project. 
If you need build a blogging, E-commerce website then PHP best suitable. 
If you building realtime application like location based or chat application then node js best. Node js also ideal when frontend technologies are also javascript framework like reactjs OR Angular.

*Happy Coding!*
My experience as a participant of Open Source Challenge by OSCA
Tags: opensource, challenge, github
Published: 2021-09-10 12:34:53

In this article, I will briefly highlight about my experience in an open source challenge organized by Open Source Community Africa (OSCA) - A community of creative minds driving the Open Source movement in Africa.

**What exactly is an Open Source Project?**
Open Source Projects are designed to be publicly accessible for anyone to modify or use.

Below are some of the experiences i gained in the course of contributing to open source;

1. I had the opportunity to learn how to write documentation, identifying issues and fix bugs.

2. My communication skills improved greatly from feedbacks and constructive criticisms.

3. Participating in the open source challenge improved my technical skills. I learnt how to write clean code, interprete and maintain existing codebases.

Learn more about OSCA:
https://oscafrica.org
https://github.com/oscafrica/open-source-challenge-2021
Tor - the dark web driver
Tags: tor, darkweb, anonymous, security
Published: 2021-09-10 12:24:59

The Dark Web could be a very scary but fun place to be (just like earth), where everyone go around all masked up.

Tor is free, open-source software that helps you stay anonymous online. At first glance, it operates just like a normal web browser. But beneath the surface, there’s a lot more going on. Tor randomly directs all your traffic through a network of servers around the world, wrapping it in several layers of encryption to keep it safe from prying eyes.

You can think of this encryption like the layers of an onion; in fact, **Tor** actually stands for **“The Onion Router.”**

Tor allows you to:
- Browse Privately.
- Explore Freely.
- Defend yourself against tracking and surveillance.
- Circumvent censorship.

___
The Tor project mission from the website
![Tor mission](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t2baxnquterb187bbr07.png)
___

Also you can only use the Tor browser to go around the dark web (.onion sites) 🤔
###Here are some interesting onion sites you won't want to miss:
- **Wasabi Wallet** — A virtual Bitcoin wallet that lets you manage your cryptocurrency anonymously.
_Wasabi Wallet URL_: http://wasabiukrxmkdgve5kynjztuovbg43uxcbcxn6y2okcrsg7gb6jdmbad.onion

- **DuckDuckGo** — A search engine that indexes .onion sites and doesn’t track your search history or use ad trackers.
_DuckDuckGo URL_: https://duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion/

- **The Hidden Wiki** — A directory of the Dark Web that helps you locate pages and tools that may be of interest to you.
_The Hidden Wiki URL_: http://zqktlwiuavvvqqt4ybvgvi7tyo4hjl5xgfuvpdf6otjiycgwqbym2qad.onion/

- **ProtonMail** — A secure email service that keeps you anonymous.
_ProtonMail link URL_: https://protonirockerxow.onion/

___

### Here are some tips to use the Dark Web as safely as possible:

- Don’t click links that you aren’t familiar with.
- Use the correct URL to ensure you don’t connect to a malicious onion site. If you’re unsure, confirm the URL from multiple sources first.
- Never use your personal email address to sign up for anything — use a secure Dark Web email service to make a new account.
- Use strong passwords that are unique for every individual account and enable two-factor authentication.
- Avoid connecting through proxy services like Tor2Web. While proxies let you connect to .onion websites through your regular browser, they’re not secure and may put your data at risk.
- Cover your webcam and microphone to prevent anyone from spying on you.
- Don’t download anything, as hackers may try to trick you into installing malware.
- Use extreme caution before buying anything, as Dark Web marketplaces are filled with scammers.

___

To get started, visit the [official website](https://www.torproject.org/) to download the Tor Browser.
PS: _**Always stay safe & Have fun.**_
Here's your chance to see what happens in the backend of the eCommerce platform Magento❗
Tags: magento, api, postman, restapi
Published: 2021-09-10 12:23:41

In this article, I've demonstrated how you can create a simple product using the POST request.

https://medium.com/@prathore28647/creating-products-using-magento-api-733a960463b5

Don't forget to follow me on Medium if you find it useful.

Prost 🍻
OSD600 - Week 1
Tags: opensource
Published: 2021-09-10 12:00:27

Hi, I'm Kien Nguyen. I'm currently 5th semester student studying Computer Programming & Analysis at Seneca College. This semester, I take OSD600 - Open Source Development as my professional course. This is the first time that I explore this field. 

The reason I chose this course is how interesting Open Source is. I can approach many open source software, add features that I think it is beneficial to the users, or modify existing feature that I think it is not convenient for users to use. Otherwise, it is also beneficial to the owner of open source software. The owners may receive new ideas or feedback on their existing project. Open Source encourages the collaboration between the owner and new programmers. Unlike any programming course I taken before, the task was writing code following Professor's instructions. OSD600 would give me a new experience to work on any projects in the world that I feel it is interested to me. Working on Open Source project will solve real problems in the real world.

I'm currently in my home country - Vietnam due to the COVID pandemic. But I will be back to Canada soon. The open source community is worldwide. As I search for #trending open source projects, the results come from every country in the world. Wherever I am right now, I can still work on open source project and discuss with other contributors.

My target for this semester is to effectively contribute to an open source project. Also, working on project like this would consolidate any programming knowledges that I experienced so far (especially C++ because I passionate about it) and open a wide networking for me. I'm currently looking for projects that are helpful to most of the computer users, who are in any fields of work. 

While searching for #trending open source project in this month, I found an project that interests me, which is about Cloud File Browser. There are two reasons why I like this concept. Firstly, nowadays, everyone using a computer in whatever work field do need to manage the files they work. This project is helpful to upload, download and modify your files or even execute coding program, which is helpful to programmers, too. Secondly, it is on the Cloud. Cloud makes it easier to access your files anywhere with any machines. As I can see so far, people tend to buy a laptop with minimum storage (128 or 256GB) because they would subscribe to a Cloud storage on their OS. For example, Apple users frequently subscribe for the Cloud storage for only $3.99 monthly to get 200GB or even $12.99 monthly for 2TB. With this Cloud File Browser, users can manage their files conveniently.
You can take a look at this project on Git Hub: https://github.com/filebrowser/filebrowser
Enjoy Programming-Themed Humor? Here's today's daily developer joke!
Tags: jokes, dailydeveloperjokes
Published: 2021-09-10 12:00:04

---
title: "Enjoy Programming-Themed Humor? Here's today's daily developer joke!"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1258ab6087f.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit._

<!--
Joke text:
___Q:___ Where did the parallel function wash its hands?

___A:___ Async
 -->
Teamwork is Hard Work!
Tags: agile, softwaredevelopment, teamwork
Published: 2021-09-10 11:52:49

---
title: Teamwork is Hard Work!
published: true
date: 2021-09-10 11:51:55 UTC
tags: agile,softwaredevelopment,teamwork
canonical_url: https://medium.com/chingu/teamwork-is-hard-work-9e92afebb9ab
---

#### Sprint 2 — Friday

![](https://cdn-images-1.medium.com/max/1024/1*eTcLUCbl6DejIxCJGNdMcQ.jpeg)<figcaption>Photo by <a href="https://unsplash.com/@belart84?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Artem Beliaikin</a> on <a href="https://unsplash.com/s/photos/labor?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption>

Sprint 2 is where teams realize that technology is the easy part of a project. The hard part is working effectively and in harmony as a team.

This is especially true for teammates who up to now haven’t had a lot of team experience. _You don’t know what you don’t know until you know it_, which is why we believe it’s important for individuals and teams to reflect on their workflow and how they deal with problems when they are encountered.

> You don’t know what you don’t know until you know it

Problems and conflict will occur and it’s important to not ignore them. Reflecting on them starts by asking hard questions for each one.

- What was the issue?
- How was it discovered?
- What different options, alternatives, or opinions were available to best to resolve it?
- Did conflict arise when deciding which solution to pursue?
- Was the discussion civil and respectful? If not, when did it become difficult and why?
- Did everyone on the team have the opportunity to express their thoughts?
- Were everyone’s opinions given thoughtful consideration? Did I listen to what others had to say?
- Was I open to other opinions or was I constrained by my ego?
- What could the team and I do differently to manage situations such as this?

![](https://cdn-images-1.medium.com/max/1000/1*mY3xxoSNem8zkLGJvr6RQw.png)

To get the most from this type of reflection you can structure the conversation in this way to get the best outcome:

1. Define the shared outcome you want
2. Conduct your discussion objectively, dispassionately, and without ego
3. Practice active listening (see [https://tinyurl.com/m64qch3)](https://tinyurl.com/m64qch3))
4. Agree on what you will do differently

### Before you Go!

Chingu helps you to get out of “_Tutorial Purgatory_” by transforming what you’ve learned into experience. The experience to boost your Developer career and help you get jobs.

You can learn more about **Chingu** & how to join us at [https://chingu.io](https://chingu.io/)

* * *
My Portfolio - First look ever
Tags: webdev, html, css, csharp
Published: 2021-09-10 11:34:40

Hello to my second post. I just created my personal portfolio and I'm really excited about it, so I wanted to share it with you. It's nothing special. Basically, it's just a website with some nice CSS and some basic motions.

🖥️It's written in HTML and CSS, mostly, but I created in ASP.NET Core so it has a lot C# code, too. Basic motions are written in JavaScript. The whole website is hosted on a Microsoft Azure App Service.

The link for the site is visible on my ([profile](https://dev.to/techgian)) and ([here](https://gianniszapantis.azurewebsites.net/)).

Hope you like it! I'm waiting for your comments😀
10 FREE Udemy courses for you to learn the basics of Web Development
Tags: codenewbie, webdev, javascript, beginners
Published: 2021-09-10 11:11:33

_If you found value in this thread you will most likely enjoy my tweets too so make sure you follow me on [Twitter](https://twitter.com/VladPasca5)  for more information about web development and how to improve as a developer. This article was first published on my [Blog](https://vladpasca.hashnode.dev/)_

1. Web Development Fundamentals 90 Minutes

https://www.udemy.com/course/web-development-fundamentals-in-one-hour/

2. Web Development For Freelancers

https://www.udemy.com/course/web-development-for-freelancers/

3. Web development for Beginners

https://www.udemy.com/course/web-development-for-beginners-basics/

4. Start Coding from Zero

https://www.udemy.com/course/start-coding-from-zero/

5. Foundations of Front-End Web Development

https://www.udemy.com/course/foundations-of-front-end-development/

6. Fun & Easy Introduction to Web Development

https://www.udemy.com/course/fun-easy-web-development-for-beginners/

7. Learn Web Development by Creating a Social Network

https://www.udemy.com/course/meteor-tutorial/

8. JavaScript HTML CSS Project make a Quiz Tutorial

https://www.udemy.com/course/javascript-html-css-project-make-a-quiz-tutorial/

9.  Learn HTML & CSS: How To Start Your Web Development Career

https://www.udemy.com/course/how-i-landed-a-web-development-job-earned-5k-freelancing/

10. Master the Basics of HTML5 & CSS3: Beginner Web Development

https://www.udemy.com/course/master-the-basics-of-html5-css3-beginner-web-development/

_I hope found this useful and if you did please let me know. If you have any questions feel free to DM me on  [Twitter](https://twitter.com/VladPasca5)._
Do Colleges teach Programming properly?
Published: 2021-09-10 11:09:18

Whether colleges truly teach programming properly or not is a subjective matter. I would like to have my take on this. Several key factors play a role, to shape up a student in his/ her programming journey. These factors can include stuff like how much rating the college has, what sort of professors do the college has, and lastly, the type of curriculum & teaching methods the college undertakes. 

Talking from my own personal experience, I had to face several hurdles and invest a lot of time to learn programming on my own from the Internet as opposed to relying on the teachings from college. Our college follows a very classic teaching style in India which emphasizes more on mugging up and theories as opposed to practical classes. Even during practical classes we would be sitting on our chairs and writing 'notes' on our 'exercise books' by looking at the board as opposed to actually typing some code on the computer. Although, I must admit that it is true that we were taught everything from the very basics; starting from the syntax to basic programming language like C to concepts on data structures, but despite learning so much, I truly didn't feel that I  learned something productive which I could actually use in real life to build something.

The thing is, most of these Colleges don't really teach us 'Computer Science'. A person who truly understands Computer Science would be able to make productive usage of the Software available to him, and 'build' something which could benefit the society. In order to build that piece of software, knowing some syntaxes of a programming language and some data structures is not enough. What really needs to be taught are code 'frameworks' instead of the language itself. If you learn the framework then you will automatically be able to use the language.

After investing some time in the past few weeks, to learn JavaScript and React to make actual 'projects'; it came to my realization that how important project based learning truly is. To add to that, learning to use a powerful tool like GitHub for the first time made me sit and think if the college education is even needed at all or not. After learning to use Git , I can't even fathom the fact that the Colleges don't teach something so basic yet so important to the Students which in turn would inevidently help them in future as it is used everywhere in the industry.

So to conclude my short blog, I would like to say it again that yes , colleges indeed don't teach programming properly (for the most part). To change this, there needs to be a change in the curriculum and the way it is taught. There is absolutely no reason to have theory classes or at least 80% of it should be non-theory. Students should learn to code by 'typing' it themselves; and instead of focusing on 'learning C' or 'learning Java' , they should focus on learning frameworks, and build projects. They will understand things on their own.
Error Page
Tags: codepen, html, css, webdev
Published: 2021-09-10 10:53:13

<p>Error page using HTML and CSS :)</p>

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f4xfl57c47i64g5z0amx.png)

CodePen Link:
https://codepen.io/sanketbodke/pen/BaZWgaq

Github:
https://github.com/sanketbodke/CodePen
How to debug
Tags: beginners, programming, mentor
Published: 2021-09-10 14:52:49

---
title: How to debug
published: true
date: 2021-09-10 10:52:00 UTC
tags: beginners, programming, mentor
canonical_url: https://craignicol.wordpress.com/2021/09/10/how-to-debug/
cover_image: https://craignicol.files.wordpress.com/2018/01/dsc_0196.jpg?w=1200
series: mentor
---

_Congratulations on your first day on your first software job._

Like many of your peers, you’re starting on support. Because reading other people’s code gives you a great feel for what’s nice to work with and what isn’t, and dealing with customers helps you understand what’s important and what isn’t. You will write better software knowing both these things.

But as this is day 1, we’re not going to expect you to rush in and fix everything. Take your time to look around and understand things. Your first bug fix is as much about learning the process as it is about fixing the problem. Because the process exists to help make sure this bug is fixed now and forever, and that this fix doesn’t break something else.

You wouldn’t fix a smoke alarm by removing the batteries, although that will disable the alert. Let’s find the root cause and fix that instead.

From experience:

1. Treat it like science : have a hypothesis and test it. Don’t just randomly change things.
2. Make notes on every hypothesis, test and discovery. One of them will be important but you likely won’t realise it at first.

{% twitter 1300453638859563015 %}

And once you’ve fixed it, do self-retro. What went well, what didn’t go so well, what do you wish you knew, what are you going to research to prepare for next time, what are you going to publicise about this fix for the next person to sit in your seat?

Well done on fixing this bug. There’ll be another along in a minute.

_How will you write your next feature to make this easier next time? How will you write it so the next time is less frequent? How will you pay things forward to help the next developer, who may well be your future self?_
How To Check If jQuery Is Loaded?
Tags: javascript
Published: 2021-09-10 10:39:48

## TL;DR Summary

Easiest way to check if jQuery is loaded is by trying to use it.

However if this check is going to be part of some other logic (not just one-off test you do during development), then your entire code will break (throw an error).

So to prevent this you need to wrap it up with `try-catch` blocks like this:
```js
try {
  $('#mydiv').text('WORKING!!!');
} catch {
  document.getElementById('mydiv').innerText = 'BROKEN!!!';
}
```
And that's it.

## More Details

Obviously there could be some exceptions (although very rare) to the above example.

First of all let me provide you with the full code that was used to generate the image on the top:

```html
<!DOCTYPE html>
<html>

  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>CyberBotMachines</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <script
      src="https://code.jquery.com/jquery-3.6.0.min.js"
      integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
      crossorigin="anonymous">
    </script>
  </head>

  <body>
    <style>
      body { 
        background-color: royalblue; 
        padding-top: 300px;
        font-size: 100px; 
        text-align: center;
        color: yellow;
      }
    </style>

    <div id="mydiv">TESTING jQuery ...</div>

    <script>
      try {
        $('#mydiv').text('WORKING!');
      } catch {
        document.getElementById('mydiv').innerText = 'BROKEN!';
      }
    </script>

    <script src="script.js"></script>
  </body>
  
</html>
```
And that will result in the screen like this:
![how to check if jquery is loaded success](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mw11jgi21k7awulp57n0.png)

Regarding the exceptions I mentioned earlier, it is possible that some other library is also using the same handle `$` as jQuery.

And that's why we couldn't use simpler solution like this:
```js
if ($) {
  alert('working');
} else {
  alert('not working');
}
```
(also this throws an error if `$` is not declared so your entire code breaks, or you have to wrap this in `try-catch` as well)

But it is far less likely some other library will define variable `jQuery` by accident. And another option you have is to use this piece of code below to check if jQuery is loaded. And also this code will not throw an error if jQuery is not loaded.
```js
if (window.jQuery) {
  console.log('jQuery is loaded');
} else {
  console.log('jQuery is not loaded');
}
```

And that is all there is to checking whether jQuery is loaded or not.

Until next time,
*Will*
*[Building an Algo-Trading Hedge Fund From Scratch](https://programmermoney.com/)*
Building a Security Alert App With a Portable Panic Button [Case Study]
Tags: appdevelopment, smartbutton, portfolio, securityalertapp
Published: 2021-09-10 10:15:56

Discover everything you need to know about personal security app development. From key functionality to tips based on our experience developing a portable panic button app. 
* What is an emergency alert app?
* What are the main features of an emergency notification app?
* Who can benefit from it?
* Security alert app development: An effective alternative to a panic button app case study

Read more here: [https://apiko.com/blog/emergency-alert-app-development-how-to-ensure-safety-with-personal-panic-button-case-study](https://apiko.com/blog/emergency-alert-app-development-how-to-ensure-safety-with-personal-panic-button-case-study)