teleren/devto huggingface dataset:
Don't expect a change in IT
Tags: discuss
Published: 2022-04-20 07:01:50

---
title: Don't expect a change in IT
published: true
description: 
tags: discussion
cover_image: "https://www.cio.com/wp-content/uploads/2021/12/change_management-100622806-orig.jpg?quality=50&strip=all"
---

I've been in the IT sector, as a developer mainly, for about 10 years, and although new technologies arise every day, sadly some things aren't changing/improving such as job interviews.

From my latest experience, I did an interview with a company and they LOVED me, they became so desperate to get me. A few days later I did another interview with another company, and they gave me such a horrible feedback which equals to "is this person a developer even?".

How come some developers (interviewers) see that you are good and others think that you are bad, even when they ask almost exactly the same questions?

Maybe we finally need a STANDARD to qualify and rate developers skills. I wrote about this about 5 years ago, and now I am geting interviewed again, and I find this exact same problem still exists, exactly how it was 5 years ago.

I'm thankful that I have much more confidence now than before, but still, even if you have the confidence of the whole world, couple of rejections (and negative feedback) will hit your confidence (and psyche) hard.

We need to have this discussion more often so this problem gets fixed, especially to the newcomers who often complain about this annoying problem.

I do believe there are qualified people who can come up with SCIENTIFIC way to test the skills of a developer and through it determine if that person is junior/mid/senior, and also determine how much of the desired Tech the developer knows and so on. We need these people to gather up and figure it out.

Tell me, my friends, what STANDARDS do you want to see in IT, especially when it comes to job interviews? Maybe we can start this here together.
To collaborate on GitHub by fork
Published: 2022-04-20 06:56:17

## How we worked on the group project:
1. Came up with ideas
2. Talked about the structure and library we could use
3. Set our goal: Leaning how to collaborate with Git by fork
4. Learned and Practiced the workflow of GitHub fork
5. Set a timeline and Used "Trello" to trace the progress
5. Assigned tasks to each one
6. Had several meeting to make sure everyone worked well and were on the same page
7. Wrapped up

## Noted down the workflow of GitHub fork:

Step 1. Fork the repo
Step 2. Clone the forked Repository
```
cd folderName
git clone https://github.com/Your-GitHub-Username/github-practice
```
step 3. Create my feature branch
```
git checkout -b myOwnBranchName
```
step 3.1 Work on my part and push to my remote repository

```
git add . 
git commit -m “......”
git push origin myOwnBranchName(feature)
```
Step 4.1 Check if the develop branch has ever changed
(Do it every time I resume my work)

```
git fetch upstream 
git checkout main
git merge upstream/develop
```
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/azjgfaya7smbei2wus1a.png)
 
Step 4.2. Push to my own remote repository

```
git push origin main
```
Step 5 Merge synchronized main to my local feature branch which I am currently working on 

```
git switch(or checkout) yourOwnBranchName(feature)
git merge main
```

> if merge conflict happens, go step6. 

Step 6. Manage the conflict 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a048oj77xx0ja72janwx.png)

step 6.1. Send a pull request
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3779mud21a12u0q02v0y.png)
 
step 7. Push to my own remote repository after merge

```
git push origin myOwnBranchName(feature)
```
Laravel 8 Blade While Loop Example
Tags: laravel
Published: 2022-04-20 06:51:24

Originally posted @ https://codeanddeploy.com visit and download the sample code: https://codeanddeploy.com/blog/laravel/laravel-8-blade-while-loop-example

In this post, I will share a basic example of a while loop in Laravel blade. I will show you how to implement a while loop in the Laravel 8 blade. You will learn a simple way how to do it and apply it to your Laravel 8 project.

 

The while loop checks the condition first if true then the code it will be executed. If evaluated to false, the execution will be terminated.

 

The while loop iteration value of the current array element is assigned to $value and the array pointer is moved by one until reaches the last array element.

 

## Laravel Blade While Loop Syntax:


```php
@while (condition)

//block of code to be executed;

@endwhile
```
 

## Laravel Blade While Loop Example:

```php
<!DOCTYPE html>
<html>
<head>
<title>Laravel 8 Blade While Loop Example</title>
</head>
<body>
@while ($id < 10)
//The id is less then 10;
@endwhile
</body>
</html>
```

I hope this tutorial can help you. Kindly visit here https://codeanddeploy.com/blog/laravel/laravel-8-blade-while-loop-example if you want to download this code.

Happy coding :)
DEVOPS VS MLOPS
Tags: machinelearning, devops, datascience, ai
Published: 2022-04-20 06:25:09

## What is DevOps ?

**DevOps is a software development methodology that combines multiple teams to coordinate and collaborate to produce better, more reliable products.**

**DevOps aims to shorten development cycles, increase deployment velocity and create dependable release.**

