teleren/devto huggingface dataset:
Are there things you see in others' code that just automatically makes you twitch/shudder
Tags: discuss
Published: 2019-10-25 14:10:25

---
title: Are there things you see in others' code that just automatically makes you twitch/shudder
published: true
tags: discuss
---

I'll admit that I'm a shite coder. That said, there's stuff I see that always makes me shiver when I see it in others' code I've been asked to review. Like, this morning, someone sent out an installation script (BASH) for installing HBSS on production systems. While there was much I didn't like about the script's contents the thing that made me straight-up shudder was the script-author kept using `echo -e "\n<MESSAGE_STRING>"`. Me? If I need to do something like output-formatting in a BASH script, I use `printf`. (Ab)Using the `echo` built-in, that way, just makes me go all..

![twitchy](https://thepracticaldev.s3.amazonaws.com/i/9c8smlc01kk0v0vz3rvu.gif)
1_000_000_000 = 1000000000
Tags: python, beginners
Published: 2019-10-25 14:39:08

---
title: 1_000_000_000 = 1000000000
published: true
date: 2019-10-25 14:06:39 UTC
tags: python, beginners
canonical_url: https://wangonya.com/blog/python-digit-separator/
---

With [Python 3.6+](https://www.python.org/dev/peps/pep-0515/), you can make long numbers in your code more legible by separating the digits with underscores. 

```sh
Python 3.7.4 

>>> x = 1_000_000_000 
>>> x
1000000000
```
Completed hacktoberfest19 challenge
Tags: hacktoberfest, opensource
Published: 2019-10-25 14:05:04

Always wanted to contribute to open source but this time i have done it just  because of Hacktoberfest2019 challenge. I opened 10 PRs within 3 days and all of them got merged. Thanks to whole hacktoberfest19 team. 
 #firststep #contribution #opensource  #githubcoder #githublover #hacktoberfest #digitalocean #dev.to 
 P.s: things which i learned from this challenge:
1. How to open a pull request.
2. How to open an issue.
3. Some git commands.
4. How to work on another dev's code.
Moral Support credit:Himanshu Maggu(Room-mate), who
encouraged me to complete this challenge.
Object Hash Pattern in Ruby
Tags: rails
Published: 2019-10-25 14:03:03

---
title: Object Hash Pattern in Ruby
tags: rails
published: true
---

## 🤔 Situation
You have a class. You want to store objects of it.

```ruby
class Card
  attr_accessor :name, :g, :last, :called

  def initialize(name)
    @name = name
  end
end
```


### 🤔 Array?
This is ok. But when you use it, you have to check what the element is.

```ruby
@cards = []
[:paprika, :tomato, :cabage].each do |name|
  cards << Card.new(name)
end
```

## 🦄 Hash
I like this way.

```ruby
@cards ={}
[:paprika, :tomato, :cabage].each do |name|
  cards[name]= Card.new(name)
end
```

You can get the object by the key of the object name.

```ruby
def put(card_name)
  @cards[card_name].last = true
end
```

## 🤩 HELP
I don't know the real name of this pattern. If you know it, I'm happy if you leave a comment.

---

## 🔗 Parent Note
{% link n350071/my-rails-note-47cj %}
I built a YouTube Music clone
Tags: showdev, clone, css, html
Published: 2019-10-25 13:41:29

I’ve recently discovered YouTube Music, and it’s currently my favorite audio streaming service.  I used it for a while, and then thought it would be cool to be able to upload my own music to the player.  Since that’s not an option (and because I’m a nerdy developer), I decided to build my own version of YouTube Music that I could host my own songs on.  It uses responsive CSS and HTML to provide a sleek desktop music experience.  Currently it doesn’t actually play the music; I’m working on that.  However, feel free to check out the interface (the songs are dummy songs; they don’t exist).  

https://YouTube-Music-clone--micahlt.repl.co

Once I complete the project, it’ll be moved to GitHub pages, so stay posted!  The underlying technologies are:

* Google Fonts
* FontAwesome
* CSS
* HTML
* JavaScript

**Thanks for reading, and if you liked this post or thought it was useful, be sure to drop a follow if you're viewing on Dev.to or Hashnode, or put my [RSS feed](https://blog.micahlindley.com/rss.xml) through your favorite feed reeder!**
Joining the mentorship movement, getting started repo, and poll. 
Tags: mentor, career, poll
Published: 2019-10-25 13:40:04

---
title: Joining the mentorship movement, getting started repo, and poll. 
published: true
description: A post about mentorship
tags: mentor, career, poll
---

Not too long ago @molly_struve posted [yes you should be a mentor](https://dev.to/molly_struve/yes-you-should-be-a-mentor-49j6), and it immediately sparked an idea. I have mentored some of my colleagues along the way for years, but nothing really formal. Also another good read from @flippedcoding [how to be a good software engineer mentor](https://dev.to/flippedcoding/how-to-be-a-good-software-engineer-mentor-4b)

I signed up at https://mentors.codingcoach.io/ I'll be honest I have much to learn about how to be a mentor, but in the mean time I created a repo [fab-mentorship](https://github.com/kodaman2/fab-mentorship) where any developer can contribute to the repo with the means of having useful information you would have love to have when you started. Could also improve your late hacktoberfest stats if you haven't finished :)

All contributions are welcome, and the structure is open for discussion but below is what I have so far. I'll admit I have a bit of OCD when it comes to tree structures.

join us [discord server](https://discord.gg/vdmRxjn)


```
├───Career-Tips       
├───Docs              
│   └───Coding-Coach  
├───Getting-Started   
│   ├───Algorithms    
│   ├───Basics        
│   └───Patterns      
├───Language-Specific 
│   ├───Java          
│   └───Python        
├───Misc              
│   └───Google-Fu     
├───Resources         
│   └───Side-Projects 
├───Stories           
├───Tech-Paths        
└───Tools             
    ├───Editors       
    ├───Git           
    └───Terminals     
```

I would also love some help deciding which might be the better programming language for beginners by voting in this poll. I am leaning towards python but maybe other people have better ideas.

[programming language poll](https://docs.google.com/forms/d/e/1FAIpQLScwu20e77MijONPIPHQaC-Viu5E3A41rmIDVm6SCEdt7Ydu1Q/viewform)

If you have a cool story and want to remain anonymous you can email it to me directly. Let's create something awesome together!
Comment marketer ses programmes
Published: 2019-10-25 13:28:46

Les trois principales sections du personnel des organismes communautaires sont habituellement la gouvernance (le conseil d'administration), l'administration centrale ou les opérations générales (directeur exécutif, bureaux centraux, etc.) et les programmes. Les organismes sans but lucratif gèrent habituellement leurs produits et services (aux clients) sous forme de programmes. Les services du programme aux clients sont la principale raison pour laquelle cela existe. Il est donc essentiel de savoir comment planifier et commercialiser les programmes avec une bonne stratégie marketing (https://fouineteau.fr).

Il y a souvent beaucoup de malentendus au sujet du marketing. Les gens considèrent souvent que le marketing est la même chose que la publicité. Ce n'est pas le cas. La publicité n'est qu'une partie du marketing. Le marketing est la vaste gamme d'activités qui vous permettent de vous assurer que vous continuez à répondre aux besoins de vos clients et d'obtenir de la valeur en retour.

L'analyse de marché comprend la détermination des groupes de clients (ou marchés) existants, de leurs besoins, des groupes de clients que vous préférez servir (marchés cibles), des produits ou services que vous pourriez développer pour répondre à leurs besoins, de la façon dont les clients préfèrent utiliser les produits et services, de ce que font vos concurrents, des prix que vous devez utiliser et de la façon dont vous devriez distribuer les produits et services aux clients. Les résultats de cette analyse de marketing indiquent la position, ou "créneau" du marché, à partir duquel il peut travailler et être perçu comme ayant. Le marketing comprend également les promotions en cours, qui peuvent inclure la publicité, les relations publiques, les ventes et le service à la clientèle. Différentes méthodes d'études de marché sont utilisées pour obtenir des informations sur les marchés, les marchés cibles et leurs besoins, les concurrents, les tendances du marché, la satisfaction des clients par rapport aux produits et services, etc.
Live Release v4.0.0.RC.2 and Community Hangout - 2019-10-26
Tags: hangout, community, hoa, phalcon4
Published: 2019-11-01 20:54:49

---
title: Live Release v4.0.0.RC.2 and Community Hangout - 2019-10-26
published: true
date: 2019-10-25 13:26:34 UTC
tags: hangout,community,hoa,phalcon4
canonical_url: 
---

Time for a new release and community hangout! v4.0.0.RC2 will be released tomorrow during our monthly hangout with the community! You might not want to miss it!

Join us on Saturday the 26th of October 2019, at 12:00:00 EST (16:00:00 UTC), to talk about our progress, address concerns and find solutions to common problems and release **v4.0.0.RC2**.

You will be able to get an insight on what it takes for a new release to be prepared and made available for everyone.

We will hold this virtual meeting on a live event in YouTube. The URL for the hangout is:

[https://youtu.be/sIuXxCry\_fc](https://youtu.be/sIuXxCry_fc)

Slides: [https://docs.google.com/presentation/d/1Y\_8Rul0xwt2SheJav7ZwgEfsbisebCl6dDYx3XdJHeg/edit?usp=sharing](https://docs.google.com/presentation/d/1Y_8Rul0xwt2SheJav7ZwgEfsbisebCl6dDYx3XdJHeg/edit?usp=sharing)

Topics to discuss:

- Introduction, welcome to all attendees
- Thank you to the whole community and contributors
- Status update since last hangout
- Live Release v4.0.0.rc.2
- Videos (Source Code)
- Documentation
- Devtools
- Sample applications (vokuro etc.)
- Q/A

Looking forward to hearing from all of you and seeing you during the hangout.

\<3 Phalcon Team
How to know that you are ready to become a developer
Tags: resume, career, cv
Published: 2019-10-25 12:36:45

Career Development - A guide for your future!

Today it’s not uncommon for an individual to change their career advice choice or to move into another career entirely at least once in their working lifetime, and for many, they may change careers three or more times. Career development, therefore, is essential to know and understand.
Illustration for an article titled Career Development = Online Career Guides.

Career development is the path an individual travels and the procedures they follow in choosing a career. A career is a work an individual does or plans to do, for a considerable length of time, and something they plan on becoming good at.

Writing a CV is one more crucial part on your way. Many people failed to get an interview call because of the poor resume, despite the fact they were great professionals. People, who can't write a good resume on their own always find help from a [resume writing service](https://resumebros.com/).

[The career development process](https://codepen.io/pagejoooon/details/Poomgvx) is the examining of your necessary skills, how well you handle stress, your abilities, and interests in working with others, and schooling or training that you complete entering the career advice. Online Career Guides development is the plan you design to assist you in advancing through your career guides, to be flexible as needed, and to be alert to trends and patterns to help further develop your career.

Equally critical is a [careful examination of your current job](https://www.glassdoor.com/blog/outgrown-current-job/) and career guides situation. Did you jump into the job because you needed the money? Does the job have a future? Are you progressing in your online career? Or are you unhappy, not motivated, and burdened by stress or other job-related problems? This situation may not be productive for the employee and even less so for the employer.

Now maybe the time to do some study about the career field they have an interest in. Self-study, on job training, traditional or online learning may be involved. Besides, the more you know about a particular career, the more focused it will be on your career development plan.

Studying career development, you will learn it isn’t just about education. Training and education will always help move you in the right direction and allow you to fine-tune your career development plan.


However, you’ll learn through self-examination what your interests are, what you’re good at, how well you have the necessary skills to perform at a high level in whatever career you choose.

Many educational institutions offer career development classes or assessment centers to help direct you into the right career. There are a plethora of free career assessment tests on the internet to help you define your interests and career goals.

From this wealth of information, whether you want to advance in your present career or make a career change, career development planning can be an essential strategy to guide you in reaching your career goals.
Meilleur ordinateur pour jouer et pour coder
Published: 2019-10-25 13:22:00

Lorsque vous commencez à coder, l'une des premières questions que vous vous posez est de savoir quel est le meilleur ordinateur ?

Quel ordinateur dois-je utiliser pour apprendre à programmer ? Vous aurez besoin d'installer des outils de développement logiciel pour écrire du code et vous ne pouvez le faire que sur des ordinateurs de bureau ou portables avec des systèmes d'exploitation complets tels que Windows, Mac OS, ou Linux. Même les vieux ordinateurs sont très bien, surtout avec Linux. Vous ne pouvez pas utiliser les téléphones ou les tablettes parce qu'ils n'ont pas de système d'exploitation complet. https://gtxgamer.fr

Cette question comporte plusieurs aspects. Vous vous demandez peut-être :

    Dois-je utiliser un PC ou un Mac pour coder ? Et qu'en est-il de Linux ?
    Dois-je utiliser un ordinateur de bureau, un ordinateur portable ou une tablette ?
    Puis-je utiliser mon téléphone pour apprendre à coder ?
    J'ai un ordinateur plus ancien. Dois-je acheter un nouvel ordinateur ?
Introducing wtfuzz: A video series about testing and open learning
Tags: video, javascript, testing, learninpublic
Published: 2019-10-25 11:51:54

---
title: Introducing wtfuzz: A video series about testing and open learning
published: true
description: We're launching a new YouTube series that'll cover testing fundamentals and unmock-js
canonical_url: https://meeshkan.com/blog/introducing-wtfuzz-video-series/
tags: video, javascript, testing, learninpublic
---

Any other JavaScript developers out there feel like they can write tests, but don't necessarily understand the underlying concepts? 🙋‍♀️

Yeah, me too.

And this was exactly what I told my boss when I started as an Open Source Engineer at [Meeshkan](http://meeshkan.com/) earlier this month. I've been working as a frontend developer for the past two years and I've written _a lot_ of tests, but I never took the time to really learn the fundamentals.

A large part of my role at Meeshkan will be building and maintaining [Unmock](https://github.com/unmock/unmock-js), an open-source library to help you fuzz test your REST API calls. So because I will need to learn these things anyway, my boss was like... Why don't you create a YouTube series and learn out in the open?

My reaction: 😬😬😬😅 Ok! 

So that's why we're launching a new YouTube series called wtfuzz. The series will be a collection of 5-minute videos all about testing basics, a deep dive into fuzz testing, how to use unmock-js and whatever else pops up during my onboarding.

If this sounds like something you'd enjoy, please subscribe to the [Unmock YouTube channel](https://www.youtube.com/channel/UCBe00CDjCEe3LAhv3-TXIAw) and comment on this post with any topics you think we should cover. We'll also be publishing transcripts of each episode here on [Dev.to](https://dev.to/unmock/).

See you on YouTube 👋

{% youtube JC2mbve347c %}
Ask questions and tell us your passion 
Tags: beginners
Published: 2019-10-25 11:48:54

This week, we have welcomed a new trainee in our team. He is still pretty green, but he had the right attitude to the job.

He escaped from Syria in 2015, coming to Germany with nothing. He then spent multiple months in a camp and after that he first started his education. 

He is into coding for about 6 months now, starting with HTML and some very basic JS. For 2 months he started looking into C# (our „team“ language of choice).

So we did except a little but not too much. And we were about right. What I did not expect, because of other experience, was his attitude towards coding. Usually trainees came to it, because „there is good money in it and they don’t get dirty“. But he just likes to code. 

I was talking to him and he was an artist in Syria and to him, coding is comparable to that. I am by far no artist, but I can relate to his argument. An argument I already read: It’s the process of creation.

Another aspect of his attitude: He comes and asks questions. And not just how to solve this or that, but how this works and why this behaves like that.
He is also proactive: He finished his job (a small API, to calculate Exchange Values between currencies) and right after it, he came to me and told me, that he would like to learn SQL. He saw, that we are using it quite a bit in our daily work and he wants to learn!

I was very impressed and I wanted to share that with you.

**Don’t be afraid to ask and if you want to learn something, tell your team or boss. If it has the least value, you will most likely get the chance!**

I told him, to pick up a tutorial, gave him some links, where he could read more and we expanded his Currency Exchange API to a banking Platform (from the view of a Bank) so there will be accounts, account owners and transactions. No security, though, that would add too much complexity for now.
Best tool for web developer to communicate with clients 
Tags: webdev, productivity, devops
Published: 2019-10-25 11:41:57

Recently, My company assigned a big project of website development. There are 5 members work at on this particular project. Clients requirement changes on a daily basis, which disturb the whole team. 

Suggest any tool which is effective for communication between the client and the team to perform changes in real time environment.
HELP! can I set a methods value to values from the object in javascript?
Tags: javascript, beginners
Published: 2019-10-25 11:41:42

---
title:HELP! can I set a methods value to values from the object in javascript?
published: true
description: need help.
tags: #javascript #beginner
---


function Rectangle(width, height, x, y){
  this.width = width;
  this.height = height;
  this.x = x;
  this.y = y;
  this.widthString = '\''+width+'px'+'\'';
  this.heightString = '\''+height+'px'+'\'';
  this.area = function() {
    console.log("area: " + this.width * this.height);
  };

  this.newWidth = function (width){
    this.width = width;
  };

  this.newHeight = function (height){
    this.height = height;
  };


  this.translate = function(x,y){
    this.x = x;
    this.y = y;
  };

  this.logValues = function(){
    console.log('width: ' + this.width + '\n' + 'height: ' + this.height + '\n'
  + 'top: ' + this.x + '\n' + 'left: ' + this.y);
  };

  this.scale = function(scale){
    this.width *= scale;
    this.height *= scale;
  };

  this.render = function(width, height, x, y, color){
    let rectangle = document.createElement('DIV');
    document.body.appendChild(rectangle);
    rectangle.className = 'rectangle';
    rectangle.style.background = color;
    rectangle.style.width = width;
    rectangle.style.height = height;
    rectangle.style.position = 'absolute'
    rectangle.style.top = x;
    rectangle.style.left =y;
    // rectangle.style.display = 'block';
    // rectangle.style.visibility= 'visible'
    // let text = document.createTextNode("Hi");
    // rectangle.appendChild(text);
  };
  };

let rectangleOne = new Rectangle(100, 100, 0, 0);
rectangleOne.render('100px', '100px', '0px','0px','green' )
console.log(rectangleOne.widthString, rectangleOne.heightString);

let rectangleTwo = new Rectangle(200, 300, 10, 10);
rectangleTwo.render('100px','100px','100px','100px','blue' )
rectangleTwo.scale(2);

is there a way for me to set the height, width, x, y, values in my this.render method to use the values in my function Rectangle(width, height, x ,y)??
Does server location matter?
Tags: servers, mbaas, parseserver, serverlocation
Published: 2019-10-25 11:23:58

When considering where to host an application, no size fits all needs. To determine the best location, you have to consider many factors and cases but one of the most important criteria you must satisfy is the physical proximity of your target market.

In today's crowded marketplace, good user experience is a game-changer, and apps with perfect user experience are rewarded with happy and loyal users. The most common reason for users to complain and abandon an app is loading time - consumers have grown incredibly impatient and speed is of the essence when it comes to the overall experience while interacting with a piece of software.

Intuitive UI that’s easy on the eye, solid, quality code, etc. are indeed important, however, what app developers should also be focusing on is how fast is the data transfer between the users and the servers.

When a user request information through your app (loading a user account, or another piece of information stored on your servers), this information has to travel from your server location to your user's device passing between several networks via internet exchange points (ISPs) and switches. The physical distance between your server and the user, as well as the number of ‘hops’ between networks,  will affect the speed, at which your app loads and runs. Although nowadays the internet connections are quite good, communicating between different continents can create a significant delay. 

### Benchmarks

Here are the benchmarks that we did in our regions in North America, Europe, Asia, and Australia. 

These numbers prove the need of different server regions for different target markets.

![benchmark](https://media-blog.sashido.io/content/images/2019/10/benchmark.png)

As you can see, there are some significant differences in the speed when you are requesting information that is stored close to the point where you are located.

In other words, if the majority of app users are located in let's say Seoul, then it would be best for this particular app to be hosted in the Asia region. Of course, it is true that users from other, more distant areas, would have to wait a bit longer for every data transfer if they want to use the same app but you would be catering to your core user base. This way you will achieve a much higher customer satisfaction level, which on its end leads to higher adoption and retention rates.

Selecting your app's server location is an important decision that you have to take based on your target market(s) but we promise that being close to your customers (both metaphorically and literally) will pay off.

This said, now seems to be a good time to mention that today we are launching our new regions Australia and Asia so you can have more options to choose from and host your apps in the heart of your markets. 

If you need advice for your particular target market, please do contact us at support@sashido.io or via our live chat. We will be happy to help!