teleren/devto huggingface dataset:
Javascript: Function Declaration vs Function Expression
Published: 2023-10-31 14:13:03

Functions in Javascript are a block of code that execute an action/operation. Functions can take in parameters while being defined and later the parameters shall be passed as arguments while calling. There are, however, two ways in which a function is defined in Javascript based on when the particular function should be executed. One is called Function Declaration and the other way is Function Expressions. There are some differences in the defining and behaviour of the two methods. 

**Function Declaration**
Function declaration is defining a function right off with the keyword "function" followed by function name, with or without parameters. The syntax for function declaration is:
`function exampleFunction (param1,param2, etc){ 
//action to execute 
}`

Here's an example function declaration that takes in two int values for parameters and returns the sum of them:
```
function addition(a,b){
  return sum = a + b
}
```
**Function Expression**
This is the way in which functions are defined and equaled(stored in) to a variable name usually with the keyword _const_. And later the variable name containing the function can be called. Syntax for a function expression is as follows:

`const functionName = function(param1,param2,etc) {
    // action to execute
}`

The same example sum function from above can be defined in an expression as follows:
```
const addition = function(a,b){
  return sum = a + b
}
```

**Major Difference**
Both function declaration and function expression are used in Javascript and its frameworks based on some factors, the main of which is the time when a function has to be called for execution. By default, **function declarations are hoisted**, i.e. they take the top of the order of execution in a block of code irrespective of where they are defined. This way a function can be called either before or after it is defined.

On the other hand, **a function expression is not hoisted**. A function defined through expression is usually executed only in the order of where it is defined, in accordance with the synchronous nature of Javascript. Such a function can be called for execution only after it is defined and not before.
Hello Coders,an exclusive coding event is for You!
Published: 2023-10-31 14:09:19

We are from SRM Easwari Engineering College, Chennai. On Nov 3, we are conducting technical festival that contain one Coding event called PAIR PROGRAMMING.If you are interested in coding competition and you are a College student. Please register here 👇
[](url)https://www.kratos23.com/events/technical/pair_programming
Search Engine Optimization (SEO) #1 - Naming Images & Alternative Texts
Tags: seo, webdev, google, html
Published: 2023-10-31 13:58:13

SEO is an incredibly important topic in web development!
Being well-positioned on Google (or other search engines) is undeniably a crucial goal for a website. Improving your website's position from 8 to 4 in a Google search can lead to an average of four times more visitors, and if you reach position 1, it's an additional twelvefold increase! [1], [2]

In this series of posts, I want to show you what you can do to optimize your site for search engines.

Each post will explain a "to-do" for your website's SEO.

The prerequisite is always that the absolute basics of your website are in place! This means you have relevant content, well-written texts, appropriate keywords for your target audience in your texts, and a clear and appealing website design. This also includes a proper navigation system to make all content easily accessible. If these basics are not in place, further tricks won't do much for your SEO.

Let's start with To-Do #1 for your SEO - Naming Images & Alternative Texts!