## What is MLOps ?

**MLOps helps simplify the management, logistics, and deployment of machine learning models between teams and machine learning researchers.**

**From a naive perspective MLOps is the fusion of traditional DevOps processes in the context of data science and machine learning.**

## Difference between MLOps and DevOps.

MLOps is DevOps for ML while it is true to some extent, there are challenge typical to ML that need to be addressed by MLOps platforms.

**Difference-1 : Versioning**

In the traditional software application, code versioning tools are used to track changes. But ML is experiment in nature, we try a lot of things to find what works best for the problem as quickly as possible.

The challenge is tracking what worked and what didn't, and maintaining reproducibility while maximizing code reusability.

**Difference-2 : Testing**

Testing an ML system is more involved than testing other software systems. In addition to typical unit integration tests, you need data validation, trained model quality evaluation, and model validation.

**Difference-3 : Deployment**

Deployment isn't as simple as deploying an offline-trained ML
model as a prediction service. ML systems can require you to
deploy a multi-step pipeline to automatically retrain and
deploy model.

**Difference-4 : Monitoring**

Once a model is deployed into production, it begins to generate predictions from new data that it receives from the real world.

This data will continue to change and adapt as the business environment does, resulting in model degradation.

There are multiple dimensions of monitoring such as covariate shift, prior shift, among others

## Similarity between MLOps and DevOps

ML and other software systems are similar in continuous integration of source control, unit testing, integration testing, and continuous delivery of the software module or the package.

However, in ML, there are a few notable differences:

- CI is no longer only about testing and validating code and components, but also testing and validating data, data schemas, and models.

- CD is no longer about a single software package or a service, but a system (an ML training pipeline) that should automatically deploy another service (model prediction service).

- CT is a new property, unique to ML systems, that's concerned with automatically retraining and serving the models.

**CI - Continuous integration**
**CD - Continuous delivery/deployment**
**CT- Continuous training**
Laravel 8 String studly() helper function Example
Tags: laravel
Published: 2022-04-20 06:49:18

Originally posted @ https://codeanddeploy.com visit and download the sample code: https://codeanddeploy.com/blog/laravel/laravel-8-string-studly-helper-function-example

In this post, I will show you an example of a Laravel 8 string helper called studly. This function will help us to convert any strings to a studly case format. This is useful if you are processing a generated function for a method or class generator or in any text processing. To start with studly() helper function we need to import it to your class.

```php
use Illuminate\Support\Str;
```
Then calling the helper function with Str class. See the below example:

```php
Str::studly('foo_bar')
```
The advantage of this Laravel helper function will support strings that have space, underscore and hypen. See below the actual code example.

 

## Laravel Studly Example:

```php
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Str;

class HomeController extends Controller
{
    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
    public function index()
    {
        $studly1 = Str::studly('foo_bar');
        
        print_r($studly1);
        // output - FooBar

        echo '<br>';

        $studly2 = Str::studly('code and deploy');
        
        print_r($studly2);
        // output - CodeAndDeploy

        echo '<br>';

        $studly3 = Str::studly('free-tutorials');

        print_r($studly3);
        // output - FreeTutorials

        echo '<br>';

    }
}
```

## Laravel Studly Result:
FooBar
CodeAndDeploy
FreeTutorials

I hope this tutorial can help you. Kindly visit here https://codeanddeploy.com/blog/laravel/laravel-8-string-studly-helper-function-example if you want to download this code.

Happy coding :)
Clojure's lazy sequence versus transducer benchmark
Tags: clojure, transducer, benchmark
Published: 2022-04-20 06:42:17

---
title: Clojure's lazy sequence versus transducer benchmark
published: true
description: 
tags: clojure,transducer,benchmark
//cover_image: https://direct_url_to_image.jpg
---

