teleren/devto huggingface dataset:
Higher-Order Functions for 5 year olds
Tags: programming
Published: 2017-07-28 10:37:35

---
title: Higher-Order Functions for 5 year olds
published: true
description: What are higher order functions
tags: programming
---

Higher oder functions are one of the main ideas of functional programming, but many developers don't get them, it also took me a few months, so I will try to explain them. Hopefully my explanation will be so easy that a 5 year old understands them, which I doubt, haha.

First, lets talk about functions. They are things you can put things into and other things come out of it and in between they do something with the things you put in.

The things you put into them are called arguments, the things that come out are called return values. In many programming languages, functions can only have one return value, in some they can even just have one argument.

__What makes a regular function a higher-order function?__

If you have a function that takes a function in one or more of their arguments __and/or__ returns one or more functions as their return values, you have a higher-order function.

Not more not less.

_5 year mode off_

## Extra 1: Wrappers

Often other functions that work with functions are called _wrapper_. While wrappers often work like the thing you _wrapped_ with them. Higher-order functions are more general.

```javascript
    function timesTen(x) { return x * 10; }

    // a wrapper
    // works always with the same function it wraps
    function timesTenPlusTen(x) { return timesTen(x) + 10; }
    timesTenPlusTen(10);

    // a higher order function
    // works with the function it takes as an argument
    function doXPlusTen(f, x) { return f(x) + 10; }
    doXPlusTen(timesTen, x);
```

## Extra 2: One Argument Functions

I talked about languages where functions only can take one argument, so how does this work?

Well, they can return a function and these returned functions they create can access the _one_ argument of their parent.

```javascript
function times(x) {
  return function(y) {
    return x * y;
  };
}
// in JavaScript it would be used like that:
let f = times(10); // returns the second function and saves it in f
f(10); // executes the second function that has access to x AND y

// in short
times(10)(10);
```

This is also called currying and often these languages have short syntax for function creation.

```javascript
function f(x) { return x * x; }
// works like
let f = x => x * x;

// so our example from above could be written as
let times = x => y => x * y;

// still works as before
times(10)(10);
```

## Why?

As you saw, some languages won't even work without this concept, because of the one-argument rule, but the most basic usage I encounter every day are functions that let you add other functions as event listeners. So the `addEventListener` functions you may know from languages like JavaScript are higher-order functions, because one of their arguments has to be a function.

```javascript
function doSomething() { alert("Loaded!"); }
window.addEventListener('load', doSomething);
```
Advanced planning and scheduling Concept introduction
Tags: microsoftdynamicsax
Published: 2017-07-28 10:20:17

---
title: Advanced planning and scheduling Concept introduction
published: true
description: An article for a  concept in Microsoft Dynamics
tags: Microsoft Dynamics AX 
---

Advanced planning and scheduling (APS, also known as advanced manufacturing) refers to a manufacturing management process by which raw materials and production capacity are optimally allocated to meet demand.[1] APS is especially well-suited to environments where simpler planning methods cannot adequately address complex trade-offs between competing priorities. Production scheduling is intrinsically very difficult due to the (approximately) factorial dependence of the size of the solution space on the number of items/products to be manufactured.

Difficulty of production planningTraditional production planning and scheduling systems (such as manufacturing resource planning) use a stepwise procedure to allocate material and production capacity. This approach is simple but cumbersome, and does not readily adapt to changes in demand, resource capacity or material availability. Materials and capacity are planned separately, and many systems do not consider material or capacity constraints, leading to infeasible plans. However, attempts to change to the new system have not always been successful, which has called for the combination of management philosophy with manufacturing.
Unlike previous systems, APS simultaneously plans and schedules production based on available materials, labor and plant capacity.

APS has commonly been applied where one or more of the following conditions are present:

make to order (as distinct from make to stock) manufacturing
capital-intensive production processes, where plant capacity is constrained
products ‘competing’ for plant capacity: where many different products are produced in each facility
products that require a large number of components or manufacturing tasks
production necessitates frequent schedule changes which cannot be predicted before the event
Advanced planning & scheduling software enables manufacturing scheduling and advanced scheduling optimization within these environments.

