teleren/devto huggingface dataset:
The Secret Life of Software Bugs
Tags: programming, culture, webdev
Published: 2017-11-03 14:57:01

---
title: The Secret Life of Software Bugs
published: true
description: To them, we are gods. But some bugs make blasphemy the sole purpose of their existence.
tags: programming, culture, webdev
canonical_url: https://listed.standardnotes.org/@mo/279/the-secret-life-of-software-bugs
---

Bugs simply do not reveal themselves to me when using my own product. They cower in fear, knowing somehow their all-powerful, all-punishing creator is watching, ready to descend upon them in wrath and eliminate their existence. No, my creations hide from me. Instead, they are attracted to my users. Poor, helpless users who do not have the tools to squash these creepy crawlers. 

Some bugs are bewildering. A user will have found some way to place his app in an impossibly invalid state. My goal is to replicate his world using the clues I am provided. Tragically, the solution always lies not in what the user tells me, but in what they don’t tell me. The missing link is always some small, insignificant detail no one thinks is important enough to bring up.

A special few bugs are long term mysteries that can be solved only through divine intervention. Every day I’ll collect clues and pin new suspects on my investigation board. I have to be getting close.

Other bugs seemingly discover ways to transcend their given abilities. They do things that are just not supposed to be possible. This bug might set some text to a red color, but you search your code and find no where at all where the color red is used. How can this possibly be? You begin questioning your own sanity. And no doubt, your sanity does not escape these experiences unscathed.

You never do find what made the text go red. You’re in your late eighties now, sitting by a warm fire on a snowy day. You’ve long retired from the treacherous craft of bug-hunting–that was of another life. Snowflakes play through your window like a screensaver. The sound of hissing heat from your stovetop fills the room, and your teapot begins to whistle softly. Here and now, as you come to terms with the end of your life, somewhere atop a remote snowcapped mountain on the edge of the world, it hits you–the hex code for red is #F00. F00 was the default color value in case the input was null. You thought it said “FOO”, so you ignored it. In that moment, your heart accelerates. You fall to the ground with hands held against your chest. The camera switches to an aerial view, and lingers briefly on your face, then begins receding slowly. 

You lived a good life. But alas,–your bugs did too.
Responsive Drupal Website: The Importance You Should Know
Tags: drupal, technology, website
Published: 2017-11-03 13:02:35

---
title: "Responsive Drupal Website: The Importance You Should Know"
published: true
description: Add extra functionality to Drupal websites with a mobile-friendly design. Responsive Drupal websites ultimately solve the need of targeting multiple device users and acquiring better traffic, and sales for your website. 
tags: #drupal #technology #website
---

