teleren/devto huggingface dataset:
Naming Conventions: Four popular cases
Tags: dotnet, codequality, codereview, cleancoding
Published: 2023-07-30 13:34:32

In software development and programming, choosing the right naming convention is important for maintaining code readability and consistency. Four common naming conventions are common used: Camel Case, Pascal Case, Snake Case, and Kebab Case. Each has its power and best practices.

## Camel Case:
Camel Case is a naming convention where words are joined together, and each word's first letter, except the first one, is capitalized. It is commonly used in programming languages like Java, JavaScript, and C#. This convention is useful for naming variables, functions, and methods.

> Example: camelCaseExample

## Pascal Case:
Pascal Case is similar to Camel Case, but the first letter of the word is also capitalized. It is often used for naming classes, interfaces, and other types in various programming languages, including C#, C++, and Swift.

> Example: PascalCaseExample

## Snake Case:
Snake Case is a naming convention where words are separated by underscores (_) with all lowercase letters. It is commonly used in Python for naming variables, constants, and sometimes functions.

> Example: snake_case_example

## Kebab Case:
Kebab Case is similar to Snake Case, but instead of underscores, words are separated by hyphens (-). It is frequently used in URLs, HTML attributes, and CSS classes.

> Example: kebab-case-example

## .NET and Naming Conventions:
In the .NET ecosystem, the most widely used naming convention is Pascal Case for class names and Camel Case for method names and variable names. Microsoft's official C# coding conventions recommend using Pascal Case for public and protected class names and methods. Private methods and variables follow Camel Case.

## Example in C#:

```
public class EmployeeData
{
    private string employeeName;

    public void SetEmployeeName(string name)
    {
        employeeName = name;
    }

    public string GetEmployeeName()
    {
        return employeeName;
    }
}

```

Using consistent naming conventions in .NET makes the codebase more organized and promotes readability for developers working on the project.

## Conclusion:
Choosing the right naming convention is important in writing clean and readable code. While Camel Case and Pascal Case are more prevalent in general programming and .NET development, Snake Case and Kebab Case are favored in specific contexts like Python and HTML/CSS. Understanding the strengths and best practices of each naming convention allows developers to make informed decisions based on the language, context, and project requirements. 

<a href="https://www.buymeacoffee.com/bytewhisper" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-blue.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
Discover the Power of Data Visualization with Tableau
Tags: datascience
Published: 2023-07-30 13:31:11

