teleren/devto huggingface dataset:
What advice would you give a CS student starting their freshman year?
Tags: advice, discuss
Published: 2019-08-19 13:02:39

---
title: What advice would you give a CS student starting their freshman year?
published: true
tags: advice, discuss
---

The school year is starting, and freshmen everywhere are taking CS101 (or some equivalent) in their respective universities!

It's an exciting time, but it's also the beginning of a 4-year struggle for some. Like 17 y/o Wellesley freshman me, who dropped out after DS&A, later referred to as a "weed-out" course. :(

**What advice would you give to a freshman CS student on their first day of classes?**
Running GoBuffalo on Google App Engine
Tags: go, buffalo, appengine
Published: 2019-08-19 13:02:02

---
title: Running GoBuffalo on Google App Engine
published: true
description: 
tags: go, Buffalo, App engine
---

Ever wondered how to deploy the great Buffalo on GAE?

Here is the `app.yaml` file that will get you started:

```yaml
runtime: go111

#[START env_variables]
env_variables:
  PORT: 8080
  GO_ENV: "production"
#[END env_variables]

handlers:
- url: /robots.txt
  static_files: public/robots.txt
  upload: public/robots.txt
- url: /assets
  static_dir: public/assets
- url: /.*
  script: auto
```

Additionally, set your `.env` file to contain:
```bash
DATABASE_URL="user=postgres password=Im4P4$$w0Rd dbname=golangtesting_production host=/cloudsql/my-project-id:europe-west1:my-production-instance"
SESSION_SECRET=yeahR1ght
```
if you want to deploy it with the database.

For more details take a look at [Gobuffalo on App Engine](https://golangtesting.com/posts/gobuffalo-app-engine). There you can find additional environment settings, how to set up the database, run migrations and handle assets.
LWC – Id Property with Lighting Debug Enabled Issue
Tags: video, lwc, salesforce
Published: 2019-08-20 20:20:19

---
title: LWC – Id Property with Lighting Debug Enabled Issue
published: true
tags: Video,LWC,Salesforce
canonical_url: https://wipdeveloper.com/lwc-id-property-with-lighting-debug-enabled-issue/
cover_image: https://wipdeveloper.com/wp-content/uploads/2019/08/Screen-Shot-2019-08-16-at-11.56.11-PM.png
---

{% youtube VW6mp38wVrU %}

Hello, I’m Brett with WIPDeveloper.com. The other day while developing a Lightning web component, I ran into this issue where when importing the Salesforce user ID and assigning it to a property in the component called ID. And this is a very simple component, because that’s all it’s doing in the JavaScript. And all it’s doing in the HTML is displaying the ID. Now, this is pretty straightforward. You think there shouldn’t be any issues. And there’s not it’s loaded on the page.

The issue arises when you enable lightning debug mode. So if I go into the debug mode, and enable it, and refresh the page with component on it, I start seeing this, `render threw an error in 'c:importUserId Trial' [Assert, Violations: Failed to construct '<c-import-user-id-trial>': The results must not have attributes.]` and took a while to figure it out. And saw some responses on Twitter about this. I thought the issue was with the important statement itself. Obviously, it was working before I turn on lightning debug mode. So if I turn it off, and refresh the page, it works again. But if I want the debug modem, that’s not a solution. So I’m going to enable it, make sure it’s still an issue. And it is. Now, I’m going to change the property name from it to something else. So thanks to you, user, Id save it, push this and refresh the page. Maybe a second time.

Oh, I should update the HTML template.

Refresh the page. We can now see RTD ID. And we can open up the developer console in the browser and see that we are in lightning debug mode, because we get all those wonderful messages from Salesforce. Yay. So if if you are encountering the renderer threw an error, assert violation check to see if you have any properties that are called just ID, ID and adjust accordingly. It’s to my understanding, not supposed to be something that’s prevented. Based on some of the responses I saw. It’s not supposed to be an issue, unless is an API decorated attribute but that is not the case that I encountered.

## That’s it for now.

Remember to sign up for **[The Weekly Stand-Up!](https://wipdeveloper.com/newsletter/)**  and you can get updated with any new information we have on WIPDeveloper.com.

The post [LWC – Id Property with Lighting Debug Enabled Issue](https://wipdeveloper.com/lwc-id-property-with-lighting-debug-enabled-issue/) appeared first on [WIPDeveloper.com](https://wipdeveloper.com).
Expanding Objects in Chrome Dev Tools Happens Asynchronously 🤦‍♂️
Tags: chrome, devtools, async, tips
Published: 2019-08-19 12:30:36

I had a moment the other day while I was trying to understand how a feature was working from another team. I console logged an object that was being sent to a function to see those properties. When I expanded this object in Chrome's devtools, I knew that some of those values were not correct. 

After going round and round for about an hour, I _finally_ saw a little icon next to the object when it was expanded. I hovered over it and things finally made sense.

![Chrome Dev tools showing a tooltip that says this value was evaluated just now.](https://thepracticaldev.s3.amazonaws.com/i/25kffgb234r45mkk1gov.png)

...oh.

When you console log an object like a string, number, or something with a value that can be shown in the small preview line, that will be the value that it was when the log happened.  The console keeps a reference to that value if it's an object that we can expand to see its various properties. When you expand, Chrome reaches into that object and builds out the log at that particular moment so if any modifications happened between the console log and the user expanding the object, those modifications will be shown.

If this is something you need to get around and see the values of some of the underlying properties, log the various properties individually instead of the parent object.

It's a small thing, but something to be aware of when you're trying to figure out how something works. It's easy to miss.
Start finishing your "indie" games (a personal challenge)
Tags: management, games, phaser, javascript
Published: 2019-08-19 12:28:49

Coding a game is not so hard when you finally start to feel comfortable with the framework, pattern, language or the concept itself. The problem is finish the things. You can be a new programmer, or an experienced one, but surely this little problem is not strange to you.

I have a tons of folder of unfinish games, in those files there are many moments of fun and learning, but nothing closed. Nothing to be proud, or show. So I started challenge myself to planning, design, coding and publish games, as a iterative process. This not only contributes to my knowledge, but also to my management skills.

At the moment I make two crappy games, but the feedback that they gave transform them in the next couple of advices. I hope you find it useful.

* Estimate all the tasks, two hours maximum per task (Divide as much as possible). If you don't know how achieve the task use the cone of uncertainty.

* Priorice for MVP (minimum viable project). Build features from basic but necessaries functionalities to most accessories ones. You need to think in a building, from the bases to the top, one floor at a time, not from left to right.

* Design is iterable. If you illustration or design skill are weak, like me, use basic shapes for start test your game. Don't wait for get the final design to start programming. You can buy assets too.

* If the code scales and not compromise maintenance, Its ok. If It bothers you in a piece of code, assign time to fixed later.

* Don't look back. The game is a chunk of logic and images, this isn´t your baby. Usually is better apply the learning in something new.

* Put a deadline, try to work one hour per day.

This journey don't end, but for now this is the output (Be nice, the target here is management, not technical).

No Oasis Here - 15 hours (8 hours estimated).
[Play online](https://ematimlopez.itch.io/no-oasis-here)
[Code](https://github.com/emanueltimlopez/no-oasis-here)

Rock, paper, scissors - 3 hours (6 hours estimated).
[Play online](https://ematimlopez.itch.io/rock-paper-or-scissors)
[Code](https://github.com/emanueltimlopez/rock-paper-scissors-game)
React Tldr; 5 Tips to Help You Avoid React Hooks Pitfalls
Published: 2019-08-19 12:11:22


- Read React Hooks documentation and FAQ before you start.
- Install, use, and follow the ESLint plugin.
- Don't think about Lifecycles, think about synchronizing side effects to state.
- Know that React is fast by default and do some digging before applying performance optimizations pre-maturely.
- Avoid testing implementation details.

Source: https://kentcdodds.com/blog/react-hooks-pitfalls
Api on Rails 6
Tags: rails, ruby, api
Published: 2019-08-19 11:48:21

---
title: Api on Rails 6
published: true
description:
tags: rails, ruby, api
cover_image: https://thepracticaldev.s3.amazonaws.com/i/8cj49wjh7g7ubv0g6fon.png
---

Dear Ruby community,

I just finished rewriting my [API on Rails book](https://leanpub.com/apionrails6) for the brand new version of [Rails 6](https://rubygems.org/gems/rails) released last Friday. This book discusses of bests practices for building a scalable API with Rails 6.

I didn't just adapt the content, but I also chose to simplify some examples and use tools that seem more current to me, such as:

- authentication tokens with [JWT](https://jwt.io/)
- compliance with [JSON:API specifications](https://jsonapi.org/)
- unit and functional tests with [Minitest](https://github.com/seattlerb/minitest) instead of [Rspec](http://rspec.info/)

It took a lot of work on my part, so don't hesitate to [take a look at Leanpub](https://leanpub.com/apionrails6).

The book is also available in [open-source on Github](https://github.com/madeindjs/api_on_rails/releases) so feel free to fork and suggest improvements. I built the book using [Asciidocotr](https://asciidoctor.org/) so it's really easy to contribute. You can also translate in your language and sell it on your preferred platform.

Thank you for reading.
The Power of Rules
Tags: discuss, javascript, boilerplate
Published: 2019-08-19 11:38:57

Every organization has their own rules they follow for better workflow. In terms of web development, what are some of the rules you have in your organization? Do you have a boilerplate or some style guide? Or do you set your own rules that you apply in your organization? How powerful are the rules you set that make your development as flawless as it can be? Leave a comment below.
Weekly Links – 8/19
Tags: links, development, weekly
Published: 2019-08-26 14:21:23

---
title: Weekly Links – 8/19
published: true
tags: Links,development,weekly
canonical_url: 
---

Another week of links, right now I’m running around disney world with the family but managed to still get this out the door.

## Development

- [Announcing .net core 3.0 Preview 8](https://devblogs.microsoft.com/dotnet/announcing-net-core-3-0-preview-8/)
- [Tips and Tricks for Linux Development with WSL and Visual Studio Code](https://devblogs.microsoft.com/commandline/tips-and-tricks-for-linux-development-with-wsl-and-visual-studio-code/)
- [Introducing Boots: Streamline Xamarin Continuous](https://devblogs.microsoft.com/xamarin/boots-xamarin-ci/)
- [Integration](https://devblogs.microsoft.com/xamarin/boots-xamarin-ci/)[ASP.NET Core and Blazor updates in .NET Core 3.0 Preview 8](https://devblogs.microsoft.com/aspnet/asp-net-core-and-blazor-updates-in-net-core-3-0-preview-8/)
- [ASP.NET Core and Blazor updates in .NET Core 3.0 Preview 8](https://devblogs.microsoft.com/aspnet/asp-net-core-and-blazor-updates-in-net-core-3-0-preview-8/)

## Cloud

- [Azure SignalR Service now supports Event Grid](https://devblogs.microsoft.com/aspnet/azure-signalr-service-now-supports-event-grid/)
- [Integrating Cosmos DB with OData (part 2)](https://devblogs.microsoft.com/odata/integrating-cosmos-db-with-odata-part-2/)
- [Rapidly Develop blockchain solutions, but avoid the complexities](https://azure.microsoft.com/blog/rapidly-develop-blockchain-solutions-but-avoid-the-complexities/)
- [Azure Ulta Disk Storage: Microsoft’s Service for your most I/O demanding workloads](https://azure.microsoft.com/blog/azure-ultra-disk-storage-microsoft-s-service-for-your-most-i-o-demanding-workloads/)

## Audio / Video:

- [Integrating Accessibility with Elle Waters](http://www.dotnetrocks.com/default.aspx?ShowNum=1648)
- [Introducing Azure Anomaly Detector](https://channel9.msdn.com/Shows/AI-Show/Introducing-Azure-Anomaly-Detector) 
- [Data Exposed | SQL Database Connecitivty Explained](https://channel9.msdn.com/Shows/Data-Exposed/Data-Exposed--SQL-Database-Connectivity-Explained) 
- [Introduction to decentralized identities](https://channel9.msdn.com/Shows/Azure-Friday/An-introduction-to-decentralized-identities) 

See you all next week!
Destructuring por índices
Tags: javascript, node, react
Published: 2019-08-19 11:36:15

![Destructuring por índices](https://thepracticaldev.s3.amazonaws.com/i/9py7rpzlisx6eefdpiji.jpg)

Usando destructuring para criar constantes baseado nos índices de um array.

Espero que tenham gostado! Sabe qual é a banda?


Não deixe de visitar o repositório do github com todas as dicas em emersonbrogadev/social-media-snippets.

[➜ Participe da nossa lista de desenvolvedores](https://emersonbroga.com/e/participe/?utm_source=devto&utm_medium=post&utm_campaign=2019-08-19)
[➜ Aprenda ES6](https://amzn.to/2J4XnLg)
[➜ Veja as dicas no Instagram](https://www.instagram.com/emersonbrogadev/)
[➜ Assista nosso canal no YouTube](https://www.youtube.com/c/emersonbroga/)
[➜ Curta nossa página no Facebook](https://www.facebook.com/emersonbrogadev/)
[➜ Não perca as atualizações no Twitter](https://www.twitter.com/emersonbrogadev/)
[➜ Veja os repositórios no Github](https://www.github.com/emersonbrogadev/)

=)
How the hell do I use my forked NPM package?
Tags: npm, javascript, react, node
Published: 2019-08-19 11:33:44

---
title: How the hell do I use my forked NPM package?
published: true
description: You've forked a package, great! How the hell do you use it?
tags: npm, javascript, react, node
---

You can install your fork by doing `npm install github:[GITHUB_USERNAME]/[GITHUB_REPO]`

But the package won't work out of the box. Why?

Most of the time the `/dist` of the package is placed into the `.gitignore`. So you need to build a packaged version of the package so your project can use it.


To do this there are 2 methods. Only one worked for me.



### Method 1 (The one that didn't work for me 🤷‍♀️)

Inside your package.json you add a `postinstall` that goes into your directly and runs `npm install` and `npm run build`

```
  "scripts": {
    "postinstall": "cd node_modules/[PACKAGE_NAME] && npm install && npm run build"
  },
```

Now just run `npm install` and your package *should* be updated to your fork.

#### What if it doesn't work?
For a package I was testing it out on, `npm install` worked perfectly but the build process would never work if the package was already inside node_modules...

### Method 2 (Branch method)

This method requires you to make a branch on your fork that will only be used for installing (until the master of your fork gets merged, hopefully)

1. Create a new branch:
`git checkout -b useLocally`

2. Remove `/dist` from the `.gitignore`

3. Add the `build` command to `precommit`:
 ```
 "precommit": [
     "build"
   ],
 ```
Push Branch
```
git add *
git commit -m "COMMIT_MESSAGE_HERE"
git push origin useLocally
```

Now install the branch into your project
Just append #[BRANCH_NAME] to the URL of the repo when installing
`npm install github:[GITHUB_USERNAME]/[GITHUB_REPO]#[BRANCH_NAME]`

Now the `/dist` will be installed without having to make any changes to the `package.json` on master!
Do introverts make better engineers? 
Tags: career
Published: 2019-08-19 11:27:41

In the latest edition of our series The Story, we talked with Dr Thomas French who is the CTO at data science company Sandtable in London. 

We asked Thomas about Sandtable's company culture, and he had a really interesting response: 

_"We are a company dominated by introverts. We're quite a deliberative and academic crowd, but also collaborative. It's been an ongoing process figuring out how best to collaborate given different types of personalities."_

In the world of data science, it's important to be detailed-orientated, but does that favour introverts over extroverts? 

[You can read the full interview with Dr French by clicking here](https://www.client-server.com/blog/2019/08/how-sandtables-cloud-technology-changes-data-science)
Weekly Goals: Week of 8/18/19
Tags: devjournal, codenewbie, webdev, writing
Published: 2019-08-19 11:20:39

Happy Monday and welcome to another weekly roundup! This is my weekly thread on what I did or didn't do last week, what happened, and what my goals are for this new week. Let's get started! 

##Last Week’s Goals##
<ul>
<li>Finish portfolio site redesign</li>
<li>Write blog about portfolio site redesign &#x2611;</li>
<li>Video call with mentor &#x2611;</li>
<li>Continue working on Wes Bos' <a href="https://javascript30.com/">JS 30</a> &#x2611;</li>
<li>Get started on new project</li>
<li>KEEP LEARNING JAVASCRIPT &#x2611;</li>
</ul>

##What Happened?##

I had less time than I anticipated to complete my portfolio redesign this weekend. I still have to complete the following items:

<ul>
<li>Add dark theme toggle to website</li>
    <ul>
    <li>I've already designed the dark theme, added the CSS Variables, and created the classes necessary. I just need to implement the JS.</li>
    </ul>
<li>Increase whitespace between items on page.</li>
    <ul>
    <li>Ensure all padding/margins are consistent</li>
    </ul>
</ul>

<em>Firstly</em>, because I did not complete my website, I wasn't able to get started on my new projects. I don't think this will affect me in the long run but it would've been nice to wrap up a project at the end of the week. 

<em>Secondly</em>, I had a slight change in the design of my site - just the colors and profile picture. I had debated for a while to stick with the profile picture or not but in the end I decided to create and use my logo. In using the logo I had to change the header colors.

![Homepage of ryanfurrer.dev with new logo](https://thepracticaldev.s3.amazonaws.com/i/b5pv88nbqrzqtpur12dv.png)
<figcaption>Just wait until you see the dark mode 👀</figcaption>

##Moving Forward##

<ul>
<li>Add JS to portfolio site for Dark Theme</li>
<li>Increase the white space between elements by increasing margin & padding</li>
    <ul>
    <li>Ensure padding/margins are consistent throughout site.</li>
    </ul>
<li>Do more work on resume</li>
<li>Design rough draft(s) of new project(s) will look like</li>
    <ul>
    <li>I have not decided what to work on first but I've a few options: doMore (to-do list), a website for my favorite local brewery, <a href="https://www.instagram.com/dubco_/">DUBCO</a>, or a website for my <a href="https://www.facebook.com/WallysSpottedDogOrganics/">father's business</a>.</li>
    </ul>
<li>Continue learning JS and React</li>
</ul>

Another full week is on tap here but that's okay! I <em>do</em> feel like I need a day off, however, I might push through until <a href="https://worldofwarcraft.com/en-us/wowclassic">Classic WoW</a> releases next week - is anyone planning on playing? I'll be on the Stalagg server!

As usual, feel free to comment down below or you can always reach out to me on <a href="https://twitter.com/ryanfurrer_dev">Twitter</a>.
things you should do before a dev interview (2 of n)
Tags: interview
Published: 2019-08-19 11:07:46

---
title: things you should do before a dev interview (2 of n)
published: true
description: 
tags: interview
---

## Tip 1. ##
Check your resume before you go to your interview.

Know what is on your resume and be able to speak about it intelligently. Your resume is the only thing you have given your possible new employer. You must be able to talk about those things.

Even if the items on your resume are school projects. What part did you do in the project? What language did you use for the project? What did you learn for the project.

I have interviewed a lot of candidates and it is often hard to get them to explain what I see on the resume. Which makes for a super frustrating interview.

**The related tip here is do not lie on your resume.**

## Tip 2. ##
Make sure you have everything on your resume and put it in order of most recent first.

A common mistake is for a candidate to come in saying I forgot to put X on my resume. Sigh.

Order the experience section so that more recent is first. Assume the person you are interviewing with has only 5 seconds to look at your resume. Put the most recent stuff first.

## Tip 3. ##
Tune your resume to the job you want.

If you are applying for a gaming job, move the experience that makes the most sense to the gaming industry up. If you are applying for a job that uses C++ make sure to have it on your resume.

Again do not lie about anything but moving the related experience up can help.

This can also help the person interviewing. If you are applying for job that requires C++ the interviewer is going to ask about that skill so move it up.

## Tip 4. ##
Put your github on your resume.

This is especially important if you do not have formal or traditional training in CS. You need to prove you can code and a repo of code/projects goes a long way towards that goal.

If you are a student or bootcamp person and you have only done projects then make sure those projects are in github. You trying to get a job in CS so the interviewer needs to see what you have done.

Do not worry if your github is barren or mostly empty show what you have done!!!