You can read the full post [on my website](https://perstarke-webdev.de/posts/seo-one-en).
Testing
Published: 2023-10-31 13:54:26

Testing
=======

### Your Heading Here

Your Heading Description here

![](https://payload.enlume.com/media-images/newserveproduct_eng-3.webp)

### Your Sub Heading here

Your Sub Heading Description here

![](https://payload.enlume.com/media-images/Data-egineering.webp)
Global Day of Coderetreat @ Media.net on November 4, 2023
Tags: coderetreat, mumbai, developers
Published: 2023-10-31 13:50:11

Global Day of Coderetreat is a day to celebrate passion and software crafting. It's held every year around November on the same date all over the world & this year again we are hosting one in Mumbai, graciously sponsored and hosted by Media.net (https://media.net/).

This event is very special, as it's the 14th anniversary of Coderetreat. The first Coderetreat was held 14 years ago on Jan  24, 2009 in Ann Arbor, MI.

Coderetreat is a day-long, intensive practice event focusing on the fundamentals of software development and design. By giving developers the opportunity to take part in focused practice, away from the daily pressure of "getting things done", the Coderetreat format has proven itself to be a highly effective means of skill improvement.

Coderetreat is a language-agnostic event and you'll get to pair-program with many different developers throughout the day on many different programming languages.

This event is free and open to everyone, from students to experienced software developers. However, we have limited seats so register now! Remember to bring your laptop. Tea, coffee, breakfast, lunch and snacks will be served.

Form: https://bit.ly/gdcr23mumbai
Dorm Room Pillows
Tags: room, pillows
Published: 2023-10-31 13:38:53

Heading off to college is an exhilarating adventure, but transforming a bland dorm room into a cozy haven can be a challenge. Amidst textbooks and assignments, the significance of a good night's sleep cannot be overstated. Enter dorm room pillows – the unsung heroes of college living. In this comprehensive guide, we’ll explore the world of [dorm room pillows](https://roompillows.blogspot.com/), from choosing the right ones to creative arrangements, and how they can elevate your dorm room experience, ensuring both comfort and style.
Config Timezone Laravel in Your Project
Tags: laravel, timezone
Published: 2023-10-31 13:35:46

Default project timezone is

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/klz64ed63m8jqe2t45jd.png)

Change to

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/889t29dee8uug0zvsnv4.png)

Restart artisan serve & tinker

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q125kqb0n882djz7amq9.png)

Lalu lakukan proses update data pada record database melalui tinker

Sebelum

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/irx6dhng8s4zwecrtd7s.png)

```
> App\Models\Barang::where('id', 1)->update([
'nama_barang' => 'Pocky Chocolate Mix 5 Stick Gelegar'                                                  ]);
= 1
```

Sesudah

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/68xi27a7stbmdy2n8u5j.png)
Search Engine Optimization (SEO) #1 - Benennung von Bildern & Alternative Texte
Tags: seo, webdev, google, html
Published: 2023-10-31 13:31:48

SEO ist ein unfassbar wichtiges Thema im Web Development!
Bei Google (oder anderen Suchmaschinen) gut gefunden zu werden, ist ohne Zweifel ein wichtiges Ziel einer Website. Wenn du die Position deiner Website bei einer Google Suchanfrage von 8 auf 4 verbesserst, besuchen im Schnitt 4x mehr Personen deine Seite - wenn du auf Position 1 kommst, sind es nochmals 12x so viele!

In den Posts dieser Reihe möchte ich euch zeigen, was ihr tun könnt, um eure Seite für Suchmaschinen zu optimieren.

Jeder Post soll dabei ein „To-Do“ für die SEO eurer Website erklären.

Voraussetzung ist immer, dass die absoluten Basics eurer Website schon stimmen! Das heißt, ihr habt relevante Inhalte, gut formulierte Texte, verwendet für eure Zielgruppe passende Keywords in euren Texten, und der Aufbau und das Design der Website sind übersichtlich und ansprechend. Dazu gehört vor allem auch eine vernünftige Navigation, sodass alle Inhalte leicht zu finden sind. Ist das nicht gegeben, bringen auch weitere Tricks nicht viel für eure SEO.

Starten wir mit To-Do # 1 für eure SEO - Benennung von Bildern & Alternative Texte!

