teleren/devto huggingface dataset:
Hosting > Laravel Web App's on Azure 
Tags: azure, laravel, dev, help
Published: 2019-12-17 12:43:18

---
title: Hosting > Laravel Web App's on Azure 
published: true
description:Azure Hosting
tags: #azure #laravel #dev #help
---

 So I've been playing around with Azure for a few days now trying to find out if its a way forward for hosting out Web apps. We are based in South Africa and recently had our own data center installed here. However I must admit I am finding it hard to get things working with Azure ( Mainly Composer Installed ). I wanted to get opinions from people here if its kind of a 'no no' to go down this path or to hear about any success stories. I completely understand that it would work really well for other languages but I am really looking from a php / Laravel stand point. TIA!
CoffeeScript Developer - Rising Star of the IT Industry
Published: 2019-12-17 12:33:57

What is CoffeeScript?

CoffeeScript is a programming language that compiles JavaScript. It has a pinch of syntactic sugar added to it, this sugar is inspired by Ruby, Python and Haskell. This is an effort to enhance Javascript’s readability and conciseness. Some additional specific features are list comprehension and destructing assignment. 

 
CoffeeScript Developers

 [CoffeeScript Developer](https://4waytechnologies.com/technology/frontend-scripting/coffeescript-development/) develops applications whose core lies in JavaScript. They believe in - “CoffeeScript is just ‘JavaScipt’.” As it is based on JavaScript, CoffeeScript Developers are indeed experts in JavaScript. 

CoffeeScript Developers have immense knowledge and experience of Bootstrap or JQuery or both. They are well-aware of Adobe Photoshop so that they can use this knowledge to make the best designs. They know how to hand-code in HTML & CSS to web standards for all major browsers. In short, CoffeeScript Developers are the new rising stars.
What helps you most to stay productive 💪 throughout the day?
Tags: discuss, productivity, motivation, mentalhealth
Published: 2019-12-17 12:25:13

---
title: What helps you most to stay productive 💪 throughout the day?
cover_image: https://thepracticaldev.s3.amazonaws.com/i/ros0g7pomy94dq4uv0i1.jpg
published: true
description: What helps you most to stay productive 💪 throughout the day?
tags: discuss, productivity, motivation, mentalhealth
---
The Year 2019: As The Last Sun Sets
Tags: general, yearendreview, yearinreview
Published: 2019-12-17 13:16:50

---
title: The Year 2019: As The Last Sun Sets
published: true
date: 2019-12-17 12:16:33 UTC
tags: General,Year-End Review,Year In Review
canonical_url: https://junaidqadir.com/the-year-2019-as-the-last-sun-sets/
cover_image: https://i1.wp.com/junaidqadir.com/wp-content/uploads/2019/12/the-year-2019.png
---

I look back at my life in terms of what worked for me and what didn't in 2019.

The post [The Year 2019: As The Last Sun Sets](https://junaidqadir.com/the-year-2019-as-the-last-sun-sets/) appeared first on [Junaid Qadir](https://junaidqadir.com).
Everything you need to know to get started with 👨🏾‍💻Javascript Promises 🎗
Tags: javascript, node, tutorial
Published: 2019-12-17 12:13:37

Even though we don't encounter the inner deep workings of Javascript on a day to day basis even though we write code daily does not mean there is no advantage in knowing how things function under the hood.

Take the **Javascript event loop** for instance. I recently created an article (along with a video) explaining the Javascript event loop and how it is so awesome even though it is just single-threaded! Getting to know about how the language is functioning sets up some new thought patterns in your mind and ever so slightly changes the way you write code, subconsciously, but for good.

Check out the article here if you missed it:
{% link /comscience/what-is-this-event-loop-that-they-speak-of-in-javascript-42mo %}

Continuing on the same lines, let us today dig into what **promises** actually are, how they came into being, what problem they are trying to solve, and finally, a brief explanation of how they internally work.

Here is a video I created explaining those right from the basics.
{% youtube gV7SaMIFyg8 %}

Let me know your opinions about it. Cheers! 🍻
든든한 우리 형, 함수형 - 논리를 꼬집다
Published: 2020-01-16 14:28:08

---
title: 든든한 우리 형, 함수형 - 논리를 꼬집다
published: true
date: 2019-12-17 11:45:27 UTC
tags: 
canonical_url: https://joeun.dev/my-bro-fp-0/
---

 **개발할 때 늘 도움을 주는 우리 형, 함수형을 소개합니다**

## 형을 만나다

형을 처음 만난 건 2016년 [첫 직장](https://www.marpple.com/kr/)에서였습니다. 사수인 팀장님이 이 형과 아주 친했죠. 저는 그곳에서 일하는 동안 형의 도움을 꾸준히 받으며 성장했습니다. [Underscore](https://underscorejs.org/)라는 라이브러리를 사용하고 따라 만들면서 형에 대해 알아갔습니다. 

처음에 형은 참 어렵게 느껴졌습니다. 그래도 늘 한결같은 순수한 면에 매력을 느꼈습니다. 서비스가 커가면서 형의 도움을 받는 일이 많아졌죠. 복잡도가 올라갈 때 특히 도움을 많이 받았습니다. 반복되는 코드가 발견되면 꼭 알려줬죠. 이렇게 말했습니다. “이 부분이야, 여길 꼬집어. 이 논리를 꼬집어내.”

## 논리를 꼬집다

처음엔 무슨 말인지 이해가 되지 않았습니다. 어디가 꼬집어야 할 논리인지 알기 힘들었죠. 잘못 꼬집어서 잘 되던 프로그램이 망가지기도 했습니다. 수많은 실수 끝에 어느 정도 느낌이 왔습니다. 결국 논리를 꼬집기 위해선 추상화가 필수였던 것입니다. 

일종의 글짓기인 프로그래밍에선 다양한 논리가 존재합니다. 어떤 순서로 어떤 방식으로 프로그램이 동작하도록 할지 결정하는 논리. 이 중에서 반복되는 논리를 특정 상황에만 적용되지 않는 수준으로 끌어올리는 게 추상화입니다. 조금 더 범용적으로 적용될만한 논리를 모아 하나의 함수로 만드는 것. 그게 우리 형, 함수형이 알려준 첫 번째 도움이었습니다.

## forEach

예를 들기 가장 좋은 게 [`forEach`](https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach)입니다. 이 친구는 `for`의 논리를 함수로 만든 친구입니다. 자바스크립트에서는 메서드 형태로 배열에만 적용되지만, 논리를 놓고 보면 배열처럼 순차적으로 값을 조회할 수 있는 모든 경우에 사용할 수 있습니다. 

생각해보면 배열을 놓고 `for`와 같은 논리를 구현할 방법은 많습니다. `while`을 사용할 수도 있습니다. `for` 만해도 아주 다양한 방식으로 구현할 수 있습니다. `-1`부터 시작하거나 평범하게 `0`부터 시작할 수도 있죠. 

가만 보니 어떤 구현체건 결국 논리는 값을 순차적으로 조회하는 게 핵심이군요. 사실 메서드가 아닌 함수에선 [`each`](https://underscorejs.org/#each)라고 부르는 경우가 더 많죠. 한국어로 ‘각각의’라는 뜻을 갖는 걸 봤을 때 순회할 수 있는 값에서 각각의 값을 확인한다는 의미인 거겠죠. 이 친구는 우리 형, 함수형이 참 좋아하는 논리가 잘 꼬집힌 함수인 것 같네요.
Why you need to learn to write a sorting algorithm
Tags: career
Published: 2019-12-17 11:22:20

---
title: Why you need to learn to write a sorting algorithm
published: true
description: Or, why you don't need to learn to write a sorting algorithm
tags: career
cover_image: https://thepracticaldev.s3.amazonaws.com/i/gejbp2g1w4rhw39fw1t3.jpg
---

Wait.

Do you, really?

The only people who can do this off the top of their heads are

1. People who write sorting algorithms in their day-to-day job
2. People who recently encountered a performance issue in their code and thought it might be down to the choice of sorting algorithm
3. People with a genuine interest in sorting algorithms
4. Recently graduated university students
5. People who've just been asked to do it in a whiteboard interview and have vowed 
to not make the same mistakes next time

These are scientifically ranked in ascending order of likelihood.

Notice I didn't mention "people who need to know which is the best sorting algorithm to use in a given situation", because those people don't need to know how to write a sorting *function*. Those people will use an existing sorting function which has been written and optimised a long time ago.

In fact, most developers can go their entire career without even needing to know what algorithm is being used when they call a generic `sort()` function. It's far more likely that you'll need to know how to get the data in a useful order in the first place if it comes to that, so knowing about indexes on an RDMBS might be handy.

Knowing about [Big O](https://dev.to/search?q=big%20o) might be handy, or at least knowing what it is, even if you can't go into detail. To me, knowing there _is_ a difference is more important than knowing what that difference is. Knowing how to research it at the time is more important still.

So if you attend an interview and someone asks you to write a particular sorting algorithm, ask them whether anyone has ever had to do that in their role at that particular company.

And if they can't answer, then your response can just be, "_I'll Google it when the time comes_."

--

Cover image by [Sophie Elvis](https://unsplash.com/@thetechnomaid) on Unsplash
Canonical_url for posts not working properly?
Tags: help
Published: 2019-12-17 11:13:06

Hi guys,
I tried adding canonical_url in my frontmatter or even in the code editor directly, but when I have a look at https://dev.to/marcobehler/java-microservices-a-practical-guide-29kn (for example), the rel=canonical <link> tag is missing.

Am I missing something? :)

Thanks!
Marco
CakePHP 4.0 🍓 Strawberry is out, a new Chapter for PHP dev
Tags: technology, cakephp
Published: 2019-12-31 09:25:27

---
title: CakePHP 4.0 🍓 Strawberry is out, a new Chapter for PHP dev
published: true
date: 2019-12-17 10:47:56 UTC
tags: Technology,CakePHP
canonical_url: https://khalifa.tn/cakephp-4-0-strawberry-is-out-a-new-chapter-for-php-dev/
---

## What is CakePHP?

CakePHP is a free, open-source, rapid development framework for PHP. It’s a foundational structure for programmers to create web applications. Since it’s based on MVC architecture, that makes it structured, rapid and more flexible.

Today, the CakePHP team released the new version : Alpha [version in April](https://dev.to/chokri/what-s-new-with-cakephp-4-2fjf-temp-slug-5613412). A new chapter for CakePHP with a stable API. CakePHP 3.x moves into maintenance mode while 2.x moves into security release mode.

## How to upgrade 3.x website?

CakePHP 4.0 contains a lot of breaking changes and it’s not compatible with 3.x releases. If you attempt to migrate your website you have to follow this [migration guide.](https://book.cakephp.org/4/en/appendices/4-0-migration-guide.html) It’s covering all the deprecated, removed, and new features.

Additionally, CakePHP team offers an [upgrade guide](https://book.cakephp.org/4/en/appendices/4-0-upgrade-guide.html) which gives a step-by-step guide and CLI tool to help us upgrade our application. To help improve these documents we have to help them collect more feedback from up while upgrading by opening issues in the [official repository](https://github.com/cakephp/cakephp/issues)

## Key Features

- PHP 7.2 required.
- Streamlined APIs with all deprecated methods and behavior removed.
- Additional typehints across the framework giving you errors faster.
- Improved error messages across the framework.
- A refreshed application skeleton design.
- New database types for fixed length strings (CHAR), datetime with microseconds, and datetime with timezone types.
- Table now features OrFail methods that raise exceptions on failure making error handling more explicit and straightforward.
- Middleware for CSP headers, Form tampering prevention, and HTTPS enforcement.
- Cake\Routing\Asset to make generating asset URLs simple from anywhere in your application code.
- FormHelper now generates HTML5 validation errors.
- FormHelper now generates HTML5 datetime input elements.

Source: [https://bakery.cakephp.org/2019/12/15/cakephp\_400\_released.html](https://bakery.cakephp.org/2019/12/15/cakephp_400_released.html)

The post [CakePHP 4.0 🍓 Strawberry is out, a new Chapter for PHP dev](https://khalifa.tn/cakephp-4-0-strawberry-is-out-a-new-chapter-for-php-dev/) appeared first on [C.Khalifa](https://khalifa.tn).
Creating a Physics-Based Force Layout with D3 / React
Tags: react, d3, physics, dataviz
Published: 2019-12-17 10:33:06

{% youtube J81Hghazii8 %}

Hey, this is part 11 of Using React (Hooks) with D3, and this video tutorial is about exploring d3-force, a suite of physics and force-based tools to simulate natural behavior.

(Also I updated all of my thumbs)

Code here:
https://github.com/muratkemaldar/using-react-hooks-with-d3/tree/11-force

Enjoy!
Best Frameworks, Libraries, and SDKs That Can Help Develop Android Apps
Tags: frameworks, development, android, technology
Published: 2019-12-17 10:16:51

Jump to the link to discover a full article: https://yalantis.com/blog/list-of-best-frameworks-for-android-app-development/

You may have heard scary stories about how much more time it takes – and how much more expensive it is – to develop an Android app than to develop an iOS app.  But in fact, this is not quite true. With plenty of frameworks available, modern-day Android app development doesn’t take much longer than iOS app development. But in fact, that’s not quite true. With plenty of frameworks and libraries available, developing a modern-day Android app doesn’t take much longer than developing an iOS app. At Yalantis, we use Kotlin instead of Java for most projects, which greatly speeds up development. 

We’ll walk you through the best Android frameworks, libraries, and SDKs that we frequently use here at Yalantis.

Open source tools
There’s a common saying that quality doesn’t come cheap – but actually, we usually work with free and open-source frameworks and libraries that have already gained a good reputation in the developer community. 

Architecture library
ReactiveX. You can’t get around functional programming when you develop an app. ReactiveX combines the observer pattern, iterator pattern, and functional programming all in one. It’s a core framework that makes it easy to combine front end and back end, and it’s available for most platforms. We use this framework in most of our Android projects.

Mobile database
Realm is a powerful framework for mobile databases. It can replace the cumbersome SQLite while being much simpler and faster. With well-written official documentation and simple setup, Realm promises to save weeks of development time. As an added bonus, search speeds with Realm are much faster than with other database frameworks. In terms of the user experience, this means a faster, more agile app. 

Backend interaction
Retrofit is a client-server framework for exchanging data between an app and a server. Retrofit is much easier to work with than alternatives such as Google’s Volley library.
What is the best front-end javascript framework: Angular.js, React.js, or Vue.js?
Published: 2019-12-17 10:04:33

Looking forward to the coming future, this post is a complete guide on which is a reasonably accurate solution for you: Angular vs React vs or Vue js.
We'll begin to perceive which is the best front-end javascript framework based on the significant factors mentioned below:

**Scalability**
Angular- It is very easy and manageable to scale, all thanks to its design as well as robust CLI.
React - React calls to be more testable and therefore scalable than vue.
Vue- Vue is just behind React js and is preferred as a good choice but it lacks a list of best scaling practices, resulting in the occurrence of spaghetti code.

3rd party library adaptability

**Angular**- Angular Js lacks behind in the field of 3rd party library adaptability as compared to React js or Vue js. They claimsTypescript that needs type descriptions for every library.

**React**- Although it only works with javascript logic and not with DOM. But the DOM-based libraries are still popular and have their alternatives in React.
Vue- Vue operates for DOM and JavaScript simultaneously and is only the second because it has less framework-specific libraries that could actually be a good thing for others.

**Development time**
Angular- Although remaining very competitive, the volume of redundant syntax it needs to do easy things puts angular in the last place.
React- It takes much more time to set up, but then it facilitates you to begin composing an app and it makes it pretty easy to add new features.
Vue- It is very easy to set up and does not demand many modifications of syntax and that’s what people admire about it; it was intended to solve the exhaustion.

**Simplicity + code length**
Angular- The code length is huge and is not at all easy. Its complexity frequently creates a lot of uncertainty and angular specific 3rd party libraries and syntax.
React- It is fairly simple but it takes a long time to set up a react project.
Vue- It happens to come with prebuilt data cover and MVC model, addressing it be way more manageable to fix as compared to React and Angular.

I hope these inferences will help you decide for yourself while choosing the best front-end development javascript framework for your [angular development](https://bizzmanweb.sg/top-angular-development-tools-to-use-in-2019) project.
Deploy your website with Github Pages
Tags: github, tutorial, website, git
Published: 2019-12-17 09:52:48

All of us devs, at one point or other, would have wanted to have a personal website of our own, just  to showcase our online presence or for fun. So here, I worked on my landing site and deployed it to github.

Usually creating a personal website would involve buying/registering a domain name, finding a free/paid hosting service, developing your site and uploading it to the hosting provider.

But with GitHub Pages, publishing your static site is as easy as drinking a coffee.

      You need a GitHub account (you obviously have one already)

      Create a new repo with the name {username}.github.io

      Clone the repo and create an index.html file

      Add some content and git push

      Voila! Your site should be live at https://{username}.github.io in seconds.

Github Pages

 To view the link to your published repo on gh-pages,it is located at the 
 settings on your github repo.

     Scroll down to github pages.

     Click the link "your site is published at: https//{username}.github.io/"

Developer Landing Page

I wanted a Dev Landing Page to showcase everything I do online. And I wanted it to be minimal and right to the point. So I sat down and created this Dev Landing Page,with some HTML,CSS and JavaScript.



Here's my Dev Landing Page https://j3ffu633zy.github.io/

Thanks for reading,Happy Coding.
I miss the old internet
Tags: ux, internet, culture, webdev
Published: 2019-12-17 09:46:44

![Cookies! newsletters! Crap!](https://thepracticaldev.s3.amazonaws.com/i/31uffvn3f1mrstrag82w.png)

All this does is train users to rapidly identify how to close a dialogue window. Well-intentioned (maybe) laws passed without an awareness of technology. 

----

![The unread messages title bar scam. Message #1: Don't trust this vendor](https://thepracticaldev.s3.amazonaws.com/i/dixckovrdtznv5cw1vsw.gif)

Ah yes, the "unread messages" scam. Message #1 of course being _Don't trust this vendor_.

This is just obnoxious and cheap. Don't do it.

----

{% twitter 1206629293356470273 %}


If you want to withhold content, that's fine and that's your prerogative. It's the bait and switch that I object to here. If you have content that you'll share with me in exchange for me registering for your site—and that you'll show Google and even me for a second when I click through—that's adding zero value to anyone.
Day 17 of the Visual Studio Tips Advent Calendar is now live
Tags: visualstudio
Published: 2019-12-17 09:07:52

Day 17 of the Visual Studio Tips Advent Calendar is now live. Enjoy! 

This one is a bit 'dark'

https://visualstudiotips.co.uk/calendar/

#VisualStudio #DevDecember #VsTipsAdvent #Advent
JavaScript Fundamentals 101 - Hoisting
Tags: codenewbie, javascript, fundamentals, hoisting
Published: 2019-12-17 09:02:44



![alt text](https://media.giphy.com/media/6NvROVDmhI3QI/giphy.gif)

#### TL;DR

Always declare your variables at the top at the beginning of every scope, then you won't have to deal with the bugs that may come from not understanding "hoisting"

#### TL;But still going to read
Hoisting is JavaScript's default behavior of moving all declarations to the top of the current scope (to the top of the current script or the current function).

##### Important to remember

let and const CANNOT be hoisted.

#### Declaration vs. Initialization

```javascript
var arnold = "2 cats";
//You can declare and initialize in the same line like above

var arnold
// is a declaration

= "2 cats";
// is the initialization of var arnold

```

#### When a declaration gets hoisted, but initialization does not:

```javascript

var arnold = "2 cats";  

console.log("Arnold has " + arnold + " and pumping them " + pumping);
// pumping is hoisted, as a declaration
// it exists, but the initialized value, won't get hoisted

var pumping = "up";

"Arnold has 2 cats and pumping them undefined"
// output

```
#### Another example to reinforce:

```javascript

var arnold = "2 cats";  
pumping = "up";

console.log("Arnold has " + arnold + " and pumping them " + pumping);
// pumping has already been declared

var pumping = "down";


"Arnold has 2 cats and pumping them up"
// output

```
If you were expecting "Arnold has 2 cats and pumping them down", remember initializations don't get hoisted!


Hope you learned a thing or two about hoisting today!

<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>








---

###### sources:
###### https://www.w3schools.com/js/js_hoisting.asp
Advent of Code 2019 Solution Megathread - Day 17: Set and Forget
Tags: adventofcode, challenge, adventofcode2019, spoilers
Published: 2019-12-17 09:01:45

---
title: Advent of Code 2019 Solution Megathread - Day 17: Set and Forget
published: True
description: Wake up, sleepyhead!
tags: adventofcode,challenge, adventofcode2019, spoilers
series: Advent of Code 2019 Solutions
cover_image: https://i.imgur.com/WIvwqNQ.png
---

Gotta get rid of the dust before space-mom comes to see our space module!

### [Day 17 - The Problem](https://adventofcode.com/2019/day/17)

Oh no! We need to save our robot helpers! There's a solar flare on the way, and we need to use our trusty IntCode interpreter to use the Aft Scaffolding Control and Information Interface to help find a sleepy robot to help us out.

Part 1 has us examining the scaffolding and calculating the value of a bunch of intersections.

Part 2 requires us to send some code into the IntCode interpreter to instruct a little robot to tell the rest of its friends to get inside.

### Ongoing Meta

#### Dev.to List of Leaderboards

* `120635-5c140b9a` - provided by [Linda Thompson](https://dev.to/lindakatcodes) 

 If you were part of [Ryan Palo](https://dev.to/rpalo)'s leaderboard last year, you're still a member of that! 

If you want me to add your leaderboard code to this page, reply to one of these posts and/or send me a DM containing your  code and any theming or notes you’d like me to add. (You can find your private leaderboard code on your "[Private Leaderboard](https://adventofcode.com/2019/leaderboard/private)" page.)

I'll edit in any leaderboards that people want to post, along with any description for the kinds of people you want to have on it. (My leaderboard is being used as my office's leaderboard.) And if I get something wrong, please call me out or message me and I’ll fix it ASAP.

There's no limit to the number of leaderboards you can join, so there's no problem belonging to a "Beginner" *and* a language specific one if you want.

#### Neat Statistics

I'm planning on adding some statistics, but other than "what languages did we see yesterday" does anyone have any ideas?

##### Languages Seen On Day 16

> Under construction
Flask Project Creator (fpc)
Tags: flask, beginners, opensource, python
Published: 2019-12-17 08:54:59

I start working on flask and found there is nothing to structure my project for me. I start reading and found some best practices and decide to create a new tool that did that work for me next time and for others also.

FPC: FLASK PROJECT CREATOR 

This is an opensource project and I am still working on it by now require some help from flask experts Please look once in the project and help me for making it a promising project for others.

This is my first opensource project 
so I know documentation is not good (worst) I am working on it and make sure with your help that become a great project.

Github link: https://github.com/openuniquesolution/flask_project_creator


Tell me how I create documentation and move this further please raise issues as much as you can.