## Introduction
[Tableau](https://intellipaat.com/blog/what-is-tableau/), a leading data visualization tool, empowers developers and analysts to unlock the potential of their data. In less than 200 words, let's explore the highlights of Tableau and its impact on the developer community.

With Tableau's intuitive drag-and-drop interface, users can create stunning interactive visualizations, dashboards, and reports without the need for complex coding. It supports various data sources, including spreadsheets, databases, and cloud services, making data integration seamless.

Developers can leverage Tableau's robust analytics capabilities to derive valuable insights from their data. From basic calculations to advanced statistical models, Tableau offers a wide range of analytical tools to help users make data-driven decisions effortlessly.

## Collaboration and Sharing
Collaboration is made easy with Tableau's cloud-based sharing and publishing options. Users can securely share their visualizations and collaborate with colleagues, fostering a data-driven culture within organizations.

Tableau also enables developers to embed visualizations into web applications, enhancing user experiences and providing valuable insights to clients and end-users.

Moreover, Tableau's commitment to innovation and user-driven enhancements ensures that developers always have access to cutting-edge features and capabilities.

## conclusion
Tableau has revolutionized data visualization, making it accessible to developers and analysts of all levels. Its user-friendly interface, powerful analytics, and collaboration features make it an indispensable tool in the data-driven world. Embrace Tableau to transform your data into actionable insights and propel your development projects to new heights.
[ktor] Create Fun To Get Food - Part 2
Published: 2023-07-30 12:18:40

## Create RouteFood

when you call 

-  http://127.0.0.1:8080/food you can get random food

- http://127.0.0.1:8080/food/1 you can get foodlist 2


```
fun Route.getFood(){
    get("/food/{index}"){
        try {
            val index = call.parameters["index"]?.toInt()
            index?.let {
                val result = Food.foodList[index]
                call.respond(
                    HttpStatusCode.OK,
                    result
                )
            }
        }catch (e : IndexOutOfBoundsException){
            call.respond(
                HttpStatusCode.ExpectationFailed,
                "Error:IndexOutOfBoundsException"
            )
        }catch (e : NumberFormatException){
            call.respond(
                HttpStatusCode.ExpectationFailed,
                "Error:NumberFormatException"
            )
        }
    }
}

fun Route.randomFood(){
    get("/food"){
        call.respond(
            HttpStatusCode.OK,
            Food.foodList.random()
        )
    }
}
```

## Important !!! Is Add this function to ConfigureRouting

fun Application.configureRouting() {
    
    routing {
        getFood()
        randomFood()
        get("/") {
            call.respondText("Hello World!")
        }
        // Static plugin. Try to access `/static/index.html`
        static("/static") {
            resources("static")
        }
    }
}

## Final 

![result-1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/48q3hra1jh9ns4lnbcvi.png)


![result-2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vvadcvvo6fdzz0eembhr.png)
[ktor] Generate Ktor Project - Part 1
Tags: ktor, android, backend, programming
Published: 2023-07-30 12:17:58

## Ktor Project Link And Setting

https://start.ktor.io/


![setting-1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yh7x8jq5md7g034w6p2h.png)



![setting-2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5x8o98jrkyt4sa6j88l1.png)

## Download Project And Start it !


![setting-3-start](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qtiu4fhy6ahvpw3z2nsr.png)

## Put Food Images 

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

## Create Model - Food

```
const val BASE_URL =  "http://127.0.0.1:8080/"

data class Food(
    val name : String,
    val description : String ,
    val imagePath : String
){
    companion object{
        val foodList = listOf<Food>(
            Food(
                name = "PorkRice",
                description = "basil minced pork with rice fried egg",
                imagePath = "$BASE_URL/static/food/food1.jpg"
            ),
            Food(
                name = "BBQ Chinese Food",
                description = "bbq grill cooked with hot spicy sichuan pepper sauce is chinese herb",
                imagePath = "$BASE_URL/static/food/food2.jpg"
            ),
            Food(
                name = "French fries",
                description = "crispy french fries with ketchup mayonnaise",
                imagePath = "$BASE_URL/static/food/food3.jpg"
            ),
            Food(
                name = "Vegetable",
                description = "This is Vegetable",
                imagePath = "$BASE_URL/static/food/food4.jpg"
            ),
            Food(
                name = "Noodle",
                description = "Great noodle !!",
                imagePath = "$BASE_URL/static/food/food5.jpg"
            ),
        )

    }
}

```

## Final Start Again To Test Image 

example:
http://127.0.0.1:8080/static/food/food2.jpg 


## Get Food Image File From GitHub Plz

https://github.com/encorex32268/com.example.anyprojectnamehere
Laravel Real-Time Log Monitoring
Tags: laravel, php, webdev
Published: 2023-07-30 12:05:58

Professionally viewing Laravel logs is critical for identifying and debugging problems in your application. We can easily check our logs in local environments by saving them to local, but this is a time-consuming process in live environments.

In this section, I'll show you packages that will provide you with a graphical user interface that will allow you to easily check all of our logs, such as errors, warnings, and debug messages. From there, we can also clear / delete our log files. Daily logs are preferable because they make it easier to trace logs.

Let's look at how we can incorporate that package into our existing Laravel application.

## Installation

It is recommended to use the _opcodesio _ package for Laravel running on PHP 8 and higher.

To use composer to install the package, type `composer require opcodesio/log-viewer`.

After installing the package, run `php artisan log-viewer:publish` to publish the front-end assets.

_Usage_

Once installed, you will be able to access Log Viewer directly from your browser.
By default, the application is available at: `{APP_URL}/log-viewer`.

(for example: `http://{your-project}/log-viewer`)

It is recommended to use the `arcanedev` package for Laravel running on PHP 7 and lower.

You can install this package using Composer by issuing the following command: `composer require arcanedev/log-viewer:x.x`, where `x.x` is the compatible version for your Laravel version.

`composer require arcanedev/log-viewer` for risk takes like me 

This for the version you are sure of
`composer require arcanedev/log-viewer:~4.7.0` for Laravel 5.8
`composer require arcanedev/log-viewer:~4.6.0` for Laravel 5.7
`composer require arcanedev/log-viewer:~4.5.0` for Laravel 5.6
`composer require arcanedev/log-viewer:~4.4.0` for Laravel 5.5
`composer require arcanedev/log-viewer:~4.3.0` for Laravel 5.4
`composer require arcanedev/log-viewer:~4.2.0` for Laravel 5 > 5.3

Set this in your `.env` file `APP_LOG=daily` for Laravel 5.5 and below.

### Artisan commands

Run the following command to publish the configuration `php artisan log-viewer:publish`

#DONE!
Go to `http://{your-project}/log-viewer`

The error `join(): Passing glue string after array is deprecated` might appear. If you want to view the log according to the date at `http://your-project/log-viewer/logs/2023-07-30` you may receive a 504 Error or a 503 Error, depending on whether the debug mode is enabled in your `.env` file.

## Fix
Go to your project directory locate `resources/views/vendor/log-viewer/bootstrap-4` edit `show.blade.php` find `join(log_styler()->toHighlight(), '|')` and replace with `join('|', log_styler()->toHighlight())`

Enjoy the rest of your day as a programmer
WHAT IS EQUALITY IN JAVASCRIPT?
Tags: javascript, beginners, programming, webdev
Published: 2023-07-30 12:01:36

*In this short article, you will understand
1) How to use Equality in JavaScript
2)Understand the basics of Logic operators *


