Skip to content

Instantly share code, notes, and snippets.

This is a proposal for a theoretical undergraduate Software Engineering degree track(referenced classes are SUNY Binghamton Classes). It has not had a large amount of thought put into it, it is nothing formal and will have mistakes, be badly organized and potentially have fundamental flaws.

This proposal ignores gen-eds because I don't think they do anything useful, the idea of making people more well rounded is respectable but gen-eds fail at that. I'm not going to add so many classes that gen-eds aren't possible in this proposal but I do think that it would be preferable to do so.

This proposal will focus on a theoretical software engineering degree which has been split off of Computer Science, if implemented CS would also need to be reworked to focus on theory but I'm ignoring that here.

Freshman year

@Pagwin-Fedora
Pagwin-Fedora / sub_shell_modelling.hs
Created November 11, 2023 06:16
electron subshell program
-- First Int is the Layer, second is the Fill of that layer
data SubShell = S Integer Integer | P Integer Integer | D Integer Integer | F Integer Integer deriving (Show, Eq)
instance Ord SubShell where
S l1 _ <= P l2 _ | l1==l2 = True
S l1 _ <= D l2 _ | l1==l2 = True
S l1 _ <= F l2 _ | l1==l2 = True
P l1 _ <= D l2 _ | l1==l2 = True
P l1 _ <= F l2 _ | l1==l2 = True
@Pagwin-Fedora
Pagwin-Fedora / try_collect.rs
Created December 25, 2022 00:40
making a somewhat useful rust trait which allows for attempting to collect into a container and implementing it for [const len:usize; T]
trait UnreliableFromIter<T>:Sized{
type Error;
fn try_from_iter<I:IntoIterator<Item = T>>(iter:I)->Result<Self,Self::Error> where Self:Sized;
}
enum ArrayFromIterErr<const len:usize, T,I:Iterator<Item = T>>{InsufficientItemCount,
TooManyItems{
gathered:[T;len],
extra: T,
rem: I
@Pagwin-Fedora
Pagwin-Fedora / st_petersburg_lottery_sim.py
Created April 24, 2022 23:08
a simple python file to simulate a St. Petersburg lottery
import math
import random
#number of games you want to simulate
SAMPLE_SIZE = 10000000
x = [2**-math.floor(math.log2(random.random())) for i in range(SAMPLE_SIZE)]
#output the average reward across the games
print(sum(x)/len(x))