[Learn Microsoft Dynamics AX](https://mindmajix.com/microsoft-dynamics-ax-training)

For More Course visit [Mindmajix](https://mindmajix.com)
Two getter properties enter, one is explained... and so is the other one too
Tags: c
Published: 2017-10-03 06:31:54

---
title: "Two getter properties enter, one is explained... and so is the other one too"
published: true
tags: C#
canonical_url: https://blog.jonstodle.com/two-getter-properties-enter-one-is-explained-and-so-is-the-other-one-too/
---

With the introduction of C# 6 there are now two types of automatic getter only properties:

```
public List<string> OldAndFamiliar { get; } = new[] { "Old", "and", "familiar" }.ToList();

public List<string> NewHotness => new[] { "New", "hotness" }.ToList();
```

They might look very similar, and in this case they will also return the same result. Under the covers, though, they are different.

_Automatic properties_ in C# are defined by using `get;` and/or `set;`:

```
public string AutoProperty { get; set; }
```

The compiler will automatically generate a backing field and a getter and setter. Something akin this:

```
private List<string> autoProperty;  
public List<string> AutoProperty  
{
    get { return autoProperty; }
    set { autoProperty = value; }
}
```

You might have written something like this a lot of times when programming in C#.

Considering how automatic properties are generated by the compiler, it's now easier to understand how the two different getter only properties work.

The `OldAndFamiliar` version will become something akin to this:

```
private List<string> oldAndFamiliar = new[] { "Old", "and", "familiar" }.ToList();  
public List<string> OldAndFamiliar  
{
    get { return oldAndFamiliar ; }
}
```

While the `NewHotness` version will become something akin to this:

```
public List<string> NewHotness  
{
    get { return new[] { "New", "hotness" }.ToList(); }
}
```

As you can see, `OldAndFamiliar` will only asign the `List<string>` once (to the backing field). `NewHotness` will return a new `List<string>` every time.

The `NewHotness` version acts like a method, but it looks like a property. These are more or less the same:

```
public List<string> NewHotness => new[] { "New", "hotness" }.ToList();  
public List<string> GetNewHotness() => new[] { "New", "hotness" }.ToList();
```

When to use which, is up to you and your use case.

Happy coding!



_This post was originally published on [blog.jonstodle.com](https://blog.jonstodle.com/two-getter-properties-enter-one-is-explained-and-so-is-the-other-one-too/)_
Explain containers like I'm five
Tags: discuss, cloud, explainlikeimfive
Published: 2017-07-27 22:03:00

---
title: Explain containers like I'm five
published: true
description: 
tags: discuss, cloud, explainlikeimfive
---

I heard a lot (read a little) about Containers, Docker, Azure Container Service.. etc, but never understood what *exactly* is a 'container', and why w'd you use it while you can run your apps on a Virtual Machine!
Introduction to Neural Networks
Tags: videos, neuralnetworks, machinelearning, algorithms
Published: 2017-07-27 19:50:19

---
title: Introduction to Neural Networks
published: true
description: Keeyon Ebrahimi walks through how neural networks actually work, and what we did before neural networks. A convolutional neural network is a series of layers which each takes an input and produces an output. Keeyon describes the convolutional layer, the pooling layer, and the fully-connected layer.
tags: videos, neuralnetworks, machinelearning, algorithms
---

Keeyon Ebrahimi walks through how neural networks actually work, and what we did before neural networks. A convolutional neural network is a series of layers which each takes an input and produces an output. Keeyon describes the convolutional layer, the pooling layer, and the fully-connected layer.

Keeyon works for [Clarifai](/clarifai), a company that uses neural networks to support its computer vision API.
Web project on cloud (API, Web site, DB, Storage) and on premises simultaneously
Tags: discuss, cloud, hosting
Published: 2017-07-27 18:32:55

---
title: Web project on cloud (API, Web site, DB, Storage) and on premises simultaneously
published: true
tags: discuss, cloud, hosting
---

Hello there. Long time reader, first time poster here.

Let's get to the topic right ahead - I'v been developer for project that is hosted on Azure for 2+ years. As noted in title, it includes API, Web site, DB, Azure Storage. There is one big client who wants the product, but is totally against using Cloud. So it is planned to host the project on premises just for him. Now, I'v been in the industry for 3 years, but this seems to me like a really bad idea.

What's your view on this? Could it be done without code like this
```
if env == cloud then
    doThis()
else
    doThat()
```
and simply be specified as configuration value? I know it might be hard to tell without knowing the project, but if you had to guess? There's a lot of different kind of files being stored each with its individual nuances. Server workers/jobs as well. I don't think there is going to be synchronization between the two, that would be crazy. Any other things to watch out for, prepare, etc.?


The project is rather large and complex. Kind of like management site for companies that use it for managing bunch of interactive displays and digital signage. All companies use the same site and can use some kind of assets from each other. The biggest and most complex functionality coming from admin management part and many access rights that user can have. The other part is Windows software that communicates with the site and executes all the management coming from site.

There is already a lot of bad, bad, really hard to manage code which drives me nuts pretty often and I'm thinking that this will make things way worse. I'v already felt like surrendering just because of code quality and feel like this could really do it.
How do you measure and discuss the less measurable things about testing code?
Tags: discuss, testing
Published: 2017-07-27 16:38:49

---
title: How do you measure and discuss the less measurable things about testing code?
published: true
tags: discuss, testing
---

Test coverage metrics have a hard time dealing with the infinite complexity of edge cases in code. So even if we have 100% coverage, it's still really easy to see how we don't and can't test every possible path. So how do you think about these circumstances, how does your team talk about these issues, and is there anything you measure in addition to test coverage that helps account for edge paths/cases?

And if anyone has any thoughts about how this conversation is different with strongly typed languages vs weak, I'd love to hear that described a bit.
Hello dev.to
Tags: duc, hello
Published: 2017-07-27 15:42:04

---
title: Hello dev.to
published: true
description: A short word about my self
tags: duc, hello
---

Hello dev.to my name is Phan Nguyen Hong Duc. I am a developer from Viet Nam. I like java, javascript, clojure. I like to try new thing, like apply new design pattern, new programming paradigm. I like clean code, I am now reading clean code and try to apply it but not good :D. The end.
Hi, I'm CodeMyCoffee
Tags: introductions
Published: 2017-07-27 14:39:30

---
title: Hi, I'm CodeMyCoffee
published: true
description: My introduction post
tags: introductions
---

I have been coding for 2-3 years.

You can find me on Twitter as [@codemycoffee](https://twitter.com/codemycoffee)

I live in Valencia, Spain.

I work for Solaris Offgrid

I mostly program in these languages: Python, Javascript.

Nice to meet you.
What's the best way to find a freelance Wordpress developer who is a person not an agency? 
Tags: discuss
Published: 2017-07-27 13:19:53

---
title: What's the best way to find a freelance Wordpress developer who is a person not an agency? 
published: true
tags: discuss
---

Hi all, 

I'm looking for a freelance Wordpress developer for some ongoing work and wondering the best ways to run the search. 

Generally whenever I tweet about it I get a litany of foreign dev shops spamming me. 

I'm looking for a person to work with, ideally in New York, who I can build rapport with over the long term, not an agency looking to extract lots of money in the short term. 

Any advice/recommendations are welcomed!
Grammarly is a Must-Have Tool for Bloggers
Tags: grammarly, blogging
Published: 2017-07-27 08:09:03

---
title: Grammarly is a Must-Have Tool for Bloggers
published: true
description: Grammarly is a Must-Have Tool for Bloggers
tags: grammarly, blogging
---
![grammarly](http://pliutau.com/grammarly.png)

English is not my native language, and I always feel that my texts which I post here are hard to read. Sometimes I find myself wondering something as basic as whether or not a sentence needs another comma. We use Grammarly at Wizeline for polishing our Client communication.

And I found that I can use it now for all posts in my blog. Grammarly has Free and [Premium](https://www.grammarly.com/premium) versions. Also, it has Chrome extension and Desktop application.

In my opinion, Grammarly is a must-have tool for all bloggers. Regardless of your writing skills, this tool will help you be even better. There are very few must-have tools that are available at the best price point of all – free – so grab this one before they realize they can charge more! Click [here](https://www.grammarly.com/) to grab this awesome grammar tool now!

p.s. This text checked in Grammarly :)
Hi, I'm Jan Ray Montalvo
Tags: introductions
Published: 2017-07-27 08:05:00

---
title: Hi, I'm Jan Ray Montalvo
published: true
description: My introduction post
tags: introductions
---

I have been coding for [2] years.

You can find me on Twitter as [@janraymontalvo](https://twitter.com/janraymontalvo)

I live in [Bacolod, Philippines].

I mostly program in these languages: [PHP Magento].


Nice to meet you.
Hi, I'm Sharl
Tags: introductions
Published: 2017-07-27 05:18:46

---
title: Hi, I'm Sharl
published: true
description: My introduction post
tags: introductions
---

I have been coding for [3] years.

You can find me on Twitter as [@uhh_erm_i](https://twitter.com/uhh_erm_i)

I live in [Nairobi].

I school at [Strathmore University]

I mostly program in these languages: [Java, PHP, C++].

I am currently learning more about [C#].

Nice to meet you.
This is what CyberWar looks like
Tags: blockchain, dao, bitcoin, ipfs
Published: 2018-02-10 22:31:12

---
title: "This is what CyberWar looks like"
published: true
tags: blockchain,dao,bitcoin,ipfs
canonical_url: https://medium.com/@andrew_subarctic/this-is-what-cyberwar-looks-like-52ad09cce95f
cover_image: https://cdn-images-1.medium.com/max/1024/1*cvtR0VUW0mlGXGU14b1P1A.png
---

BTC-E charged with laundering funds stolen from Mt.&nbsp;Gox

A grand jury in Northern California [has indicted](https://www.justice.gov/usao-ndca/pr/russian-national-and-bitcoin-exchange-charged-21-count-indictment-operating-alleged) a Russian National, Alexander Vinnik **,** after tracing ~$4 billion worth of stolen Bitcoin to his addresses. His company BTC-e is also accused of operating an unlicensed money services business. He was arrested in Greece and will be extradited to face trial in the&nbsp;U.S.

This is one hell of a jurisdiction nightmare if I ever saw one. If this trial follows the path that it has set out so far, then the Libertarian take on the BTC currency will be all but dead. The remaining scaffolding will be public ledgers and secured transactions; privacy in industry will be all but&nbsp;dead.

Assuming this $4 billion in BTC will be put up for FBI auction, we could see huge new investment into the crypto-currency market, or a huge market crash. One way or another, this event will mark the beginning of the end for Wild West currency exchanges. The black markets are shuttering and being replaced with box stores. Apparently the [Daimler ICO](https://blogs.wsj.com/cfo/2017/07/12/daimler-uses-blockchain-to-issue-bonds/) is a thing&nbsp;now.

What happens when big companies play with crypto-fire? We have tested this crypto-weapon against the dirtiest of the dirty black black markets. Cryptographically secure transactions, proof-of-work, and public ledgers are real and here to stay. They work best when all parties involved literally want to kill each other. What happens when this saw-toothed technology is unleashed into a Disney Land of Corporate BS?

War.

For the last hundred years, corporations and investment have been carefully guided and fenced by regulators with a toolbox full of simple gadgets to thwack and knock and hammer any business operation that looks more like a weed than a garden flower. Regulators just use the smell test: if it smells rotten, then it needs to change or&nbsp;leave.

Now what happens when Distributed Autonomous Organizations start building social capital on the block chain? FileCoin for IPFS. NameCoin for DNS. All internet infrastructure can be refitted to work with literally zero operational staff. These are current technologies, sitting in the wing. Imagine if Facebook belonged to its users. Imagine if Twitter didn’t need to be profitable, just popular. These what-ifs will be the next generation of web companies. Headless. Amorphous. Unstoppable.

Investors seem pretty hyped. That’s what happens when there is blood in the&nbsp;water.



_This post was originally published on [medium.com](https://medium.com/@andrew_subarctic/this-is-what-cyberwar-looks-like-52ad09cce95f)_
Hi, I'm Adam Boas
Tags: introductions
Published: 2017-07-27 04:18:34

---
title: Hi, I'm Adam Boas
published: true
description: My introduction post
tags: introductions
---

I have been coding for [number] years.

You can find me on Twitter as [@MrAdamBoas](https://twitter.com/MrAdamBoas)

I live in [city].

I work for [company]

I mostly program in these languages: [languages].

I am currently learning more about [topic].

Nice to meet you.
What do your typical after-work hours look like?
Tags: discuss, devdiscuss
Published: 2017-07-27 00:27:58

---
title: What do your typical after-work hours look like?
published: true
tags: discuss, devdiscuss
---

Happy Wednesday, devs! (Or other day, for you other-time-zone folks.)

![Man in a suit with an untied necktie dancing over the word Wednesdays](http://media3.giphy.com/media/3osxYdZSFb4mHs6kRG/giphy-downsized.gif)
<figcaption>Pretty much me right now</figcaption>

As I'm winding down and going home for the day, I had a question pop up in my head: what do most devs do after they get off work? There was also a fairly related #devdiscuss on Twitter a few weeks ago:
{% twitter 884941530238156800 %}

BUT this question is about after you get off work. Do you...
- work on a side project?
- take a break from the screen?
- focus on hobbies?
- zone out on screen with Reddit/Twitter/dev.to/whatever?
- more personal/career development?
- spend time with your loved ones?
- have plans with other people?
- some other wonderful thing you've been wanting to share

Would love to hear what y'all do. ðŸ˜Š
Serverless Use Cases: Real World Examples, AWS Lambda@Edge & Serverless Tips
Tags: serverless, developertools, lambda, aws
Published: 2017-09-21 00:26:01

---
title: "Serverless Use Cases: Real World Examples, AWS Lambda@Edge & Serverless Tips"
published: true
tags: Serverless, Developer Tools, Lambda, AWS
canonical_url: https://www.heavybit.com/library/blog/serverless-use-cases-real-world-examples-aws-lambdaedge-serverless-tips/
---

_Earlier this year, Heavybit Member Company [Serverless Inc.](https://serverless.com/) held a meetup in our San Francisco Clubhouse featuring several talks on real-world use cases for serverless, watch the videos below. [Sign up here](https://www.meetup.com/Serverless/) to attend the next event._

## Serverless in the Wild: Real World Use Cases, David Wells from Serverless Inc.

As serverless technology moves past the emerging technology phase there are more and more great real world examples out there. David Wells, Senior Software Engineer at Serverless Inc., explores some different use cases for serverless technology with examples from companies and other open source projects. He gives an overview of the Serverless Framework and also presents some of his own open source Serverless projects that were built using the framework.

David Wells is a senior engineer and developer advocate at Serverless Inc., the makers of the Serverless Framework. He’s a full stack JavaScript developer, entrepreneur with a past life as a marketer. David is passionate about showing developers how they can do more and manage less by going serverless.

{% youtube ZD1bmvwyj-g %}

## AWS Lambda@Edge Preview, Alex Casalboni from CloudAcademy

What exactly can you do with AWS Lambda@Edge? Alex Casalboni discusses the most interesting use cases and a few preview-related limitations. You’ll learn how to execute serverless functions at CloudFront’s Edge Locations to implement unique functionalities and optimize network latency.

Alex Casalboni is a Software Engineer from Italy who’s passionate about web technologies and music. After deepening his software and sound engineering background, he’s spent the last four years building, learning, and teaching at Cloud Academy. His current focus is on web development, serverless and AI.

{% youtube Ghn3FLOTzik %}

## Google Cloud Functions Lightning Talk, Bret McGowen from Google

Developer Advocate for Google Cloud Platform Bret McGowen gives a high level overview of Google Cloud Functions and the Serverless Framework integration.

{% youtube navC2YlCX-U %}

[Subscribe here](https://heavybit.typeform.com/to/o2fjMn) to get all of Heavybit's developer facing content straight to your inbox.

_This post was originally published on [heavybit.com](https://www.heavybit.com/library/blog/serverless-use-cases-real-world-examples-aws-lambdaedge-serverless-tips/)_
Hi, I'm Rach Smith
Tags: introductions
Published: 2017-07-26 22:09:23

---
title: Hi, I'm Rach Smith
published: true
description: My introduction post
tags: introductions
---

I have been coding for 6 years.

You can find me on Twitter as [@rachsmithtweets](https://twitter.com/rachsmithtweets)

I live in Sunshine Coast, Australia.

I work as an Engineer for CodePen

I mostly program in these languages: JavaScript, HTML, CSS, Ruby (Rails), Node.js.

I am currently learning more about React, Rails & AWS.

I heard Jess Lee's interview on the Friends Talk Frontend podcast and thought the dev.to community sounded interesting. Nice to meet you all.
Hi, I'm Kiran Jd
Tags: introductions
Published: 2017-07-26 19:27:41

---
title: Hi, I'm Kiran Jd
published: true
description: My introduction post
tags: introductions
---

I have been coding for [number] years.

You can find me on Twitter as [@kirjd](https://twitter.com/kirjd)

I live in [city].

I work for [company]

I mostly program in these languages: [languages].

I am currently learning more about [topic].

Nice to meet you.