*What is Equality and how to use them in JavaScript?*



In JavaScript, equality refers to comparing two values to see if they are the same.(==,===)
Do not be confused, when you see `const toDay = saturday`, in JavaScript this means declaration of variable or assignment and not equality.

*JavaScript has two ways of comparing two values*

1)Loose Equality Operator `==`
The Loose equality operators does type coercion, which means converting a string to a number before comparing them.
`'18' == 18, ouput: true`
`the above means  string == number is true`


2) Strict Equality (===):
The best way to compare values in JavaScript.
The strict equality operator compares both the values and their types without type coercion (meaning without converting a string to a number).
It returns true only when both sides are exactly true.

`example '18' === 18 = false
18=== 18 = true`


Examples 


`const age = '20'
a) if(age === 20) console.log(You can drive)`

`b) if(age == 20) console.log(you can drive)`

From the above two if statements (a) is strict so the code will not be executed.

If statement (b) Is Loose, and it supports type coercion which means string '20' is equal to number 20. The `you can drive` will be executed.


Example 2
a)

`const foodNumber = '25'
if(foodNumber == 25) console.log('Number 25 is Rice')`
`output:Number 25 is Rice`

The above code will be executed because `==` converts foodNumber which is a string to a number 25 and immediately compare them.


b)

`const foodNumber = 25
if(foodNumber == 25) console.log('Number 25 is Rice')`
`output:Number 25 is Rice`

The above code will also be executed because 25 (number) is equal to 25(number).


Example 3
a)

`const foodNumber = '25'
if(foodNumber === 25) console.log('Number 25 is Rice')`
`This code will not be executed `
Because foodNumber is a string and === don't support type coercion.
The method for handling the issue of developer account expiration causing app removal
Tags: ios
Published: 2023-07-30 11:58:40


