teleren/devto huggingface dataset:
Ode to Developers
Tags: webdev
Published: 2019-01-27 09:18:43

---
title: Ode to Developers
published: true
description: Education is the great equaliser
tags: Web Development
cover_image: https://images.unsplash.com/photo-1535551951406-a19828b0a76b?ixlib=rb-1.2.1&auto=format&fit=crop&w=746&q=80
---

It's the culmination of many things,

Of many Google searches,

Of many Twitter ramblings.

It's many occasions of trawling through blog posts and YouTube videos,

Of sifting through examples and demos,

Of crawling through the source code,

Of wading through the docs,

Of much frustration,

But much reward.

Many aha! moments,

And a whole lot of curiosity.

I didn't learn any of this in a classroom (not that you shouldn't).

I never got a CS degree (not that you can't).

I never had a teacher (unless you count the browser).

I never had any classmates (unless you count the other users out there).

I never had a curriculum (unless you count the Bootcamps and the MOOTS and the [DEV.to](http://dev.to) recommendations).

I never had a reading list (unless you count the Twitter recommendations).

I never had a group project (unless you count the Pull Requests).

I never had a class discussion (unless you count Slack and Discourse).

But, of course, you **do** count all of these.

Who said that it has to have four walls and a whiteboard to call itself a classroom? 

Who said they had to be presenting a deck in an auditorium to be your teacher?

Who said you need a piece of stationary to prove that you've learnt something?

Who says the browser is not a classroom? 

That the users are not your classmates? 

That Twitter is not your class discussion? 

And, that GitHub is not your group project?

If "education is the great equaliser",

Then technology is the embodiment of that statement.

There is still bias, technology is not immune - to think otherwise would be naive.

Regardless of knowledge and expertise, some will still be overlooked,

By men, by ivy leaguers, by straight A students.

But what technology does do,

Is it does equip you with tools, 

The tools to do something about it.

If someone won't let you play in their sandbox you can create your own sandbox.

Create your own sandbox.

---

Originally posted to my [blog](http://devjam.es)
Create a symlink for hidden files
Published: 2022-08-08 12:31:14

---
title: Create a symlink for hidden files
published: true
date: 2019-01-27 09:00:00 UTC
tags: 
canonical_url: https://curiousprogrammer.dev/blog/create-a-symlink-for-hidden-files/
---

I want to create a symlink for all hidden files excluding the hidden directories. I want to put my configuration files in my home directory into version control.

I need to exclude the hidden directories because they contain binaries and what not.

Using this one liner, I can create a symbolic link for every hidden file in my home directory to my working (or target) directory.

```
for f in .*; do if [[-f $f]]; then ln -s /home/me/$f /home/me/working/directory/$f; fi; done
```

I execute this from my source directory.

I can verify that my symlinks exist in my target directory

```
cd /home/me/working/directory
ls -lah
```

I should see a few lines that look like this:

```
lrwxrwxrwx. 1 me me 26 Jan 27 10:49 .zsh_history -> /home/me/.zsh_history
lrwxrwxrwx. 1 me me 20 Jan 27 10:49 .zshrc -> /home/me/.zshrc
```
Contemplating on idea of Flow Based Programming for WebGL / Canvas 2D
Tags: webgl, glsl, threejs, vue
Published: 2019-01-27 08:20:52

---
title: Contemplating on idea of Flow Based Programming for WebGL / Canvas 2D
published: true
description: I love exploring different paradigms of editing JS based Animations.
tags: #WebGL #GLSL #THREEJS #VueJS
---

# Why do I choose Flow Based Programming to Explore.

1. Flow Based Programming is awesome because I love the part that we can modularise code with specific input output in a visual and mouse clickable way....
2. The Natural Cables with IO feels like Vuejs Props and Events.
3. Hmmm let's mimic props and events to a flow based paradigm.
4. Here we gooooooo lol That's why I made my side Project Effect Node.

# Sometimes, just Code as tool isn't enough.... 

1. Writing Visual Effect is related a lot to Buttons, Sliders and Color Pickers.
2. Waiting for reload to update a color tweaking is slow and ineffective.
3. Sometimes we also need to use a Range Slider to adjust Effect Speed and Amount.
4. Sometimes we also need to dynamically provide Timeline based fade in fade out sequence data into code.

![EffectNode](https://thepracticaldev.s3.amazonaws.com/i/0dcw2cgsqj760p5dsuiw.png)

https://github.com/EffectNode/EffectNode-GUI

# The way I think about organising the creation, flow and consumption of animation data..... :) 

There's a pull, there's push thinking....

I think there would be three types of modules
1. Source of truth Module, like UI Sliders, Timeline, Color Picker 
2. RequestAnimationFrame Event Emitter
3. Operational Module that handle animation setup and render.

I love thinking about different paradigms of programming.
Hope you like my work. woop woop. <3
First-class testing
Tags: testing
Published: 2019-01-27 06:51:41

---
title: First-class testing
published: true
description: How to be fun at testing
tags: testing
---


Some years ago, i saw some frameworks like Ruby on Rails trying to put `tests` folder in the same folder with dev codebase.

What's wrong with this approach ?

- Gemfile is becoming a mess with testing , dev and production dependencies.
- Discourage dependencies de-coupling, which means we're encourage to put everthing in the same place for the ease of "directory traversing"
- The codebase now is easier to "break", because for some reason, both tests code and dev code live in the same place, so they must please each other.

The main disadvantage with this approach, is that: Testers are afraid to write tests ! They're touching the main codebase!

I see the same problem with many frameworks in other languages also.

"Stop putting tests folder in the same codebase with dev folder"

So what does "First class testing" mean ?

Treat your tests folder the same role as dev folder, with its own dependencies, team ownership, development (tests is code), deployment (tests is code, so it could be compiled for deployment)

I'm happy with this approach and i found testing is easier to verify some weird behaviour in the main codebase.

What's your favorite testing strategy ? 

Edit: My project structure:

![](https://thepracticaldev.s3.amazonaws.com/i/jrd2cz3gdsejn7vgmcwk.png)
Fibers in Java (Yes fibers !!!)
Tags: java
Published: 2019-01-27 06:49:14

---
title: Fibers in Java (Yes fibers !!!)
published: true
description: 
tags: Java
---

Fiber is upcoming feature in Java which will offer a light weight alternative to Threads . However the question is why fibers ,one word answer to it is “money”.

Each thread created by Java corresponds to operating system thread. Creating Threads is costly as well as context switching to another thread is quite expensive. As a result in most applications thread gets blocked and servers remain underutilized. Java fibers on the other hand will be managed by JVM by its own scheduler .

If we see methods of Thread class vis-a-vis Fiber it will make the picture clearer.

Thread :
checkAccess() countStackFrames() getContextClassLoader() getId() getName() getPriority() getStackTrace() getState() getThreadGroup() getUncaughtExceptionHandler() interrupt() isAlive() isDaemon() isInterrupted() join() resume() run() setContextClassLoader() setDaemon() setName() setPriority() setUncaughtExceptionHandler() start() stop() suspend()

Fiber :
await() cancel() isAlive() isCancelled() schedule()

Creating and starting a fiber is quite straight forward

var fiber = new Fiber(() -> System.out.println("Hello from fiber"));
fiber.schedule();

In today’s cloud computing world where applications are billed on hourly basis reducing server underutilization is top most priority of application owners and fibers will certainly help them.
Deleting Git Repo. Blocked by SymLinks
Tags: help, linux
Published: 2019-01-27 06:23:45

---
title: Deleting Git Repo. Blocked by SymLinks
published: true
description: Symbolic Links are stupid ideas.
tags: help, linux
cover_image: https://thepracticaldev.s3.amazonaws.com/i/om37x45r9gyahf5tws13.jpeg
---

I am having some problems with symbolic link recursion. I have a git repo that refuses to leave my computer. I may never write immutable data again out of spite of this circumstance.

![](https://thepracticaldev.s3.amazonaws.com/i/dz5lo2vp0xu0cq24w06d.gif)

There does not seem to be many answers on this topic, or they're pertaining to people explicitly creating these symbolic links; what evil person would do this?

![](https://thepracticaldev.s3.amazonaws.com/i/m138gflj9dzinnh63m5a.gif)

Any idea how to **nuke** a directory from virtual existence?
Quick and Easy JS Parallax Effect
Tags: beginners, webdev, javascript
Published: 2019-01-27 05:34:21

---
title: Quick and Easy JS Parallax Effect
published: true
description: Cool little parallax effect using only JS
tags: beginners, webdev, Javascript
cover_image: https://gabemade.com/assets/blogentry1.jpg
---

I was recently tasked with creating a micro-site for one of our clients at work. This particular client wanted a small site that would showcase their new line of chips and dip. This being my first client deliverable at AMP, I was pretty excited to get started and show my team that I'm more than just a pretty face.

So I meet with my project manager and we go over the designs and discuss the functionality that the page would have behind its different sections. It was pretty straight forward, a hero, a featured products grid, a store locator, a product carousel and a footer. The only thing is the hero would feature a parallax effect where some chips would pop out and move up the page as the user scrolls down. While this was going to take a bit of work, a major bonus for me was that most of the other pieces of the site were already built for me thanks to my co-worker Ethan who is a pro at cranking out these microsites for our clients. So I pull down his github repository and setup my local, we're using Zurb's Foundation framework for this client. I start putting together the pieces and building out the page according to the designer's comp. After about 3 - 4 hours I finish what I consider the base of the page. I have all the sections in place and all the components are functioning as expected. It was time to get to the parallax effect.

## 9 lines of JavaScript

No bullshit. After hours of playing around with different parallax libraries to try and create the effect I wanted, my boss casually slides over in his chair and says "That looks fun. Send this to me, let me give it a shot". So I do. 15 minutes later he sends me over a JavaScript file and tells me that it's all set. I copy his code into my JavaScript file, compile it and open it up in FireFox to test it. It worked. It worked beautifully. I was so amazed, I kept scrolling back and forth making the chips move for what felt like hours. See the code below.

<img src="https://thepracticaldev.s3.amazonaws.com/i/tkj8ixcf4asz0kk0rkco.png">

Pretty Cool. And wicked simple too. Granted with this version you need jQuery in order for it to run, but creating the same result in vanilla js is possible.
Day 26: Swift macOS password manager for people who hate the cloud
Tags: macos, swift, passwordmanager, cloud
Published: 2019-01-27 05:02:17

---
title: Day 26: Swift macOS password manager for people who hate the cloud
published: true
description: Follow along as I make a 100% cloudless and 100% native password manager for macOS. That's 200% raw password managing power.
tags: macos, swift, password manager, cloud
series: Making a swift MacOS password manager for people who hate the cloud
cover_image: https://thepracticaldev.s3.amazonaws.com/i/q6r73zbfbm3mpfs98bu5.jpg
---

[<- For Day 25 go here](https://dev.to/swlkr/day-25-swift-macos-password-manager-for-people-who-hate-the-cloud-4fio)

📅 01/26/2019
🚀 [4 days until launch](https://www.producthunt.com/upcoming/all-your-passwords)
🔥 25 day streak
💰 $0.99 price (going to put in app store which only allows .99 values *sigh*)
🤑 $0 revenue
📈 0 customers
⌚️ 38.5 hours spent
😭 1 Rewrite
💻 113 files changed, 249768 insertions(+), 561 deletions(-)
🏁 Today's goal: **Attempt to set up a landing page, make view screen not suck**

**8:35 PM**
Well, I lived life again today, so the streaming didn't work out. I think I'll try to make the details page better somehow, while listening to some Florida Georgia Line. Don't judge me I'm a code cowboy 🤠

**8:51 PM**
Moved the buttons below the text fields, I think it looks better

![](https://thepracticaldev.s3.amazonaws.com/i/utqaimx64h1n706xo9zm.png)

**9:28 PM**
Also added a show button to hide the `NSSecureTextField` and show an `NSTextField` to show the plaintext password value. Can you believe there's no way to show plaintext values in an secure text field. I suppose it makes sense, but it's a pain for this app since you have two controls stacked on top of each other. So many hacks. Hacks on hacks.

I noticed that the memory keeps increasing linearly every time I switch rows in the table view. Have to fix that right now! No delay!

**9:55 PM**
That's that. It's done. I FIXED THE LEAK like the great plumber that I am.

Here's how I did it. I moved the "detail view controller" that gets called on tableview select, to an instance variable instead of re-instantiating in the function every time:

```swift
class ContainerViewController : NSViewController {

    var row : Row?
    var tableViewController : TableViewController?
    var detailViewController: DetailViewController? // <— here it is!
```

Once that was done, I kept track of whether or not there was a value there and called `removeFromParent`

```swift
        if let oldViewController = detailViewController {
            oldViewController.view.removeFromSuperview()
            oldViewController.removeFromParent()
            detailViewController = nil
        }
```

So good to see the memory stay steady around 36 MB. That's it for today. I'll fix the other memory leak around Edit/Cancel tomorrow. Also the slowness around edit/cancel, feels like a web app it's so slow. 🤦‍♂️
Who am i and what am I doing here?!
Tags: myfirstpost, rcartax
Published: 2019-01-27 04:05:06

---
title: Who am i and what am I doing here?!

published: true

tags: myfirstpost, rcartax
---
Hello I'm Ricardo and I'm not a developer, and that's why I'm here. To learn with all of you and to share my journey to become one. 
My first goal here will be to save the Sloan.
<img src="https://thepracticaldev.s3.amazonaws.com/i/dmgfy66hngtuk8mkcumq.png" >
If I did it right he shall now stay and live forever on my Dashboard.

Thank you all for having me. Looking forward to hear from you all.
This is my first post
Tags: motivation, career, job
Published: 2019-01-27 04:00:41

---
title: This is my first post
published: true
description: I just want to tell the story of my first job (A story that is not finish yet
tags: #motivation #career #job
---

Hi, my name is Jesus, Im from Venezuela and currently I'm living in Uruguay studying software engineering. I'm halfway through of my career by now, and 4 months ago I started looking for my first job, I found one, as a web developer, and guess what, I didn't have any idea of web development, just the basics, html, css, bootstrap, but I didn't know s**t about backend, node, express, mongo, etc etc, NOTHING.

So, my first month in the company began, I was nervous as hell. At first, I started with courses to learn what I needed it (Their intention for me was that I became a MERN stack developer) so for a whole month I learned all the necessary.

At my second month I started my capacitation proyect, a simple project to put in practice what I learned from the courses. Things happen and I took a long time to finished, almost 2 months, and that wasn't good, one of my main problems was that I make a lot of mistakes while coding, and those mistakes took me a long time to debug them, most of them on backend, but, I learned a lot, which for me is what matters. My bosses were displeased with my situation and until this day they keep telling me that in a certain way.

I'm about to start my 4th month, I started last week a project with a client, an easy project, and I'm giving my best at it, but my bosses told me last week that in their opinion Im not ready to be in a bigger project and that I should work harder (thing that I do), sooo, I don't know, this is my first job and i'm not scare about failure, I hope I can knock out this project and finish it on time, but if I dont, I dont know how I will feel about it, I hope I could learn a lot of that situation.

Well, this was my first post, sorry if a made grammar mistakes, I hope you read it and I don't know, be happy and happy coding!
Use stackoverflow, and use it well
Tags: questions, stackoverflow, tools
Published: 2019-01-27 03:21:44

---
title: Use stackoverflow, and use it well
published: true
description: How you should use stackoverflow
tags: questions, stackoverflow, tools
---

Dear new developer,

Stackoverflow (SO) is great for three different kinds of developers (and someone can be all three over time):

*    those who are looking for answers, usually via Google (searchers)
*    those who are looking to showcase knowledge, usually by answering questions (answerers), and
*    those who have a specific question to ask (askers)

Every developer can be a searcher (all you need is Google). But you can look for answers poorly or well. Do it well by reading all the answers, understanding the question that shows up in the search results, and voting up both questions and answers. The voting in particular is a low effort way to add value to the entire developer ecosystem (because you are providing value to other searches). I know it is easier to take the first answer and move on with whatever task you are trying to get done, but try to take a bit more time and help others.

But you should strive to be an answerer or an asker. See if you can answer questions or add comments to clarify them or point to other answers. If you have a question that isn’t answered on SO, take the time to build out a solid question. If you end up finding the answer to your question, self answer it to help other folks out.

It is true that SO is not the most welcoming community, but it’s the preeminent question and answer site and so worth having a presence on. Don’t forget, the smallest amount of help you provide to SO may resound for years. I only have ~3k reputation but have reached almost 950k people. And beyond helping others, it’s a great way to demonstrate competence without venturing too far out of your normal workflow.

Sincerely,

Dan Moore

_Originally published at: https://letterstoanewdeveloper.com/2019/01/07/use-stackoverflow-and-use-it-well/_
My First 10,000 Gem Downloads
Tags: ruby, opensource, github, rubygems
Published: 2019-01-27 01:00:48

---
title: My First 10,000 Gem Downloads
published: true
description: 
tags: #ruby #opensource #github #rubygems
---
Early this morning, I surpassed 10,000 total downloads of [my gems on RubyGems.org](https://rubygems.org/profiles/BurdetteLamar).

Very gratifying!
What does your Test Cover? 
Tags: discuss
Published: 2019-01-27 00:22:51

---
title: What does your Test Cover? 
published: true
description: 
tags: discussion 
---

My last post asked to include readability when evaluating code structure and design along with many of the other objectives like testing code.

{% link https://dev.to/jessekphillips/software-design-through-tdd-4mi7 %} 

I don't write production code on a daily basis, I'm a software test engineer who has to assure the quality of deliverables to the clients. I don't do this through test plans or reams of regression tests. I utilize an understanding of the system, support from software tools, history of problems, and asking questions. This leaves me with an ability to identify swathes of testing I should not do and I keep reducing that work to meet risk vs cost efforts.

To summarize, there is so much to test and you want to find what not to test. Does anyone do analysis of what types of test coverage they have and how effective it is at finding code issues vs needing updates due to expected changes? I expect that tests which cover logic over layout provides the most benefit.

What are testing types you find falsely claiming failures needing great maintenance and not carrying their weight?
A Good React Date and Time Picker
Tags: help, react, javascript
Published: 2019-01-26 22:19:38

---
title: A Good React Date and Time Picker 
published: true
tags: help, react, javascript
---

There are so many date pickers out there, but I can't find one that

- works well on desktop and mobile
- has nice keyboard input, preferably just allowing me to just type the digits one by one, skipping over any formatting characters.

I really love th date picker control that Chrome provides for [`input type="datetime-local"`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local), but that has very poor browser support. Any suggestions?

# What I've looked at

- The [AirBnB datepicker](http://airbnb.io/react-dates/) [react-datetime](https://github.com/YouCanBookMe/react-datetime), and the DateTimePicker in [react-widgets](https://github.com/jquense/react-widgets) all don't handle direct input into the text input well. They don't easily let you switch between setting month/day/year. In many of them, the input behaves like a normal text field.
- [react-datetime-picker](http://projects.wojtekmaj.pl/react-datetime-picker/) is very close to what I want. I can easily switch between date, month, year, etc. using tab or the arrow keys. I can also (inc|dec)rement the values using the up/down arrows. My only nitpicks, and I've posted these as an issue, are that focus doesn't automatically move from field to field when a value is typed, and that typing numbers starting with a 0 isn't intuitive (typing 05 into a field causes 005 to be entered).
Selecting Auto-Generated Content with CSS
Tags: css, beginners, cms, webdev
Published: 2019-01-26 21:46:14

---
title: Selecting Auto-Generated Content with CSS
published: true
description: How to select those pesky auto generated IDs and Classes with CSS.
tags: css, beginners, cms, webdev
---

Our agency's website was recently moved from WordPress to Hubspot. As a result, our team has been chipping away at JIRA tickets tackling any bugs that may exist from the migration. With that, I was tasked with building out a new contact page for the site, we currently have a contact modal that opens and overlays on top of whatever page you are on. I've never been a fan of this approach, I've encountered some major preformance issues when opening that modal on top of any video. The contact form would run so sluggishly at times, it was almost unusable. Thankfully, the new contact form was set to live in its own page - solving our preformance issues.
While we were building out the contact form, we ran into an issue with the way HubSpot handles forms. Normally to theme elements on any site I don't build myself, I use a browsers inspector tool to select the element I need, I can then see its styles, class names, IDS, etc. Today while attempting to theme some of the INPUT elements, I realized that HubSpot autogenerates the IDs of each input on what seemed like each page refresh. This made targeting the element difficult, but as I learned, not impossible. Though it was autogenerated, the first few characters seemed to be a machine name of the INPUT field. Which brings us to our CSS selector <pre> <code>div[class^="foo"]</code></pre> The selector targets an element, a div in this case, that has a classname that starts with foo. Pretty useful. There's also another selector that does similar <pre><code>div[class*="foo"]</code></pre> The difference in this one being the carrot symbol is now an asterisk, what that does is targets a div that has a classname that contains foo.