According to [this thread](https://tiny.tilde.website/@pho4cexa/108159532840534785), I compared using only lazy sequences with transducers.

To add the I/O factor, I prepared a data file called "fake.txt" using the program below:

```Clojure
(with-open [w (io/writer "fake.txt")]
  (doseq [n (range 10000000)]
    (.write w (str n "\n"))))
```

F1 is the lazy-sequence-based version. It reads data from "fake.txt" and does a few steps of computations.

```Clojure
(defn f1
  []
  (with-open [r (io/reader "fake.txt")]
    (->> (line-seq r)
         (map parse-long)
         (map inc)
         (filter even?)
         (map inc)
         (reduce + 0))))
```

F2 is the transducer-based version of F1.

```Clojure
(defn f2
  []
  (with-open [r (io/reader "fake.txt")]
    (transduce (comp (map parse-long)
                     (map inc)
                     (filter even?)
                     (map inc))
               +
               (line-seq r))))
```
I evaluated them using Criterium.

```Clojure 
(with-progress-reporting (quick-bench (f1) :verbose))
(with-progress-reporting (quick-bench (f2) :verbose))
```

Here is the result.

```
#################### F1 ###################
Evaluation count : 6 in 6 samples of 1 calls.
Execution time sample mean : 3.811858 sec
Execution time mean : 3.812064 sec

#################### F2 ###################
Evaluation count : 6 in 6 samples of 1 calls.
Execution time sample mean : 1.490624 sec
Execution time mean : 1.490777 sec
```

F1, which is the lazy sequence version,  took 3.812064 seconds. F2, which is the transducer version, took 1.490777. So the transducer version is 155.71% faster than the lazy sequence version.

In brief, this biased experiment shows the transducer version is much faster than the pure lazy sequence version.
Day 11: I saved my streak
Published: 2022-04-20 06:41:51

Hi
Yesterday I didn't post not becaues I quit but due to internet. It was raining heavily and I lost connection for the rest of the night but I maade sure I wrote my daily post, save it in a text file locally to post it the following day. I have taken it so serious that I almost forgot to write and got to sleep to get back to the computer to write my daily post

so today I did some work on my assigned task and I attended a meeting about public speaking. As I was wroking on my task I was able to learnabout `typeORM` which we are using on the project we are building specifically extending the `baseEntity` to make model methods more cleaner and consise
I didn't get a chance to continue on my personal project and I expect to get more busier in the upcoming days so I don't know if I will be able to work on it before Friday but we will see

signing off...
How to Check if Image is Loaded or not in jQuery?
Tags: jquery, javascript, tutorial
Published: 2022-04-20 06:38:38

Originally posted @ https://codeanddeploy.com visit and download the sample code: 
https://codeanddeploy.com/blog/jquery/how-to-check-if-image-is-loaded-or-not-in-jquery

In this post, I will show you an example of how to check if the image is successfully loaded using jquery. If you need to check if the image is loaded on page load then this post is for you. Sometimes we need to check and display to the user if a specific image element was loaded successfully.

 

Here is the code example:

```php
<script type="text/javascript">
	$('.your_image_class')
	.load(function(){
		console.log("Image loaded succesfully!");
	})
	.error(function(){
		console.log("Error occurred when loading image.");
	});
</script>
```

I hope this tutorial can help you. Kindly visit here https://codeanddeploy.com/blog/jquery/how-to-check-if-image-is-loaded-or-not-in-jquery if you want to download this code.

Happy coding :)
How to Get Table using Model and Table Columns in Laravel?
Tags: laravel
Published: 2022-04-20 06:29:15

Originally posted @ https://codeanddeploy.com visit and download the sample code: https://codeanddeploy.com/blog/laravel/how-to-get-table-using-model-and-table-columns-in-laravel

In this post, I will show you how to get a table name using the model and the table columns in Laravel 8. If you need to generate the table name using the model and display the table columns, this post is for you.

 

Currently, I'm doing a task that will get the assigned table in the model and display the table columns.

 

So here is the code on how to do it. In your controller method add this code.


```php
/**
 * Display a listing of the resource.
 * @return Renderable
 */
public function index()
{   
    $model = '\App\Models\User';

    if(method_exists($model, 'getTable')) {
        // Get table name using model
        $tableName = (new $model)->getTable();
        // Get table columns
        $tableColumns = Schema::getColumnListing($tableName);

        print_r($tableColumns);
    }
}
```
Result:


```
Array
(
    [0] => id
    [1] => name
    [2] => first_name
    [3] => last_name
    [4] => email
    [5] => username
    [6] => email_verified_at
    [7] => password
    [23] => created_at
    [24] => updated_at
)
```

Now you have an idea of how to extract the model table name and get all columns into it.  

I hope this tutorial can help you. Kindly visit here https://codeanddeploy.com/blog/laravel/how-to-get-table-using-model-and-table-columns-in-laravel if you want to download this code.

Happy coding :)
Laravel 8 Logout Redirect Implementation
Tags: laravel
Published: 2022-04-20 06:27:00

Originally posted @ https://codeanddeploy.com visit and download the sample code: https://codeanddeploy.com/blog/laravel/laravel-8-logout-redirect-implementation

Do you want a sample code on how to add Laravel 8 logout redirect? In this post, I will give you an example and implementation of how to do it. After we log out our user we need to redirect it in a specific route so this is an important task if you're handling this.

 