Empowering million of websites on the web, Drupal has been catering to worldwide users for the creation of user-friendly and functionally overloaded websites. Drupal’s upgraded versions come with a mobile-first approach. With the advent of this approach, Drupal has redefined itself as a completely responsive CMS. [Responsive Drupal website] (http://www.psdtodrupaldeveloper.com/psd-to-drupal/) is delivered with the aim of offering engaging experiences across mobile, tablet and desktop. Drupal’s new admin panel has been remodified to follow the responsive theme that automatically aligns itself to the desktop and mobile screens. 

Drupal 8 makes use of an API to use for your mobile application and allow editing content or images. Responsive Drupal websites have become crucial for the success of your business. Such websites are reprogrammed from the scratch and also offer a favorable impact on search engine optimization. By resizing text, forms, buttons and images, responsive websites take full advantage of the screen space. The text of the website becomes readable whereas the images go adequately with screen size. Using responsive feature in Drupal websites ensures getting the suitable content in front of potential customers. 

Responsive as a feature in Drupal has always helped deliver optimal user experiences, no matter which device it is being used on. Drupal supports responsive design practices to ensure seamless content experience across every device. There are multiple options available to make mobile friendly websites using Drupal. Drupal has made it quite easier for developers to create mobile apps that eliminate confusion. Drupal Gap, a well-known mobile app development kit makes it easy to create multi-platform Drupal mobile application that communicates with websites. Native mobile apps for Drupal can offer high popularity and revenue potential for businesses. 

Responsive themes in Drupal make use of media queries to serve CSS. Such media queries function in real time so whenever a viewer moves round his phone, media query updates the style sheets to fit in the full width of device. Another advantage which responsive Drupal websites offer is the quick transition of legacy websites. Responsive feature is going to exist long in the digital space. Businesses need to adopt this feature in the right manner to allow proper usage.
Free courses about programming - Project
Tags: opensource, showdev, project, feedback
Published: 2017-11-03 11:46:35

---
title: Free courses about programming - Project
published: true
description: 
tags: #opensource #showdev #project #feedback
---


Hello everyone.
 
Recently I created a project that lists some free courses about programming:
https://freecourses.github.io
 
If you can give tips, suggestions or any other feedback I would be very grateful!
 
If you would like to add more courses to the project, see how in:
https://github.com/Leocardoso94/Free-Courses/blob/master/CONTRIBUTING.md
 
Thanks
Binary search using c#
Tags: c, algorithm, binarysearch
Published: 2017-11-03 09:35:21

---
title: Binary search using c#
published: true
description: So yesterday, I worked on a code that helped with that and it was so overtly cool!!
tags:  c#, algorithm, binary search

---

![alt text](https://thepracticaldev.s3.amazonaws.com/i/0i8tqf0sjtadcdm51m3x.jpg)
####I'll be breaking down the documentation if you need help.




        public static int BinarySearch(int arraySize, int targetNumber)
        {

            Random random = new Random();
            int[] figures = new int[arraySize];

            while (!figures.Contains(targetNumber))
            {
                for (int i = 0; i < figures.Length; i++)
                {
                    figures[i] = random.Next(0, 15);
                }
            }

            //SORTING OUT THE ARRAY
            Array.Sort(figures);

            int minimum = 0;
            int maximum = figures.Length - 1;

            l1:

            int center = (maximum + minimum) / 2;

            if (figures[center] == targetNumber)
            {
                return center;
            }

            if (minimum > maximum)
            {
                Console.WriteLine("This kind of Array doesnt exist and this is false. Please add some element to the element. Thanks!");
            }

            if (figures[center] < targetNumber)
            {
                minimum = center + 1;
            }

            if (figures[center] > targetNumber)
            {
                maximum = center - 1;
            }

            if (figures[center] == targetNumber)
            {
                return center;
            }

            goto l1;
            
        }

        static void Main(string[] args)
        {
            Console.WriteLine(BinarySearch(10, 8));

            Console.WriteLine("The End");
            Console.Read();
        }
    }
}
What tutorials would make a non-developer think you're a magician?
Tags: programming, tutorial, discuss, fun
Published: 2017-11-03 09:11:11

---
title: "What tutorials would make a non-developer think you're a magician?"
published: true
description: 
tags: programming, tutorial, discuss, fun
---

