teleren/devto huggingface dataset:
Multiple ways to set non-reactive values on a Vue component
Tags: vue, beginners, javascript
Published: 2020-08-31 03:05:54

## The Skinny

If you need **non-reactive** attributes on a Vue component, you can either use $options OR assigning an attribute to the Vue instance.

### $options

```vue
export default {
  myConstant: 'hello',
  computed: {
    usingMyConstant() {
      return this.$options.myConstant
    },
  },
};
```

### this.myConstant

```vue
export default {
  mounted() {
    this.myConstant = 'hello';
  },
  computed: {
    usingMyConstant() {
      return this.myConstant;
    },
  },
};
```

I recently came across a use case where we needed to set a non-reactive value in Vue. We could have either used `$options` or setting the property on the instance.

## $options

I personally like using `$options` because when a developer is reading the declaration or the usage of values set in $options, it is SUPER explicit.

## this.myConstant

If we need access to a value when the component is being `mounted` or `created`, we can just put a new property on the instance.

```vue
export default {
  mounted() {
    this.myConstant = asyncAvailableValue();
  },
};
```

When reading the code in the component, we might think that were missing a data property (`myConstant`), because we have set a new property on the instance. If you do choose this approach, you might want to make a comment explaining that this property should not be reactive in order to prevent other developers adding it to the data function.

```
// This should not be a reactive property, do not put on data attr.
this.myConstant = asyncAvailableValue();
```

Thanks for reading

Scott
Lab 1-Introduction and SQL vs NoSQL
Published: 2020-08-31 02:33:54

##Introduction

Hey everyone! My name is Matt Anderson and I am a freshman at Penn State majoring in Cyber Security. I grew up in Westwood, NJ and graduated from Westwood High School. 

###Why choose Cyber Security?

I chose Cyber Security because I have always been interested in technology and computers even since I was a little kid. As a high school student performing well in my math and science classes, I was often pushed to do engineering, however I had no interest in becoming an engineer. Computers had always been more interesting to me and as I researched majors cyber security in the college of IST sounded like a great choice for me. 

###Future as an IT Professional

As much as I was interested in computers, I never really had many opportunities to learn coding through my school, besides through my AP Computer Science class so I am somewhat new to this. In that class I learned basic java, so I do have some experience with coding. Growing up, I have also thoroughly enjoyed helping others, so with a degree in Cyber Security I am hoping to be able to protect people and their data from cyber criminals. As our society relies more and more on technology, more and more people are going to need protection from cyber crime and that is my goal with my degree. 

##SQL vs NoSQL
Alright, that's enough about me. Below, I am going to attach a video that I made describing the differences between SQL and NoSQL. Underneath the video you will find some important bullet points related to the video and links to my references for the information.  

{% youtube p3Fk3LO0jkQ %}

-SQL stands for standard query language that use relational databases
-NoSQL use non-relational databases; such as document, key-value, wide-column, and graph databases
-SQLs have a very rigid data model while NoSQLs are very dynamic in their capabilities
-SQLs has strong data integrity because of ACID, while NoSQLs have higher performance because of the lack of data integrity

Reference Links
-https://www.infoworld.com/article/3219795/what-is-sql-the-first-language-of-data-analysis
-https://www.ibm.com/cloud/blog/sql-vs-nosql
-www.mongodb.com/nosql-explained
Getting the Request ID of a Lambda Invocation when Using Promises With the AWS SDK
Tags: aws, awslambda, awssdk, javascript
Published: 2020-08-31 02:50:49

---
title: Getting the Request ID of a Lambda Invocation when Using Promises With the AWS SDK
published: true
date: 2020-08-31 02:30:00 UTC
tags: aws,awslambda,awssdk,javascript
canonical_url: https://blog.neverendingqs.com/2020/08/31/lambda-sdk-request-id.html
---

Every invocation of an AWS Lambda function is associated with a request ID. Searching the CloudWatch logs with the request ID is the quickest way to find the logs of a given invocation.

To get the request ID when using the JavaScript AWS SDK, you can access the `$response` property of the response:

```js
const AWS = require('aws-sdk');
const lambda = new AWS.Lambda();

const response = await lambda.invoke({
  ...
}).promise();

const requestId = response.$response.requestId;
```