Den vollen Artikel gibt es [auf meiner Website](https://perstarke-webdev.de/posts/seo-one).
Tinker get first data & all
Tags: laravel, tinker, composedata
Published: 2023-10-31 13:25:25

Get First Data

```
> App\Models\Barang::first();
= App\Models\Barang {#6247
    id: 1,
    kode_barang: "PRD-G3921",
    nama_barang: "Pocky Chocolate Mix 5 Stick",
    kategori_barang: "Snack",
    harga: 3000,
    stock: 20,
    sisa: 18,
    created_at: "2023-10-31 13:15:09",
    updated_at: "2023-10-31 13:17:31",
  }
```
Get All data
```
> App\Models\Barang::all();
= Illuminate\Database\Eloquent\Collection {#6240
    all: [
      App\Models\Barang {#6250
        id: 1,
        kode_barang: "PRD-G3921",
        nama_barang: "Pocky Chocolate Mix 5 Stick",
        kategori_barang: "Snack",
        harga: 3000,
        stock: 20,
        sisa: 18,
        created_at: "2023-10-31 13:15:09",
        updated_at: "2023-10-31 13:17:31",
      },
    ],
  }
```
How online management system work for schools?
Tags: software, education, school
Published: 2023-10-31 13:23:13

An online management system for schools, often referred to as a School Management System (SMS) or School Information System (SIS), is designed to streamline and enhance various administrative and educational processes in educational institutions. Here's how these systems typically work:

User Registration and Authentication: Registration: School staff, students, parents, and sometimes even external stakeholders like alumni can register for the system. Authentication: Users are provided with unique login credentials to access the system, ensuring security and data privacy.
Dashboard and User Roles: The system typically offers different user roles, such as administrators, teachers, students, and parents, each with access to specific features and data. The dashboard provides a central hub for users to navigate and access the system's functionalities.
Student Information Management: Schools can store and manage comprehensive student profiles, including personal details, contact information, academic records, and attendance data.
Attendance Tracking: Teachers can record and monitor student attendance electronically, making it easier to track and report attendance trends.
Academic Management: Teachers can input and manage student grades and assignments, which can be easily accessible to students and parents. Schools can create and manage class schedules and assign teachers and students to specific classes.
Fee Management: The system facilitates the management of tuition fees, allowing parents to make online payments, view transaction history, and receive payment reminders.
Communication and Collaboration: The system often includes features like messaging or announcements to facilitate communication between teachers, students, and parents. Teachers can upload resources, assignments, and class materials for students to access.
Library and Resource Management: Schools can use the system to manage the library, including book checkouts and returns, and provide an online catalog of available resources.
Examination and Grade Reporting: The system can help in setting up and conducting online exams and generating report cards, making it easier to communicate student progress to parents.
Report Generation: Schools can generate various reports, such as attendance reports, grade reports, and financial reports, to aid in decision-making and compliance.
Get more Blog
Fraud Detection with Graph Databases and Machine Learning: Unmasking Complex Patterns with Apache AGE
Tags: postgres, apacheage
Published: 2023-10-31 13:19:58

##Introduction
Fraudulent activities have grown increasingly in the digital age. Detecting and preventing fraud requires innovative approaches that can uncover hidden patterns and connections within data. In this endeavor, the combination of graph databases and machine learning stands out as a powerful solution. Apache AGE, a PostgreSQL extension empowering PostgreSQL with graph database capabilities, takes this synergy to a new level with the support of Open Cypher for queries.

##Why Choose Graph Databases and Machine Learning for Fraud Detection?

Traditional databases struggle to represent complex relationships, making them ill-suited for fraud detection, which often involves networks of interconnected entities. Graph databases, on the other hand, excel at precisely this kind of data representation. By incorporating machine learning algorithms, we can harness the power of pattern recognition to identify suspicious activities.

##Key Benefits of Using Apache AGE for Fraud Detection
1. Graph Data Modeling: Apache AGE seamlessly transforms PostgreSQL into a graph database. This means you can represent intricate relationships between entities involved in fraudulent activities, such as accounts, transactions, and connections.

2. Efficient Querying with Open Cypher: Apache AGE employs Open Cypher, a powerful and intuitive query language designed for graph databases. This enables you to traverse the graph and extract relevant information efficiently.

3. Real-time Fraud Alerts: Graph databases, with their ability to query in real-time, allow for immediate detection and alerting of potentially fraudulent activities, minimizing losses.

4. Identifying Complex Patterns: Machine learning algorithms, when integrated with Apache AGE, can uncover subtle patterns indicative of fraud. This includes anomalies in transaction behavior, unusual connections between accounts, and more.

5. Adaptability and Scalability: Apache AGE is designed to handle large-scale datasets, making it suitable for organizations of all sizes. It can adapt to evolving fraud techniques and scale with your business.

Fraud detection is a critical aspect of safeguarding businesses and consumers alike. By combining the strengths of graph databases and machine learning with Apache AGE, you can uncover complex patterns and detect fraudulent activities with unprecedented accuracy and efficiency.

Ready to fortify your fraud detection efforts? Install Apache AGE today and unlock the full potential of graph databases and machine learning in the fight against fraud.

More about Apache AGE here:

GitHub: https://github.com/apache/age
Website: https://age.apache.org/
Tinker Create & Update Record Laravel
Tags: laravel, tinker, datamanipulation
Published: 2023-10-31 13:19:50

Create Record

```
> App\Models\Barang::create([
. 'kode_barang' => 'PRD-G3921',
. 'nama_barang' => 'Pocky Chocolate',
. 'kategori_barang' => 'Snack',
. 'harga' => 3000,
. 'stock' => 20,
. 'sisa' => 18,
. ]);
= App\Models\Barang {#6249
    kode_barang: "PRD-G3921",
    nama_barang: "Pocky Chocolate",
    kategori_barang: "Snack",
    harga: 3000,
    stock: 20,
    sisa: 18,
    updated_at: "2023-10-31 13:15:09",
    created_at: "2023-10-31 13:15:09",
    id: 1,
  }
```

Update Record

```
> App\Models\Barang::where('id', 1)->update([
. 'nama_barang' => 'Pocky Chocolate Mix 5 Stick'
. ]);
= 1
```

Result Update by Tinker

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hkgcmkgjzdwmj2ivvqv3.png)
Ashen Chathuranga
Tags: hack23contributor
Published: 2023-10-31 13:17:00