To shorten this post please follow our previous post about [Laravel logout.](https://codeanddeploy.com/blog/laravel/laravel-8-logout-for-your-authenticated-user)

 

In our Logout Controller, we will add our Laravel logout redirect so that the authenticated user will be redirected to the specific route.

 

Here is the code sample below.

```php
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Session;

class LogoutController extends Controller
{
    /**
     * Log out account user.
     *
     * @return \Illuminate\Routing\Redirector
     */
    public function perform()
    {
        Session::flush();
        
        Auth::logout();

        return redirect('your_route');
    }
}
```
I hope this tutorial can help you. Kindly visit here https://codeanddeploy.com/blog/laravel/laravel-8-logout-redirect-implementation if you want to download this code.

Happy coding :)
How to import raw file with import.meta.glob() funciton of vite.js
Tags: vite
Published: 2022-04-20 06:18:07

When I use SvelteKit for blog system and I wanted to import markdown file as raw, so I use function of vite lie below
```

import.meta.glob('../data/*.md')

```

But it didn't work.
Then the function occured error like below.
```
throw new Error(Parse failure: ${err.message}\\nContents of line ${line}: ${code.split('\\n')[line - 1]});
```
Because I didn't configure settings of .md file.
I could solve the problem with vite-raw-plugin.
Want to find flaws in your design? Start writing support docs for the product
Tags: product
Published: 2022-04-20 06:11:35

Every new product design seems perfect, while it’s still in the head of it’s author. Everything is clear, consistent and evident.
Even the stage of composing sponsor pitches and marketing content — dedicated to describing the overall idea and why it is good — does not help much to think about the downsides and possible bottlenecks.

Without investing much resources into development and testing you can discover the majority of corner cases and difficult questions by simply writing texts and scripts for the support team or site pages.

Doing this, you’ll have to other way but to think through every single step of the user scenarios, describe every single interface element and what it does, come up with solutions for every possible problem a user might encounter.

Well, alright, that depends on your imagination — whether you’ll find the most intricate ways to break the standard scenario. But at least you’ll start breaking the idea into detailed descriptions and facing possible obstacles.

A useful trick here will be the question ‘What if I can’t do that?’. Take your standard persona and user scenario and describe the ideal session with your app, service or site. Make your description detailed enough, down to the actions like ‘I click the app icon on my iPhone home screen’ or ‘I log in’ or ‘I fill in my card number and CVV’. And for every step of this description ask yourself two questions:
* how did I get here? This question is relevant to all entry points for you to remember about app distribution, installation processes etc
* what if I can’t do that? What if I can’t log in? Is the signup/signin process simple enough? What if I can’t fill in my card number because I don’t have it with me? What if I can’t proceed with hailing a taxi because my GPS is faulty and the service can’t determine my position? What if I can’t send the confirmation code because my network is suddenly down?

You really don’t have to answer all these questions right there in the support docs (although you maybe should?), but they will help you plan backups, workarounds, discover bottlenecks and potential blockers. Useful stuff, isn’t it? And just this simple.
Internal products are a dead end for product managers?
Tags: product
Published: 2022-04-20 06:08:32

There are huge companies in the world. Lots of employees, lots of specific software for internal use only. Do the product managers of such internal products and services gain product management experience, valuable enough for them to later successfully find jobs in the outer world?

Key issues with internal products are as follows:
* product people have lots of contact with their users, but their users in most cases do not have free choice between competing products on the market — they are bound to use the company-wide product (usually just one, be it internally created or bought/contracted). Not much market analysis in day-to-day work
internal products’ users do not directly pay for sessions or licenses. Mature businesses can somehow assess the ‘cost’ or ‘revenue’ of usage, but product metrics are usually not measured in money units. That creates lack of experience with GMV, revenue, profit and other money-oriented areas, very important for independent products in the wild
* some (if not all) products may be fully or partly a commercial know-how under an NDA agreement, so the product manager cannot even talk freely about them at interviews
* even if not NDA-covered, internal products and their context are not widely known to potential employers, so it’s difficult even to describe what you did and what was the goal and how success was measured

So, managers of internal products — are they a good potential hire or hopelessly stuck with their current company and it’s choices? Well, that’s a decision for HR and hiring managers to make, but if you are in this position, here’s what you can do to help yourself go un-stuck.

At interviews, when speaking about your products, try to use analogies. Most likely there are commercial products doing the samw thing as your product does.

The same analogies will help you out if your product details are under NDA. You will have to constantly comment on the differences, but otherwise that’s a good way out.

Engage in public events, so that your name gets somehow known, if not the name of your product. Reputation helps to cover blank spots without details.

Try to broaden your experience theoretically if not practically. Join ProductHunt or maybe start your own product analysis of different public solutions and platforms. You can practice the skills not needed for your job as a hobby and present that for interviewers if needed.

The most difficult issue to cover is hands-on experience with live money: you cannot play with unit economics theoretically so that it would produce some experience close enough to reality. Well, if you don’t have a pet product in wild market to play with, then read a lot about money product skills and wait for a chance to apply them. Nothing else to do? Or is there?