When the developer account expires and the app is taken down, you should follow these steps to handle the issue:
1. Log in to the developer account.
2. Click on "Account" in the upper right corner and select "Renew."
3. Enter the credit card information, making sure to use a Visa-supported bank card.
4. After renewing, wait for approximately 24 hours for Apple to automatically reinstate the app.
5. The app that has already been downloaded on users' devices can continue to be used normally.
Please note: It is important to promptly renew the Apple developer account after it expires to avoid the app being taken down. After renewing the membership, make sure to agree to the Paid Applications Agreement in the "Agreements, Tax, and Banking" section on iTunes Connect.
We are aware that an expired app certificate can also lead to failures during the submission process. In this case, we recommend a useful tool called AppUploader.
How to use AppUploader to create an Apple certificate:
I. Certificate Management:
* Click on "Certificate Management" on the homepage.
II. Creating a Certificate: - Click on "Add" to create a new certificate file. - Please note that free accounts have a validity period of only 7 days and do not have push notification functionality. Push certificates are used for configuring notifications on websites, not for packaging and compiling apps. - Free accounts can only create development certificates and cannot submit or publish apps, nor can they use Apple Login, payment, or push notification functionalities. The red-circled part represents the development certificate, while "distribution" is for distribution certificates, and "managed" is for managed certificates. Both of these require a $99 payment to Apple.
III. Synchronizing Certificates with AppUploader Service: - By selecting the option "Synchronize certificates with AppUploader service," you can download and use this certificate on different computers. This allows you to upload the IPA file to the App Store for Apple's review without needing a Mac computer or Xcode, making it simple and convenient.

Once the certificate is created, save the file in the desired location. The certificate is in .p12 format and does not require conversion.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1eba2z3e1wjf6omd7o9f.png)
Method for Dealing with App Demolition Due to Developer Account Expiration
Published: 2023-07-30 11:56:23

Method for Dealing with App Demolition Due to Developer Account Expiration
To handle the issue of an app being taken down due to an expired developer account, follow these steps:
1. Log in to your developer account.
2. Click on "Account" in the upper right corner and select "Renew."
3. Enter your credit card information, ensuring you use a Visa-supported bank card.
4. After renewing, wait for approximately 24 hours for Apple to automatically reinstate your app.
5. Users who have already downloaded the app on their devices can continue using it normally.
Please note: It is important to promptly renew your Apple developer account to avoid your app being taken down. After renewing your membership, make sure to agree to the Paid Applications Agreement in the "Agreements, Tax, and Banking" section on iTunes Connect.
Additionally, if you need to create a certificate, you can use the AppUploader service. Here are the steps to create a certificate:
1. Go to the homepage of AppUploader and click on "Certificate Management."
2. Click on "Add" to create a new certificate file.
3. Choose between a development certificate or a distribution certificate, and save the certificate file (usually in .p12 format).
4. If you need to sync the certificate across different computers, select the option "Synchronize certificates with AppUploader service." This allows you to easily upload and download the certificate on different devices.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h9rjm2w299c1j43xmxz5.png)
By following these steps, you can address the issue of an app being taken down due to an expired developer account and successfully reinstate your application. Additionally, if you need to create a certificate, you can use the AppUploader service to streamline the process.
🚩 The Rise of Feature Toggle Tools and Open Standards 🔒
Tags: openstandards, softwareengineering, development, featuretoggle
Published: 2023-07-30 11:37:27


Are you keeping up with the latest trends in software development? If not, you might be missing out on a game-changing practice called "Feature Flagging." 🚀

Feature flagging, also known as feature toggling, is a development technique that allows developers to turn certain features on or off without deploying new code. This approach brings numerous benefits to both developers and businesses, making it a hot topic in the tech industry. Let's explore the reasons behind the rise of Feature Toggle Tools and Open Standards!

🔧 Increased Flexibility: Feature flagging allows developers to control feature releases, making it easier to test new functionalities in production. By toggling features, teams can roll out updates incrementally, reducing the risk of bugs affecting all users. This flexibility is a game-changer when it comes to delivering stable and reliable software.

