Skip to content

Instantly share code, notes, and snippets.

View loraxx753's full-sized avatar

Kevin Baugh loraxx753

View GitHub Profile
Can you read all this for context from a previous conversation?
---
User
Each team's input is the output of the previous team plus the previous team's input. What kind of workflow is that called?
ChatGPT
This kind of workflow is referred to as a "pipeline" or "assembly line" model. In this model, each team or stage in the process takes the output from the previous stage, adds to or processes it further, and then passes it on to the next stage. This approach is
@loraxx753
loraxx753 / 1.md
Last active January 1, 2024 00:22

Proposed Agile/Scrum Adaptation

  1. Extended Initial Phase:

    • Purpose: Begin with a longer, more intensive phase focused on planning, design, and foundational work.
    • Activities: This phase includes deep planning, extensive design work, setting up the development environment, establishing architectural foundations, and creating high-level roadmaps.
    • Duration: Unlike typical Agile sprints, this initial phase is extended to allow thorough preparation and groundwork.
  2. Gradual Transition to Agile Iterations:

    • Shorter, Focused Iterations: After the initial phase, the project transitions into shorter iterations, each progressively reducing in duration compared to the previous one.
  • Adjustment of Sprint Lengths: Initially, these iterations may be longer than standard Agile sprints but gradually become shorter, aligning with typical sprint durations.

Conversation about natural programming language and analogizing microfrontends

You

Self-documenting strategies in React coding.


MicroDuckie

User

How does managing a micro front-end application with microservices through GraphQL differ from a monolithic application with REST APIs?

ChatGPT

Managing a micro front-end application with microservices through GraphQL differs significantly from a monolithic application with REST APIs in several key aspects:

Architecture

#!/usr/bin/env node
import { Command } from 'commander';
import { log, info, success, warning, pbcopy } from '../lib/utils.mjs';
import { Octokit } from 'octokit';
import { cloneRepository, createApplication } from '../lib/functions.mjs';
import { enterpriseServer36 } from '@octokit/plugin-enterprise-server';
import auth from '../auth.json' assert { type: 'json' };
import shell from 'shelljs';
import { createAction, createSlice, PayloadAction } from '@reduxjs/toolkit';
interface Entity {
id: string;
type: string;
}
interface EntityState<T extends Entity> {
entities: T[];
}
@loraxx753
loraxx753 / the-api.js
Created October 11, 2022 19:56
quick Web Component API
customElements.define('the-api', class extends HTMLElement {
static get observedAttributes() { return ['endpoint', 'base']; }
async updateData() {
const url = this.hasAttribute('base')
? new URL (this.getAttribute('endpoint'), this.getAttribute('base'))
: new URL(this.getAttribute('endpoint'))
this.response = await (await fetch(url)).json()
// If an array, pick a random item
if(Array.isArray(this?.response)) {
console.log('im here now')
@loraxx753
loraxx753 / fibonacci.js
Last active October 3, 2019 01:29
small Fibonacci sequence
const fibonacci = (n) => {
const a = Array(n).fill(0)
return a.map((_, i) => a[i] = (i < 2) ? 1 : a[i-1] + a[i-2])
}
/** This would work if the third parameter of map was a pointer to the array and not a copy :( **/
// const fibonacci = (n) => Array(n).fill(0).map((_, i, a) => a[i] = (i < 2) ? 1 : a[i-1] + a[i-2])
@loraxx753
loraxx753 / wiki-scrap.js
Created April 17, 2019 16:40
Scrapes the information from the info box on wikipedia pages
// Works on https://en.wikipedia.org/wiki/Electron.
(function() {
console.clear()
const response = {}
const values = [ ...document.querySelectorAll('.infobox td') ].slice(1).map(el => el.innerText)
;[ ...document.querySelectorAll('.infobox th') ].map(el => el.innerText.replace(/ /g, '')).map(keyText => {
response[keyText] = values.shift()
})