### Intro
Hi, my name is Ashen Chathuranga, and I am a university student from Sri Lanka. This is my first time participating in Hacktoberfest.
I do love and support the open source community.
this is my [GitHub profile](https://github.com/ktauchathuranga)

### Highs and Lows
I contributed to the Sprig open source club, and I feel really good about it. and i also started a portfolio website, which is still under constructions

### Growth
I was mainly programming python, but I got to learn about JavaScript and C++ while I am contributing to Sprig community and while making my [Arduino Library](https://github.com/ktauchathuranga/MorseEncoder)

My PR's:
https://github.com/hackclub/sprig/pull/1170
https://github.com/hackclub/sprig/pull/1180
https://github.com/hackclub/sprig/pull/1189
https://github.com/hackclub/sprig/pull/1191
Future of Work: How Artificial Intelligence Is Transforming the Job Landscape
Tags: career, ai, community
Published: 2023-10-31 13:16:27

In a world hurtling forward at breakneck speed, the realm of work is undergoing a transformative journey akin to the epic metamorphosis of the iconic Transformers. Unlike the cosmic battle between Autobots and Decepticons, the future of work promises a unique **alliance between Artificial Intelligence (AI) and human creativity**. This captivating voyage envisions AI as the new, innovative coworker, with chatbots becoming water cooler companions, and brainstorming sessions evolving into a thrilling tango between human ingenuity and AI prowess.

Imagine a morning in the office, where the hum of computers mingles with the scent of freshly brewed coffee, and then, like an Autobot awakening from stasis, AI bursts onto the scene. AI-driven automation, resembling Optimus Prime's transformation, elevates mundane tasks to unparalleled efficiency levels. This is not a sci-fi movie but a sneak peek into the future of work.

The integration of AI into work environments is inevitable, promising to reshape businesses and industries. It heralds a revolution in sectors, job roles, and skillsets, fundamentally changing how humans contribute to the workforce. The future of work, with AI at its core, offers endless possibilities and challenges, and the journey has just begun. 

[Join us on this thrilling ride into the landscape of possibilities, as we explore how AI is set to redefine the job landscape. ](https://www.techdogs.com/td-articles/miscellaneous/future-of-work-how-artificial-intelligence-is-transforming-the-job-landscape)
One simple trick to stop bots
Published: 2023-10-31 13:08:32

What’s even more suspicious than detecting a bot user agent? 

No user agent. 

Vulnerability-scanning scripts will suppress passing the user agent to sneak past filters. Requiring a UA is an easy way to keep some malicious bots out of your system.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4dpg6tbg6x1x6kp42pfu.png)
Mistral AI is Making Generative AI Fun!
Tags: ai, genai
Published: 2023-10-31 13:05:17

Imagine a world where **Scooby-Doo**, that lovable mystery-solving Great Dane, is not just a classic cartoon character, but a cutting-edge **Generative AI model named Mistral 7B**. This French startup, **Mistral AI**, is turning the world of generative AI upside down, making it more fun and accessible.

Mistral 7B, based on transformer architecture, can take the spine-tingling adventures of Scooby-Doo and create entirely new, hilarious mysteries. It could even conjure up a realistic Scooby-Doo video game with mysteries that'll keep you at the edge of your seat. But that's not all! Mistral 7B can also whip up the dialogues for Scooby-Doo and the gang or craft the eerie game environments.

**Generative AI is a game-changer in the world of technology**. Mistral AI is leading the charge with an **open-source approach**, **community-backed model development**, and a **socially responsible vision**. Mistral 7B, with its 7 billion parameters, outperforms even models with 13 billion parameters. This French innovator is changing the way we create content, solve problems, and interact with our world.

The possibilities are limitless, and this is just the tip of the iceberg. If you're eager to uncover how Mistral AI is making generative AI not just powerful but fun, you're in for a thrilling ride. So, hop in the [Mystery Machine](https://www.techdogs.com/td-articles/miscellaneous/mistral-ai-is-making-generative-ai-fun), because this adventure is just getting started!

[Read on!](https://www.techdogs.com/td-articles/miscellaneous/mistral-ai-is-making-generative-ai-fun)
Hacktoberfest 2023
Tags: hack23contributor
Published: 2023-10-31 13:04:30

### Intro
Hacktoberfest 2023 is almost over. I took part in it as a novice developer. I have not participated in Open Source projects before.

### Highs and Lows
What did I like? The great feeling that comes with accepting PR. It is truly uplifting.

What did I like less? The crowds. Popular repositories were besieged, every free issue was quickly seized. Waiting times for PR accreditation could also be long - understandably so, but still worrying because Hacktoberfest is a race against time.

Less popular repositories were quieter, but I lacked confidence that they would actually meet Hacktoberfest requirements. 

Because not everyone who declared they met the requirements was actually accepted by Hacktoberfest. There were some large repositories that collected arbitrary code, gathered a lot of traffic and easily accepted PR. The only way to check if there is a problem is to find the issue, as long as someone published it.

On the other hand, repositories that had solid code requirements, such as the existence of tests, typical naming of commits, thorough quality checks - their participation in Hacktoberfest was a sure thing.

Rule of thumb - if there is a crowd, low initial expectations of the code, and no critical comments to accepted PRs - such repositories are better to avoid.

### Prize
Hacktoberfest has given up sending the famous T-shirts. So all you get is satisfaction and a set of virtual stickers. For the fastest - a tree planted in Africa (yes, I have one). But most of all, a start in the new adventure that is Open Source.
Task 4- Manual Testing
Published: 2023-10-31 12:10:26

Manual testing refers to the process of manually reviewing and validating the functionality of a software application without the use of automated testing tools. Testers execute test cases, observe the software's behavior, and report any defects they find. Here are some benefits and drawbacks of manual testing:
Benefits:
1.	Exploratory Testing: Manual testing allows for exploratory testing, where testers can use their creativity and domain knowledge to uncover unexpected issues. This is particularly useful in scenarios where test cases cannot cover all possible situations.
2.	User Experience Evaluation: Manual testers can assess the user interface, user experience, and overall usability of the application from a human perspective. This is essential for ensuring that the software meets user expectations.
3.	Early Detection of Usability Issues: Manual testing is effective in identifying usability issues and inconsistencies in the application's design and workflow, contributing to a better user experience.
Drawbacks:
1.	Time-Consuming: Manual testing can be time-consuming, especially when repetitive test cases need to be executed across multiple iterations. Automated testing can significantly speed up repetitive tasks.
2.	Limited Repetitiveness: Humans may get bored or tired, leading to errors in repetitive tasks. Automated tests excel in executing the same set of tests repeatedly without fatigue or loss of focus.
3.	Not Suitable for Regression Testing: Manual testing can be impractical for large-scale regression testing, where numerous test cases need to be executed with each software update. Automated tests are more efficient in this context.