🔄 Continuous Delivery: Embracing feature flags can streamline the continuous delivery process. Gone are the days of long release cycles and disruptive deployments. With feature flagging, you can push code to production more frequently and then gradually enable it for users at your own pace.

🛡️ A/B Testing Made Easy: Feature flags are a powerful tool for conducting A/B tests and gathering valuable user feedback. By segmenting your audience and exposing different groups to various features, you can quickly assess what resonates best with users, leading to data-driven decision-making.

🔒 Security and Risk Mitigation: In today's digital landscape, security is paramount. Feature flags can act as a safety net by allowing quick feature rollbacks if a critical bug or vulnerability is discovered. This added layer of protection can save you from potential disasters.

⚙️ Embracing Open Standards: The growth of feature flagging has led to the development of open standards in this area. Open standards foster collaboration and innovation by enabling different tools to interoperate seamlessly. This creates a vibrant ecosystem where developers can choose the best solutions for their specific needs.

If you're eager to dive deeper into the world of feature flagging, I recommend checking out this informative website: http://ff.adarshgoyal.com/ 🌐 It's an excellent resource to learn more about feature flags, best practices, and how to implement them effectively.

Let's stay ahead of the game by embracing #openstandards, #featureflags, and #opensource solutions. Feature flagging is the way of the future, and those who adopt it early will undoubtedly gain a competitive advantage in the ever-evolving tech landscape. Happy coding! 💻🚀

#softwaredevelopment #techinnovation #agiledevelopment
WHAT ARE THE TYPES OF SCHEMA MARKEUP?
Tags: schema, onlinetool, marketing, codeziper
Published: 2023-07-30 11:14:11


Here,
Schema markup is used on websites to provide multiple types of data, entities, and relationships.

Our Team Has Noted A Common Widely Used Schema Markup Type Shown Below:

1. **Organization Schema**: Organization Schema is a type of schema markup that provides information about an organization's name, logo, website, contact information, and social media profiles.

2. **Local Business Schema**: Local Business Schema is a type of schema markup that provides information about a local business. and that provides information about the business's name, address, phone number, hours of operation, website, and reviews.

3. **Review Schema**: Review Schema is a type of schema markup that provides information about a review of a product, service, reviewer's name, date of the review, rating, or other item.

4. **Website Schema**: Website Schema is a type of schema markup that provides information about the website's title, description, keywords, and author.

5. **Article Schema**: Article Schema is a type of schema markup that provides information about an article or blog title, author, date published, keywords, and summary.

6. **Product Schema**: Product Schema is a type of schema markup that provides information about the product's title, description, price, availability, reviews, and images.

You can read our blog about schema markup and also generate schema markup yourself.

**Our tool about schema markup:**
https://codeziper.com/online-tools



Thanks & regards
Team Codeziper
VS Code Snippets
Tags: vscode, productivity, tutorial
Published: 2023-07-30 11:11:48

VS Code snippets is an easy way to create a template for recurring code blocks or front matter for certain files. We will look at a small example here for a Zettelkasten header.

Here, we have a snippet that will be triggered by "---" followed by Ctrl + Space. Intellisense will also pick it up and suggest the same as well. 

- Name of the snippet: We have named it Test
- Prefix: The trigger that would invoke the snippet. "---"
- Body: The conent to be added.
- Description: A small description of what the snippet is for.

```json
"FrontMatter": {
    "prefix": "---",
    "body": [
        "---",
        "title: $1",
        "date: \"$CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE\"",
        "type: ${2|Daily,Literature,Permanent,Index|}",
        "description: $3",
        "tags: [$4]",
        "---"
    ],
    "description": "FrontMatter"
    }
```

Inside the body, we have a lot of control. 
- Parameters defined by $1, $2, etc, that can be cycled through quickly using tab.
- Date or time that can be auto populated.
- Set a list of values that can be quickly selected and restricted.

A small gif showing the snippet in action.


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