teleren/devto huggingface dataset:
Book Review - If Hemingway Wrote Javascript
Tags: javascript, books, bookreview, programming
Published: 2019-08-21 19:38:42

---
title: Book Review - If Hemingway Wrote Javascript
published: true
tags: #javascript, #books, #bookreview, #programming
canonical_url: https://imago.dev/if-hemingway-wrote-javascript/
cover_image: https://imago.dev/static/c1d004bb9ab3676bbf50e6b60bc38b54/f1b15/Hemingway_cover.webp
---

What would computer code look like if it was created by history’s greatest writers? How would some of the most creative linguistic minds take to writing Javascript? Angus Troll attempts to answer those questions in [“If Hemingway Wrote Javascript”](https://nostarch.com/hemingway).

>This is a cross-post from the blog I run, [Imago Dev](https://imago.dev).

This book takes an entirely different approach to coding and style. Croll solves a handful of common programming challenges, such as finding Fibonacci or prime numbers, in a matter fitting a wide variety of famous writer’s styles. Some solutions, like the first example by Hemingway, are down right elementary; however, some like Italo Calvino turn functional programming on its head.

Often times, comments in the code work to tell a story more so than simply describe the lines of code. Some authors throw out form all together, combining code and comment into one string of thought. For instance, the beat generation writer Jack Kerouac’s solution to factorial, writes the whole program as essentially a single line.

```javascript
/*...the only numbers for me are the mad ones, take forty-three like a steam engine with a talky caboose at the end*/ (n = 43), /*and that lanky fellow in a cocked fedora*/ (r = 1); /*then back to our number, our mad number, mad to become one*/ while (n > 1) /*mad to descend*/ n--, /*mad to multiply*/ (r = r * n); /*and at the end, you see the blue center-light pop, and everybody goes 1.4050061177528801e+51…*/
r;
```

It’s so wonky that I had to turn off my Prettier VS Code extension just to save the snippet properly. You’ll also notice that he totally disregards any factorial except for that of the number 43.

Croll does an excellent job of providing a brief bio on each writer in order to set up the reasoning behind a given solution. Even if you hardly understand Javascript, you’ll walk away with a greater understanding of 25 brilliant writers. If you’re like me, this book will probably stuff up the urge to dive into some of the authors’ actual literary work.

When most folks who create code are the technical engineering types, having an artist play with the “language” part of “programming language” truly provides a fresh take on coding style. That is not to say you should emulate the topsy-turvy nature of these authors when starting the next project, but it certainly will push you to think outside the box.

Overall, this book is an excellently playful read that is worth your time.

Have you reader this book? What were your thoughts?
New Resources for Spring Developers
Tags: solace, jms, spring, pivotal
Published: 2019-09-12 19:33:36

---
title: New Resources for Spring Developers
published: true
tags: solace,JMS,spring,pivotal
canonical_url: https://solace.com/blog/spring-developers-new-resources/
---

 ![](https://solace.com/wp-content/uploads/2019/08/spring-cloud-featured-image.png) 

Over the years, Solace has been working hard to help developers using the Spring Framework create Spring-based applications and event-driven microservices with Solace event brokers. We kicked off the effort by publishing a comprehensive [integration guide](https://docs.solace.com/Developer-Tools/Integration-Guides/Spring-Framework.htm) that demonstrates how to integrate JMS with the Spring Java Framework for production and consumption of JMS messages. We’ve also released open source projects like a [Spring Boot auto-config](https://github.com/SolaceProducts/solace-jms-spring-boot) complete with a Spring Boot Starter for the Solace JMS API and an [implementation of Spring’s Cloud Stream Binder](https://github.com/SolaceProducts/spring-cloud-stream-binder-solace) for integrating with Solace PubSub+.

I’m proud to announce a few new resources we’re making available, along with a new landing page that will house all of these assets and help Spring developers understand:

- **What** Spring Projects can be used with PubSub+
- **Why** Spring ecosystems can benefit from Solace PubSub+
- **How** they can can use PubSub+ with supported Spring projects

[![Solace tutorials for Spring Developers](https://solace.com/wp-content/uploads/2019/08/spring-landing-page.png)](/spring/)

The page is at [solace.com/spring](/spring/) — go check it out while it’s hot!

As for the new resources I mentioned above…

## Spring Cloud Streams with Solace Tutorial

In addition to introducing you the fundamentals of using Spring Cloud Streams with the Solace PubSub+ Binder, this hands-on [tutorial](https://solace.com/samples/solace-samples-spring/spring-cloud-streams/) outlines a simple way to create a messaging service in Solace to quickly access Solace messaging. It shows you how to create 3 apps: a Spring Cloud Streams Source (sending app), a Spring Cloud Streams Sink (receiving app), and a Spring Cloud Streams Processor (sending & receiving app).

Check out the [tutorial](https://solace.com/samples/solace-samples-spring/spring-cloud-streams/) and the [sample code](https://github.com/SolaceSamples/solace-samples-spring) in GitHub.

## Spring Boot Autoconfig (JMS) Tutorial

This tutorial is all about using Spring Boot with Autoconfigure to connect an JMS client to Solace Messaging for the exchange of JMS events. It walks you through the steps to create respectively an app for receiving JMS messages and an app for sending JMS messages.

Check out the [tutorial](https://solace.com/samples/solace-samples-spring/spring-boot-autoconfigure/) and the [sample code](https://github.com/SolaceSamples/solace-samples-spring) in GitHub.

The post [New Resources for Spring Developers](https://solace.com/blog/spring-developers-new-resources/) appeared first on [Solace](https://solace.com).
What does it take to become a jr. dev?
Tags: discuss, webdev, codenewbie, beginners
Published: 2019-08-20 22:48:55

---
title: What does it take to become a jr. dev?
published: true
description: If a Udemy coding bootcamp course won't make you a junior developer, what will?
tags: discuss, webdev, codenewbie, beginner
---

I recently [published a video](https://www.youtube.com/watch?v=sm2OjpnGjm4&lc=Ugx-rcTTxM85mfo-pCl4AaABAg) on YouTube. 

It covered my top 5 picks for Udemy web development courses for the 2019-2020 season. 

###While reviewing one of the courses, I mentioned how expansive the content was –– but also noted that the course alone probably couldn't make somebody a junior developer (despite the hyperbolic language often used in the marketing materials). 

Two viewers asked a logical question: **If a Udemy coding bootcamp course won't make you a junior developer, what will?** 

I thought this was a great question. 

This was my response: 

_Becoming a jr. dev is so much more than just getting exposed to the tools and tech. In order to be a  jr. dev (jr. dev = job ready newbie developer that is able to pass an interview & won't get fired their first month on the job) you need to be proficient with your tech communication skills, have a portfolio that goes beyond standard bootcamp projects (as 100,000 people have already done those projects and thus solved the same problem 100k times over),  you need to understand how to read documentation & write basic documentation, your general problem solving skills need to be sharp (able to find a solution efficiently). Other things. It may seem like a lot of stuff and it is, but it's totally doable. . ._

***

_Other things._ 

What other things do aspiring developers need in order achieve junior developer status? Or is junior developer merely a job title? Let's discuss!

Update: My video response:

<a href="http://www.youtube.com/watch?feature=player_embedded&v=joTmuiXi7x4" target="_blank"><img src="http://img.youtube.com/vi/joTmuiXi7x4/0.jpg" 
</a>
Welcome Post
Tags: webdev
Published: 2019-08-20 22:39:13

Hi, My name is Andrew but my friends call me Sunny.

I am an aspiring Web/Software/UI Developer trying to find the right company that will give me the chance to show my skills and improve along the way. I have been learning and building different projects for 3 years on my own and through other means. I am working on my Associates in Computer Technology. I have also attended a 12-week full-time coding boot camp.

I am married and have a 1-year-old beautiful, little girl. I love technology whether it’s taking apart a tv or creating a fully functional, responsive website. I am constantly asking myself: “Can I do that?” or “How does that work?”, then finding a way to learn more about it. I always try my hardest to accomplish the goals I set with the resources and knowledge I have, and research and learn more about what I don’t.

I am able to pick things up quickly especially things involving technology. Things like fixing hardware inside a computer, learning different web technologies, or experimenting with different flavors of the Linux operating system. I am a fun, creative, and intuitive person that loves technology and I look forward to speaking with you all.
Two Simple Tips For Debugging In the Console
Tags: beginners, javascript, webdev
Published: 2019-08-20 22:00:40

For my first post, I thought I would share 2 simple tips that I use when debugging Javascript in the console. You might very well know these already!

## Reigning in the console

Not necessarily saying it's ideal, but if you're in the midst of an epic debugging sesh, you might end up in a situation with loads of `console.log` sprinkled all over your beautiful code like this:

```javascript
console.log(isLoggedIn);
// sometime later:
console.log(user);
// in another file:
console.log(likes);
// more logs all over the place...
console.log(followers);
```

The flurry of logs in the console can quickly become a burden of confusion. What data belongs to what value, assuming we don't know what order they're even ran amidst the flow of our code?

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/bzk8fz51jnmftxaznsly.png)

One solution is that we can `console.log('data: ', data)`, but we can also accomplish the same in fewer characters. What we can do instead is wrap our value in an object as such: `console.log({ data })` and the console will print out the name of the variable before the data:

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/pw2um6hg6k9t1mk14hyo.png)

We're basically using ES6 shorthand syntax to log out an object that we create on the fly.

## Refactoring Functions

Talk about ES6, another situation is that you might be writing your functions using more shorthand syntax like this:
`const exclaim = txt => text + "!"`
but then, some time later, you want to log `txt`, so you have to refactor the code to something like this:

```javascript

const exclaim = txt => txt + "!"

// needs to become:

const exclaim = txt => {
  console.log(txt)
  return text + "!"
}

```
Almost makes you want to skip the whole task. Well, you can also do the following and still log the parameter:

```javascript

const exclaim = txt => console.log(txt) || txt + "!";
```

What happens here is that the `console.log` runs as normal and evaluates to false, so the parser evaluates the second expression of the OR clause `txt + "!"` and returns it as they are no more expressions to check. We sneaked in that log along the way and threw it away essentially. As such we can keep our functions as one-liners and still inspect them without jumping around in the editor.

### Until Next Time!

Looking forward to being part of this community and learning along with everybody!
Top 5 Web Development Newsletters
Tags: newsletter, javascript, design, webdev
Published: 2019-08-20 21:59:23

2 year ago, I felt that I missed out on important web design and development news. The reason for this was my decision to building my own minimalistic, yet robust business applications from scratch.

So how did I master this challenge? I subscribed to over 50 newsletters. After boiling them down, I want to share my top 5 picks. They helped me to land several internships in UX research, UX design, and Full Stack Development.

# [1. Product Hunt](https://www.producthunt.com/newsletter)
*"A place for product-loving enthusiasts to share and geek out about the latest mobile apps, websites, ..."*. What more can I say? This newsletter gives great ideas for projects, many development tools, and breathtaking design inspirations. P.S. the weekly newsletter gives more than enough input...

# [2. Webdesigner News](https://www.webdesignernews.com/)
This newsletter helped me to brush up my design skills and provide me with many expert tools. My recent top pics are [10 best Chrome extensions for designers](https://uxdesign.cc/10-best-chrome-extensions-for-designers-a76540b93836?ref=webdesignernews.com&gi=846bb29f995d) and [A Beginner’s Guide to Psychology Principles in UX Design](https://pixel77.com/a-beginners-guide-to-psychology-principles-in-ux-design/?ref=webdesignernews.com).

# [3. Nielsen Norman Group](https://www.nngroup.com/articles/subscribe/)
Do you want to build products that really help your users? The Nielsen Norman Group provide UX tips directly from science, but in an easy to grasp format. One of my favorite discoveries was the [user research collection](https://www.nngroup.com/articles/which-ux-research-methods/). It shows the pros and cons of interviews and email surveys, among others.   

# [4. JavaScript Weekly](https://javascriptweekly.com/)
For developing my frontend designs, I mostly use JavaScript or Typescript. 
While I must admit, that it was hard to choose between this newsletter and [Frontend Focus](https://frontendweekly.co/), I picked it for the many insightful links, tutorials, and tools. A no brainer for all JavaScript enthusiasts.

# [5. Hacker Newsletter](https://hackernewsletter.com/)
So what's the This newsletter gives you important technology, start, and software development articles. So what's the difference between Hacker Newsletter and Product Hunt? Simply the perspective straight from computer science - no frills.

P.S. If you are interested in the remaining 50 newsletters, have suggestions for even better ones, or just want to get in touch, send me a message.
Looping in Puppet 
Tags: devops, puppet, ruby
Published: 2019-08-20 21:35:52

A simple example of how to loop an array of hash maps in a puppet manifest to template 

```
    targets => [
      {
        host => 'example.com',
        port => '443',
      },
      {
        host => 'example1.com',
        port => '8081',
      },
      {
        host => 'example2.com',
        port => '80',
      },
    ]
```

This part is for looping in the erb template. 

``` 
<% @targets.each do |variable | -%>
    <%= variable['host'] %> <%= variable['port'] %> 
  <% end -%>
```
**targets** is the array of list and **variable** is the name of the varible you would like to specify
Welcome to the Big Thread Club, Emma Wedekind. You are the latest winner of the Big Thread Badge. 🎉
Tags: meta, bigthreadbadge
Published: 2019-08-20 21:32:23

Emma joins @neilonsoftware, @andrewbrown, @mjraadi, @room_js, @iam_timsmith, @fullstack_to, @espoir, @helenanders26, @philnash, @florinpop17 and @lauragift21 in the club as the twelfth winner of this badge.

{% user emmawedekind %}

The Big Thread Badge is awarded to the person who creates a discussion thread on the site that sparks the most collective comment love (e.g. score as determined by total ❤️ reactions and adjacent ranking factors).

This was Emma's thread:

{% link https://dev.to/emmawedekind/what-does-your-ide-code-editor-look-like-550e %}

Entry is simple: Start a thread that is bound to spark a lot of comments. Ask the community to tell a certain kind of story and get lots of comments! Even if these threads aren't always answering _the deep questions_, they are often great for seeing what the broader community thinks of a topic and are usually a lot of fun!

Use the #discuss tag to signal that the post is a discussion thread.

{% tag discuss %}

_DEV employees are not eligible for the Big Thread Badge. 🙂_

## **Happy Coding!**
Learn Tesseract
Tags: tesseract, ocr, machinelearning
Published: 2019-08-20 21:28:21

# Introduction to the Adam Optimization 
The Adam optimization algorithm is an extension to stochastic gradient descent that has recently seen broader adoption for deep learning applications in computer vision and natural language processing.
(https://machinelearningmastery.com/adam-optimization-algorithm-for-deep-learning/)

# ...But, what is the stochastic gradient descent?
Is an iterative method for optimizing an objective function with suitable smoothness properties (e.g. differentiable or subdifferentiable). It is called stochastic because the method uses randomly selected (or shuffled) samples to evaluate the gradients, hence SGD can be regarded as a stochastic approximation of gradient descent optimization.
(wiki: https://en.wikipedia.org/wiki/Stochastic_gradient_descent)

# what do i do with this information?
An RNN using LSTM units can be trained in a supervised fashion, on a set of training sequences, using an optimization algorithm, like __gradient descent__, combined with backpropagation through time to compute the gradients needed during the optimization process, in order to change each weight of the LSTM network in proportion to the derivative of the error (at the output layer of the LSTM network) with respect to corresponding weight.
(wiki: https://en.wikipedia.org/wiki/Long_short-term_memory)
ITALY-Modern Land with Ancestral Heritage
Published: 2019-08-20 21:12:07


 Italy a Southern European country with the Mediterranean in the south, with mild winters and long warm summers; alpine in the north, with cold winters, largely mountainous, with nearly 4,660 miles (7,500 km) of coastline, is a country of contrasts—from sprawling beaches to rugged mountain ranges; It is also a volcanic country, but only a few volcanoes—such as Stromboli and Mount Etna—are active.
 Italy is one of the most densely populated countries in Europe. It has been traversed by many peoples, including Arabs, Byzantines, Greeks, Normans, and Phoenicians.
The country is rich in historical and artistic treasures. Ancient Greek and Roman ruins or Baroque and Renaissance architecture stand proudly in many of Italy’s towns and cities. Paintings, marble statues, and fountains are a credit to artists such as Bernini, Michelangelo, and Raphael.
 For the tourist visiting Italy one of the common places the like seeing is the Colosseum, is a huge Amphitheater, that was built during the reign of the roman empire for sport and is still used for sport till the present day. 
In Venice, a network of waterway in canals have been their major route of transportation the canal connects the whole place just as street, The Grand Canal is one the major one, the canals are line up by old nice Architectural structures by both sides.
The still smoking volcano of Mt. Vesuvius in Pompeii, tourists don’t like missing this area as they can go about in chariot to explore the old cities seeing the Technology Romans used 2,000 years ago.
Many tourist sites are there in Italy like St Mark’s Basilica, Pantheon, Roman Forum, Milan Duomo, Vatican City, Cinque Terre, etc

Food plays a central role in daily life, and many customs revolve around local cuisine. Pasta is often served as a first course, followed by meat or fish with vegetables. Olive oil is used copiously, as it is produced there on a large scale. Pizza and risotto are well-known Italian dishes.
Italians are known for being warm, hospitable, and gregarious. The conversation is considered an art form, so it is common to see people chatting in public squares or enjoying animated conversation while strolling along a path.
Why not plan a visit to Italy on your next holiday!!!  
(for more information about Travelling and Tourism in Italy  visit https://timbu.com/italy )
[Webinar] Tips for Speeding Up Your Remote Appium Sessions
Tags: testing, appium, techtalks
Published: 2019-08-20 20:39:35

Wednesday, Sept 11, 2019 |  11:00AM- 12:00PM (Pacific Daylight Time) | 1 Hour


In this webinar we’ll look at three techniques for ensuring your Appium tests run as quickly as possible when using remote Appium servers, which may be hosted by a cloud provider somewhere else in the world. 


**Specifically, we’ll cover:**

-  How to reduce latency using Appium’s new batch command execution method, which eliminates one of the biggest sources of wasted time in an Appium test—the time taken for the command to travel from client to server.

-  How to reduce the number of hops an Appium command must take to get to the device, by taking advantage of the new “direct client connect” feature supported in some Appium clients. This feature is supported by HeadSpin to ensure that, after your session begins, subsequent commands do not pass through any unnecessary proxies.

-  How to ensure a speedy startup time for iOS tests specifically. Test startup time is time spent merely in provisioning the device and Appium resources to prepare for the test, and should obviously be as made as fast as possible so you are waiting on your test steps, not on preparation steps.

In the process of explaining these techniques, I’ll also share data gathered from the HeadSpin cloud to give a quantitative idea of exactly how adopting these strategies might improve the timing of your test suite.


[Register Now](https://info.headspin.io/webinar/speeding-up-your-remote-appium-sessions?utm_source=devto&utm_medium=referral&utm_campaign=webinar)
Hello, world! A simple manifesto
Tags: career, discuss, motivation
Published: 2019-08-20 20:20:44


After a few years, I finally read in Medium platform, I have created an account but never wrote just only read and clapping the articles.

Then, why do you write now?

The principal motive is to improve my English learning and write it is an opportunity. Also with the writing, I will read to, it is obvious I know but for me(studying English) it makes sense.

Ok, but about what you will write?

I will write about the subjects interesting to me. Can be sports, real stories, literature, news, the technical topic about information technology and whatever.

And finally

I hope you enjoy the posts and would like if you contributed with tips, opinions, etc.
'60 Days of Flutter: Building a Messenger from Scratch' : Day 8 : Changing The Launcher Icon and Implementing GestureDetector
Tags: flutter, android, ios, mobile
Published: 2019-08-20 20:16:23

https://medium.com/@adityadroid/60-days-of-flutter-day-8-changing-the-launcher-icon-and-implementing-gesturedetector-421a00ad854a
Looking For Help
Tags: career
Published: 2019-08-20 19:30:50

Hey, everyone,

I am looking for a junior/mid Frontend Web Developer role in a part of Atlanta, GA, Savanna, GA and Charleston, SC. Could be Contract, Part-time, Full-time, Remote or Volunteer just need to get some experience. Does anyone know of any places that may have an opening? I would greatly appreciate any help. I will add my resume here. Thanks in advance.