Prompt: Make this code not suck:
using System.Collections.Generic;
namespace GildedRoseKata;
public class GildedRose
{
IList<Item> Items;
public GildedRose(IList<Item> Items)
{
Prompt: Make this code not suck:
using System.Collections.Generic;
namespace GildedRoseKata;
public class GildedRose
{
IList<Item> Items;
public GildedRose(IList<Item> Items)
{
winget install Notepad++.Notepad++ | |
winget install 7zip.7zip | |
winget install dotPDN.PaintDotNet | |
winget install Microsoft.DotNet.SDK.3_1 | |
winget install Microsoft.DotNet.SDK.5 | |
winget install Microsoft.DotNet.SDK.6 | |
winget install Microsoft.DotNet.SDK.7 | |
winget install Microsoft.DotNet.SDK.8 | |
winget install Microsoft.DotNet.SDK.Preview |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Home</title> | |
<script type="module"> | |
function someClick() { | |
alert("hello"); |
import { Container, Inject } from "./Container"; | |
describe("Container", () => { | |
it("should be able to get a class", () => { | |
const container = new Container(); | |
container.register(TestClass); | |
const result = container.get<TestClass>(TestClass); | |
A Better Foundation | |
There's been a lot of noise around the foundation, and its goodness or badness - and what I see is a bunch of people trying to work hard with invisible-to-the-outside constraints that don't always work out. There's a tension between commercial considerations (providing assurance to consumers) and community considerations (freedom of project owners over their own work). | |
But enough negative. | |
How could we do better? | |
What would I do? | |
What's the kindest thing with the most transparent support? |
Hey I'm David Whitney, I'm from London and I'm an alc... ha, wait wrong meeting! I jest I jest.
So thrilled to be having this conversations.
I'm David and I'm an independent software consultant from London in the UK. In previous all very serious and corporate lives, I've held job titles like "Chief Technical Architect", "Lead Principal Engineer" and "Head of Engineering" at a bunch of market leading orgs around the UK - household names like JustGiving, trainline, JustEat, Gfk, etcetera etcetera.
import { DiamondMaker } from "."; | |
describe("DiamondMaker makes diamond", () => { | |
let sut: DiamondMaker; | |
beforeEach(() => { | |
sut = new DiamondMaker(); | |
}); | |
it("given A, returns only A", () => { |
This software uses code of FFmpeg <http://ffmpeg.org> licensed under | |
the LGPLv2.1 <http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html> | |
and its source can be downloaded here <https://ffmpeg.org/download.html>. | |
============================================================================== | |
Copyright 2001-2011 Xiph.Org, Skype Limited, Octasic, | |
Jean-Marc Valin, Timothy B. Terriberry, | |
CSIRO, Gregory Maxwell, Mark Borgerding, | |
Erik de Castro Lopo |
export class DrawableCanvasElement { | |
constructor(canvasElementId) { | |
this.canvasElementId = canvasElementId; | |
this.paintCanvas = document.getElementById(canvasElementId); | |
this.paintContext = this.paintCanvas.getContext("2d"); | |
this.activeColour = "black"; | |
this.dragging = false; | |
this.cursorPoint = { x: 0, y: 0 }; |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using SixLabors.ImageSharp; | |
using SixLabors.ImageSharp.PixelFormats; | |
namespace RayCastTalkDemo | |
{ | |
class Program | |
{ |