While watching [this Redux video](https://egghead.io/lessons/react-redux-implementing-store-from-scratch) from Dan Abramov I was quite sure that if I would show this to my non-developer friends, they would be shocked.

What other tutorials like that are out there? Any that blew your mind or you had to watch/read multiple times to understand?
To raise or not to raise exceptions, and the art of designing return values
Tags: ruby, softwareengineering
Published: 2017-11-03 08:46:55

---
title: To raise or not to raise exceptions, and the art of designing return values
published: true
description: Each time we call a function that’s meant to perform some operation that could succeed or fail we are always left with the same dilemma. What should be the return value? Should I return nil if a failure happened? Or I should throw an exception? What does failure means anyway? Like every interesting question, the answer is it depends. In this blog post, I’ll bring clarity to the discussion and present what are the tradeoffs involved and how to choose between the existing alternatives.
tags: ruby, softwareengineering
---

Each time we call a function that’s meant to perform some operation that could succeed or fail we are always left with the same dilemma. What should be the return value? Should I return nil if a failure happened? Or I should throw an exception? What does failure means anyway?

Like every interesting question, the answer is it depends. [In this blog post](http://www.alfredo.motta.name/to-raise-or-not-to-raise-exceptions/), I’ll bring clarity to the discussion and present what are the tradeoffs involved and how to choose between the existing alternatives.

[Read the full story here](http://www.alfredo.motta.name/to-raise-or-not-to-raise-exceptions/)
Would you send a plain text password from your website to the server over a secure connection?
Tags: security, webdev, discuss
Published: 2017-11-03 00:37:01

---
title: Would you send a plain text password from your website to the server over a secure connection?
published: true
description: Discussing client-server communications security for websites.
tags: security, webdev, discuss
---
 
What's your _strategy_ when it comes to securing your web application's communications with the server? Do you just rely on **HTTPS**? Or you have an extra layer _Just in case_?

Interested to see your thoughts...
Resumé++
Tags: career
Published: 2017-11-02 23:44:11

---
title: Resumé++
published: true
description: Catch a few tips to polish your resumé up for your next job! 
tags: career
cover_image: https://thepracticaldev.s3.amazonaws.com/i/tprbxwqb5t7bpsgc10gr.png
---

I enjoy building my resumé, mostly because it's a way to express yourself before the recruiter even talks with you. We're extremely lucky to work in a creative field also..we can get away with certain things (colors) on our resumés that other fields cannot. Colors, are argumentative, but I like to use them to draw attention to certain parts of the page that might not have been noticed otherwise. What's that crazy statistic, you only have 10-30 seconds to impress a recruiter looking at your resumé?! Okay, assuming that's true, I've gathered a few tips for you to polish it!

## 1. Position your resumé for the job you want, not the job you have.

Once upon a time, I thought it was impressive to list every language I've ever learned. After being thoroughly disappointed with the types of jobs asking me to interview, I realized that no one could tell what I was really passionate about. This doesn't mean you can't talk about that cool script you wrote once, but I would save it for a discussion, and save the room on paper for more important things. Which leads me to.. 

## 2. If !important*, leave it off.
** NOT important for you CSSer **

You only have so much room to sell yourself. Save it for the really impressive things, like that project you lead, or how you managed to reduce the code base by 30% and increase usability. Any professional or personal wins too! You'll have time to discuss in greater detail should they reach out to you, and there you can also bring up the things you had to leave off.

## 3. Format, Pleeeeeeaaaaase.

Do. Not. Go. Below. 12pt. Font.
It's tough to fit everything you want to on your Resumé. However, by following tip 2, make sure you have enough room to format everything to look easy on the eyes. I recommend [this article by Nick Babich] (https://uxplanet.org/the-power-of-whitespace-a1a95e45f82b) to use white space to your advantage. 

## 4. After a few years of professional experience, your GPA is irrelevant.

Leave it off.

## 5. If you're fresh out of school...

List your GPA, unless it's going to hurt you.
Focus on any projects you were apart of, how you contributed, and how you shined.
Did you help out with any classes or help a teacher review code? Mention it! You want to list as much real-world experience you had exposure to as possible.

## 6. Consistency.

Whether it's formatting, or wording, or bullet points, keep the document consistent throughout. Keep your experience ordered by most recent first. 

## 7. Any language you list is fair game.

To go along with my story in tip 1, any language you list on your resumé, your interviewer could, and probably will, ask you some questions about it. Only list languages you're comfortable with, and feel free to mention in your interview that you've dabbled with others.
As an under represented minority, what do you watch out for when job hunting?
Tags: anonymous, discuss
Published: 2017-11-02 17:59:21

---
title: As an under represented minority, what do you watch out for when job hunting?
published: true
description: It's easy for companies to appear diverse and inclusive, when they're really not. 
tags: anonymous, discuss  
---
_This is an anonymous question sent in by a member who does not want their name disclosed. Please be thoughtful with your responses, as these are usually tough questions to ask and answer._

I'm currently working in a toxic environment, and today, my previous intern told me that the company offered them a full-time position. They also have offers from several other companies so they came to me for advice. 

Since I can personally vouch for 'how things really are' here, I can be helpful. However, most people (especially new grads or those transitioning to tech) don't have these types of connections. It's easy for companies to appear diverse and inclusive, when they're really not. 

When you don't have pre-existing connections or a community to lean on, what should you be watching out for? Any advice on reading between the lines?
Do you know other diverse communities?
Tags: discuss, culture, inspiration, community
Published: 2017-11-02 16:27:39

---
title: Do you know other diverse communities?
published: true
description: "I would love to see more communities as diverse as dev.to"
tags: discuss, culture, inspiration, community
cover_image: https://thepracticaldev.s3.amazonaws.com/i/r5l3gy0wcmdz2rybx0g4.jpg
---

One of the things I love the most about **dev.to** is that it is a community for all developers no matter what you are working on. It doesn't matter if you design websites, manage infrastructure, analyze scientific data or build micro chips. The jobs of all of us developers have many things in common and by not being all the same we can learn even more from each other. I only wish there would be more places like this out there!
Too many conferences, meetups and platforms are focusing on a specific technology.

There are only a few exceptions I know about:
I like the [Hack && Tell](http://hackandtell.org/) meetup series. [HN](https://news.ycombinator.com/) is a community for everyone but its anonymity and discussion style make it not a nice place for everyone. [Strange Loop](https://thestrangeloop.com/) is a great conference bringing people together although its main focus is on languages and innovative technologies.

Do you know any other online communities, projects, conferences or local meetups that bring people from different fields together?
Code Camp Curriculum
Tags: discuss, codecamp, givingback
Published: 2017-11-02 15:51:04

---
title: Code Camp Curriculum
published: true
description: Looking for advice, links, thoughts
tags: #discuss, #codecamp, #givingback
---
I am organizing a code camp for middle-school aged kids and need some ideas. We are giving the kids a Raspberry Pi to take home at the end of the camp and I want to foster the idea that they can do more than read instructions and repeat what is written down. I am trying to spark something in them. To that point, I have been limiting my research to JavaScript and Python.

There are several great starter projects on AdaFruit, etc. but they are single session projects. I am guessing I could staple a few of those together for a five day class, but I would rather have a cohesive curriculum.

Has anyone else done something like this? Am I failing at Google-jitsu?
★ Ultimate Guide to Go Variadic Funcs
Tags: go, programming, tutorial
Published: 2017-11-02 14:25:34

---
title: ★ Ultimate Guide to Go Variadic Funcs
published: true
description: Learn everything about Golang variadic funcs with common usage patterns.
tags: go, golang, programming, tutorial
---

[![](https://thepracticaldev.s3.amazonaws.com/i/xw7579bagf45s4032obc.png)](https://blog.learngoprogramming.com/golang-variadic-funcs-how-to-patterns-369408f19085)

## What is inside?

* ✪ What is a variadic func?

* ✪ When to use a variadic func?

* ✪ Slices and the Variadic Funcs
  * Using without params
  * How to pass an existing slice?
  * Passed slice’s spooky action at a distance
  * Passing multiple slices on-the-fly
  * Returning the passed slice
  * Expanding operator anti-pattern
  * Using the length of a variadic param
* ✪ Signature of a variadic func
* ✪ Mixing variadic and non-variadics params
  * Accepting variables types of arguments
  * Why does not Printf only accept just one variadic param?
  * Beware the empty interface type
  * Passing a slice to variadic param with an empty-interface
* ✪ Functional programming aspects
  * Using a func’s result slice as a variadic param
  * Variadic options pattern example

---

### ★ [Click here to read the guide](https://blog.learngoprogramming.com/golang-variadic-funcs-how-to-patterns-369408f19085).

See you next week!
Netlify.. Any competition in the market?
Tags: question, discuss, hosting
Published: 2017-11-02 10:29:34

---
title: Netlify.. Any competition in the market?
published: true
description: 
tags: question, discussion, hosting
---

An open question!

Has anyone seen any alternatives to Netlify? It seems to be quite a unique offering with its CI capabilities mixed in with hosting. I've seen a few alternatives related to dropbox such as paperplane.io and also some related to github, but we currently use GitLab for our private version control.
The Python Exception Class Hierarchy
Tags: python
Published: 2017-11-02 22:43:04

---
title: "The Python Exception Class Hierarchy"
published: true
tags: python,
canonical_url: https://airbrake.io/blog/python-exception-handling/class-hierarchy
---

The Python exception class hierarchy consists of a few dozen different exceptions spread across a handful of important base class types. As with most programming languages, errors occur within a Python application when something unexpected goes wrong. Anything from improper arithmetic and running out of memory to invalid file references... [continue reading →](https://airbrake.io/blog/python-exception-handling/class-hierarchy)
CurtineIncSw.vim - switching between implementation and header files
Tags: vim, c, opensource, github
Published: 2017-11-02 00:53:53

---
title: CurtineIncSw.vim - switching between implementation and header files
published: true
description: VIM - switching between implementation and header files
tags: #vim #c #opensource #github
---

I'm not adverse to using an IDE from time to time. But often I find myself editing C/C++ code from VIM, being the swiss army knife of text editing that it is.

One common task I perform, especially when changing/adding/removing function signatures is switching between header and implementation files.

Sometimes I struggle to remember the location of all 532677 C/C++ files in my repo...

#Introducing find

Often I would briefly leave vim and do a find like follows:

find . -name "fileIHadOpenInVim.c"

or

find . -name "fileIHadOpenInVim.h"

#Sound familiar?

Try out my VIM plugin, this task becomes a single keystroke in VIM and is optimized for speed and simplicity:

https://github.com/ericcurtin/CurtineIncSw.vim
https://vim.sourceforge.io/scripts/script.php?script_id=5545

Feel free to give feedback, open issues and open PRs!
Making Customer's Lives Easier with Microsoft Office Preview
Tags: preview, office, igrafx, aspose
Published: 2017-11-01 19:53:33

---
title: Making Customer's Lives Easier with Microsoft Office Preview
published: true
description: Enabling Office previews in the web browser
tags: preview, office, igrafx, aspose
---
Viewing a Microsoft Office document while on the go can sometimes be a frustrating experience-especially if you don’t have Office on your computer. Even with Office on your computer, you still need to download the document, then wait for it to open; which can be a hassle if you wanted to quickly view the document. A commonly requested feature was to enable users to preview a document in the browser on the [iGrafx](http://www.igrafx.com/) Platform without downloading the document first.
We first approached the problem trying various free libraries (Apache POI, Docx4J and JODConverter) but didn’t like the resolution, accuracy, format support and documentation, so we started trialing some paid libraries. Our first attempt to create document previews were in Word to get a baseline of implementation difficulty, and the document support we were looking for. Many of the libraries we tried didn’t have good documentation, and their API’s were confusing. The best one, and the one we decided to use, was the [Aspose](https://www.aspose.com/) Library which now enables us to preview Word, Excel and PowerPoint documents. While the implementation for each format we now support wasn’t perfect, it was far better than the alternatives. We liked this library as it still allows the user to search for items in the preview rather than displaying the preview in an unsearchable image format. This feature, while subtle, is important when previewing long documents when time is of the essence. We can also support old office document formats making this feature incredibly useful. Now when you upload an external file; any text, PDF, Microsoft Word®, Microsoft Excel®, and Microsoft PowerPoint® documents can be previewed in browser, without downloading the file first!
![Word preview](https://thepracticaldev.s3.amazonaws.com/i/ghsge5dzk5xydjsohyn9.jpg)
We are excited to use this library as it gives us future feature support we can enable, such as better PDF integration, Microsoft Outlook® email, Microsoft Project®, and Microsoft OneNote® previews and much more.
![Powerpoint Preview](https://thepracticaldev.s3.amazonaws.com/i/phr5g8kbd4q9qjtnshjc.jpg)
![Excel Preview](https://thepracticaldev.s3.amazonaws.com/i/77cptsq4dyrp55o1bu8j.jpg)