The [entire response object from the HTTP request](https://github.com/aws/aws-sdk-js/blob/d3d35a4c95af4612d535842fb059efeae6887cdd/lib/request.js#L790-L794) is available to you via the `$response` object. Also, the `$response` object is available across almost all API calls, not just `lambda.invoke().promise()`.

If you ever want to track down the results of a single invocation among many, consider logging the response ID.
SQL vs. NoSQL
Published: 2020-08-31 02:29:38

Hello, and welcome to my blog! In this post I'll first describe myself in a few words and then get to the real topic: SQL vs. NoSQL, and what makes them so different.

##Who Am I? 

Hi! My name is Justin Abreu, and I'm a Junior at Penn State majoring in Data Science. Ever since I was a child, I've always had an interest in technology, whether I was on my computer playing video games or taking apart old toys around the house to figure out how they work. Although I initially enrolled in Penn State with the intention of getting a Computer Engineering degree, taking an IST class made me realize that Data Science was more for me. I became fascinated by how Data Scientists are able to take data from all kinds of sources and find trends that may not have been found otherwise.

# **SQL vs. NoSQL**

Before we can talk about the differences between SQL and NoSQL, we first have to define what they even are. 

**SQL**, or Structured Query Language, is the standard language used to communicate with a database. 

**NoSQL**, on the other hand, communicates with a database in other means. 

###Differences

* There are relations between the data structures in SQL, while there aren't in NoSQL.


* Tables are used with SQL, while NoSQL supports a wide range of implementations, including tables, documents, and graphs.


* With SQL you typically begin by scaling vertically, while with NoSQL you scale horizontally. 


* SQL can be used while your patterns aren't defined, but your patterns must be defined while using NoSQL.


* SQL has concentrated storage (one node), while NoSQL uses hashing input spread between nodes. 

{% youtube FpFEzhfa_YA %}
I built a free forever feedback platform from scratch in Pandemic !
Tags: showdev, react, webdev, javascript
Published: 2020-08-31 02:23:21

---
title: I built a free forever feedback platform from scratch in Pandemic !
published: true
description: As part of learning Clojure and building a side project, I built Namelss, An anonymous feedback platform with realtime chat rooms !
tags: #showdev #reactjs #webdev #javascript
cover_image: https://mytrashcode.com/wp-content/uploads/2020/08/Pasted-into-I-built-a-feedback-platform-from-scratch-in-Pandemic-lock-down--1600x713.png
---

Hey there, sit back, relax, and enjoy the story about how [namelss](https://namelss.com/), an anonymous feedback platform was created all from scratch during the COVID pandemic.

Since my full-time job got converted to WFH setup, I was wondering what to with the extra time I am saving these days (ex: office commute time, no self-cooking time, etc). 

Also, I wanted to learn Clojure and wanted to create a well-structured production-ready app.

So I started looking for a project idea to work on. 

Just then I found one of my colleagues was struggling to find a tool wherein he can be the single host and invite other people to give feedback in real-time (sort of chatroom ) but all the participants can be anonymous or named based on their personal preferences.

Bang! This was a perfect idea and requirement intersection wherein I could have achieved all that I wanted (side project + Clojure based app).

Within no time I wrote an RFC/ADR doc around the concept.

As soon as I felt I have captured basic requirements from the project, I started work on it as well.

In just 2 months, working mostly on weekends and sometimes usual days, I could make it production-ready and here I am launching it today.

## [Product hunt page](https://www.producthunt.com/posts/namelss)
(Please upvote on product hunt if you like the project)

## About Namelss

    🙅 No login/auth required by host or participants
    🎭 Participants can be totally anonymous
    ✈️ Unlimited participants can join
    📥 The host can export feedbacks/chats as CSV
    🔒The host can lock room for entry when required participants have joined in.
    ⏳Realtime chatrooms and sessions

### Bonus :

    📱The app is a PWA so it can be installed on any device
    🔐 Conversations are E2E encrypted
    🕸️ Minimal UI
    📟 Open Source
    It helps with :
        People giving feedback can be totally anonymous
        The host can interact and introspect feedback with audience realtime
        No limit on the number of people that can join the same room at a time
        No context of the data being stored

More details in the [Github repo here](https://github.com/singhkshitij/nameless-ui)
What are the 4 key components required to create an effective software delivery team?
Published: 2020-08-31 01:34:19

What are the 4 key components required to create an effective software delivery team? Glad you asked:

1st it has to start with understanding "why" an organization needs to build software in the first place.

2nd you focus on building work streams that align with objectives.

3rd you create a - Learn -> Build -> Promote - loop to create iterative feedback

Finally - ensure product ownership , continuous improvement , and work agreements are in place.

https://7samurai.dev/2020/08/30/how-to-create-a-software-delivery-strategy/
Day 90 : #100DaysofCode - Finished Applied Accessibility on FreeCodeCamp
Tags: 100daysofcode
Published: 2020-08-31 01:24:18

Today I completed the Finished Applied Accessibility on FreeCodeCamp and read Eloquent Javascript Chapter 7. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/x4dc2tdbdhjzita98hbw.png)

{% youtube QOcywzMf9gI %}

I hope to be able to complete the Responsive Web Design Certification before the end of my #100DaysofCode.

Wish me luck! 🤞🏾

Sincerely, 
Brittany
Lab 1
Published: 2020-08-31 01:17:10

Hello everyone,

My name is Michael Trageser. I am a sophomore at Penn State majoring in Industrial Engineering.  I am from 25 minutes north of Pittsburgh. My hobbies include doing fun things outside like hiking, kayaking, and snowboarding. I also like to go to the gym and watch my Pittsburgh sports teams, although watching the Pirates this year has been brutal! My interests in technology stemmed from playing at first desktop computer games on my family's old “dinosaur” computer. This then morphed into console video games. Every fall I use data from fantasy football to help me draft my winning team. I like how something as simple as fantasy football can be broken down and improved through statistics and technology. I primarily use technology to help me complete tasks in life that would otherwise be unnecessarily difficult.  I choose to study engineering out of high school because I have always enjoyed being able to work on real world applications and I like the idea that when I have a job after college, my work will be bettering society as a whole. 

I would say that my experience in an IT environment is limited as this is my first IT class at Penn State. Much of my coursework is heavy on physics and various math courses.  This summer I was working as an intern for a machine health monitoring company based out of State College called KCF Technologies. My goal for this course is to gain some more exposure with different platforms within the vast world of tech. Hopefully I can take some things I will learn into my engineering courses as well as working in a technical setting later on. I would like to build myself as a well rounded engineer who can help solve a variety of problems.

My coding experience is quite limited (only one class back in early high school). I know that the future is online and being able to code would be a great asset for me to add to my tools I can use as an engineer to solve problems. My goal is not to become an IT professional because I know that is not where my strengths lie. I would rather use technical knowledge of technology to help me relate to others who are IT professionals. If I am able to “talk the talk” when conversing with those who are more technical than me, I know it would be a great advantage compared to being left in the dust. 

My interest in Industrial Engineering specifically deals with how the field focuses on optimizing processes and solving problems on a large scale. I enjoy looking at “big picture” issues and how in many industries, everything relates to each other. I hope to use my voice and communication skills to share my work and help a team accomplish great things. 

This blog will include weekly posts such as this on topics within technology. The blog will function as a way for me to share my work with the world while practicing using different platforms along the way! In this week's post I have included a video comparing SQL and NoSQL. I will discuss functionality and compare their applications. 

Enjoy and welcome to the blog!

{% youtube YkLSQjRZAOI %}
Beginning of My IT
Tags: sql
Published: 2020-08-31 01:07:53

#Who am I
My name is Yoon Ho Jung. I am a Junior at Penn State, currently majoring in Information Science. This is something I hope to continue after school, and maybe even make a career out of it. This post marks one of my first steps into the professional world. In the future, I plan to use this site to carve in my journey in the professional world. I hope you stick around as well. 

#My path of IT
I wouldn't call myself an IT professional at all as of how I am right now, but as an enthusiast of it. I've started getting into the My interests in technology were initially from video games and streaming then progressed through my in-class experiences throughout high school. During the summer break, I took a java programming class and learned that programming was something that I could do. I also studied R language before so I feel like I'm comfortable with programming-based path.
While I wouldn’t say that I have a specific path of what I want to do in terms of IT in the future, I know for sure that I want my career to be related to tech in whichever way like web development. 

#App development
If I were to pick an immediate field of interest, then it would be app development. Applications that can manage trivial tasks for people or keep them organized have great potential to provide a big return for a relatively small investment, and it's very satisfying to make things that are immediately useful like that, which is something that I would definitely like to try.

Alongside this blog, I will also be uploading videos onto my YouTube channel as I am learning of the skills in IT and sharing my progression from a student to a professional in this field. For my first video, I'll be talking about the differences between SQL and NoSQL.

#IST 210 Lab 1
As this blog is for a class, here is a linked Youtube video on the rest of the assignment. Apology in advance with the obnoxious voice quality in the video. I'm planning on getting a new speaker ASAP.

{% youtube -5QwIXYxMLw %}

###Short Summary of SQL vs NoSQL:
* What is it?
**SQL**: Structured Query Language lets you access and manipulate databases. Effective for inserting, searching, updating, and deleting database records.
**NoSQL**: have dynamic schemas for unstructured data, and data is stored in many ways; meaning that you can create documents without having to first define their structure and thus each document can have its own unique structure

* What is the difference?
**SQL**: deals with Relational Databases, databases are table based
**NoSQL**: data can be stored in many ways: column-oriented, document-oriented, graph-based, etc.

#Final notes
Thanks for reading my blog. For a first time, I hope it didn't seem too bad for u guys. I am still not completely comfortable with conveying my ideas through video, but as time passes and my experience grows, I aspire to improve these social skills. I welcome any feedback that may help me improve my skills and understandings for this course.
Intro to SQL and Myself
Tags: sql
Published: 2020-08-31 00:45:54

#*Hello and welcome*

This is my introductory letter to college, IST, and my 'brand'.

##**Who I Am**
At the time of writing this I am currently a freshman at Penn State University Park, majoring in Human Centered Design and Development (HCDD for efficiency) with a plan to minor in Graphic Design. In the world of tech I'm generally a novice; my experience is limited to basics in javascript, python, and introduction to computer science through high school classes.

###**My 'Brand'**
Note: this is all tentative and highly subject to change. Currently, however, my internet identity has been based around the idea of the Cheshire Cat from Lewis Carroll's novel *Alice in Wonderland* and the idea of curious cat. This is entirely because of the personality of the Cheshire Cat being a well-versed literary trickster who goes out seeking new people and knowledge, coinciding with the idea of curiosity and cats. I want to be someone who can use the resources around me to research and learn what I can when possible, bouncing around and disappearing to find new things.

With that in mind, I researched a little into SQL and NoSQl for my first college IST course- again note the little experience, but that's what four years at a college is for.

#**SQL v NoSQL**
**SQL**
"Structured Database Language" is the standard language for relational database management systems. Essentially, it allows you to create systems of information that can relate to one another that you can call for information from, or query, that interconnect. You can update your records, search, and delete data between the systems within SQL.
The boundaries of SQL are its limited schema or strict structure and its inability to scale horizontally when upping its server capabilities.
I recommend looking up MySQL for a specific example.

**NoSQL**
This is SQL's non-relational compatriot. Its systems for data storage don't interact the same way that SQL's do, instead storing all the information related to your query in one place. With less rigid and more flexibly structured data you can keep adding to what are called 'documents' as you need, but keep in mind that the data may exist within multiple documents depending on how your system is structured and you may need to update the data in multiple places unlike with SQL.
The query system is quicker, pulling from one location with the potential for larger stores of data than an SQL structure.
I recommend looking up MongoDB for a specific example.

Feel free to watch an extremely quick, surface level general gist video on the topic below.

[SQL v NoSQL (a very basic layman's intro)](https://www.youtube.com/watch?v=VNWguVQNN3c&t=168s)

Or feel free to watch someone far more certified truly explain the concept.

[SQL vs NoSQL or MySQL vs MongoDB](https://www.youtube.com/watch?v=ZS_kXvOeQ5Y)

No matter what, hope you learned and you can always stay curious about it all.
The fantastic ORM library for Golang - GORM V2 released!
Tags: go, opensource
Published: 2020-08-31 00:35:18

The fantastic ORM library for Golang aims to be developer friendly.

## Overview

* Full-Featured ORM
* Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism, Single-table inheritance)
* Hooks (Before/After Create/Save/Update/Delete/Find)
* Eager loading with `Preload`, `Joins`
* Transactions, Nested Transactions, Save Point, RollbackTo to Saved Point
* Context, Prepared Statment Mode, DryRun Mode
* Batch Insert, FindInBatches, Find/Create with Map, CRUD with SQL Expr and Context Valuer
* SQL Builder, Upsert, Locking, Optimizer/Index/Comment Hints, Named Argument, SubQuery
* Composite Primary Key, Indexes, Constraints
* Auto Migrations
* Logger
* Extendable, flexible plugin API: Database Resolver (Multiple Databases, Read/Write Splitting) / Prometheus...
* Every feature comes with tests
* Developer Friendly

Check out the GORM V2 release Note

https://gorm.io/docs/v2_release_note.html
DJANGO, having info show.... app.py, urls.py, admin.py, modules.py (settings.py?)
Tags: django, python, modules, help
Published: 2020-08-31 00:24:23

I have the Django default module made “product”, well,
What python files, In order....
Do you use to make another box of information? 

I have:

app.py
urls.py
Admin.py
Modules.py

So far my new class of a module “stuff” is “SHOWING”,
But when I click on it, there’s a error. It says it can’t find somename_stuff .... is the “somename” the App name? Or what are the steps in order to actually have it working?
World of WoqlCraft - Ep.22 WorldNet
Tags: python, nlp, database, tutorial
Published: 2020-08-31 00:09:56

---
title: World of WoqlCraft - Ep.22 WorldNet
published: true
description: Today we will be trying to insert WordNet into a schema-less graph. After that, we will have a look at what is in the schema-less graph and try to make sense out of it.
tags: python, nlp, database, tutorial
---
Today we will be trying to insert WordNet into a schema-less graph. After that, we will have a look at what is in the schema-less graph and try to make sense out of it.

Find the source code from our [tutorial repo](https://github.com/terminusdb/terminus-tutorials).

Join the TerminusDB community at [Discord](https://discord.gg/Gvdqw97)
Simple pluralise in JavaScript
Tags: javascript
Published: 2020-10-22 06:49:37

---
title: Simple pluralise in JavaScript
published: true
date: 2020-08-31 00:00:00 UTC
tags: javascript
canonical_url: http://blog.gnclmorais.com/simple-pluralise-in-javascript
---

While working with Vue.js on top of a Ruby on Rails stack, I found myselfreplicating on the front end a few of the helpful utilities we had access to inthe back end. One of them was **pluralise** , either [with](https://apidock.com/rails/ActionView/Helpers/TextHelper/pluralize) or [without](https://apidock.com/rails/String/pluralize)number.

After finding several components with similar [ternaries](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) trying to figureout if the singular or plural version of a word should be used, I saw a goodopportunity to extract that logic to its own piece and I ended up with this:

```js
const pluralize = (count, singular, { plural, number } = {}) => {
  const message = count === 1 ? singular : (plural || `${singular}s`);

  return number === false ? message : `${count} ${message}`;
};

// Uses:
pluralize(1, 'mouse') // 1 mouse
pluralize(2, 'house') // 2 houses
pluralize(2, 'house', { number: false }) // houses
pluralize(2, 'mouse', { plural: 'mice' }) // 10 mice
pluralize(2, 'mouse', { plural: 'mice', number: false }) // mice

```

In a nutshell, this is how it works:

- You always need to pass the number to be considered and the singular form,which will give you `<number> <bigger than 1 ? (singular + 's') : singular>`;
- If the plural is irregular (i.e. it’s not just the `singular` plus an `s`),you can provide it;
- If you just need the singular/plural without the number, you can say so.

Bonus points: if you’re a bit of a minimalist and enjoy saying some keystrokes,you could set up something like this:

```js
// plural with number
const pn = (n, s, plural) => pluralize(n, s, { plural });
// plural without number
const p = (n, s, plural) => pluralize(n, s, { plural, number: false });

```