Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

I bundled these up into groups and wrote some thoughts about why I ask them!

If these helped you, I'd love to hear about it!! I'm on twitter @vcarl_ or send me an email [email protected]

Onboarding and the workplace

https://blog.vcarl.com/interview-questions-onboarding-workplace/

  • How long will it take to deploy my first change? To become productive? To understand the codebase?
  • What kind of equipment will I be provided? Will the company pay/reimburse me if I want something specific?

Conventional Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@Had3r
Had3r / settings.json
Created March 29, 2022 17:55
vs code settings
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.detectIndentation": true,
"editor.fontFamily": "'Dank Mono', Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": false,
"editor.rulers": [80],
"workbench.colorCustomizations": {
"editorRuler.foreground": "#525252"
},
@Had3r
Had3r / gist:d0eadcd94c8d1759c1ac544f3d61483e
Created September 2, 2021 12:18
change all crlf to lf - VS Code
git config core.autocrlf false
git rm --cached -r .
git reset --hard
@Had3r
Had3r / schema.js
Last active August 18, 2021 12:30
GraphQL Schemas Example (with Express GraphQL Server)
const graphql = require("graphql");
const _ = require("lodash");
const {
GraphQLObjectType, // this instructs GraphQL about the appearance of the users in the application
GraphQLString,
GraphQLInt,
GraphQLSchema, // takes Root Query and returns graphQL schema instance
} = graphql;
const users = [
@Had3r
Had3r / tsconfig.json
Last active May 18, 2021 18:36
tsconfig file
{
/* How the compiler works: */
"compilerOptions": {
"target": "es5", /* Controls target JS version to which the code will be transformed. */
"lib": ["dom", "dom.iterable", "esnext"], /* Default TypeScript libraries that influences which kind of types are known out of the box by TS code. */
"allowJs": true, /* controls that we could also include plain .js files */
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true, /* true means the strictest possible settings. For example, that influences that we can't have implicitly any values. */
@Had3r
Had3r / Products.js
Created May 15, 2021 12:26
Example of non-redux alternative to frequent changes with Context API
// Finally we can use store
import { useStore } from "../hooks-store/store";
const Products = (props) => {
// We don't need disptach in this case, so we are axtracting only first element from custom hook.
const state = useStore()[0];
// In case of needed only dispatch it will be:
// const disptach = useStore()[1];
@Had3r
Had3r / redux-demo.js
Last active May 15, 2021 12:27
Redux Building Blocks
const redux = require('redux');
const createStore = redux.createStore; // allows to create new redux store
const initialState = {
counter: 0,
}
// Reducer
const rootReducer = (state = initialState, action) => { // This function receive current (old) state and the action.
if (action.type === 'INC_COUNTER') {