- Aug 2024
-
www.baldurbjarnason.com www.baldurbjarnason.com
-
www.itflashcards.com www.itflashcards.com
-
JavaScript Flashcards
App with javascript interview questions
Tags
Annotators
URL
-
- Jul 2024
-
holzer.online holzer.online
-
how do I get to this number between 0 and 1? Well, by simply reading on in the spec. There is some some pseudo code, which is easily translatable to Javascript (which I'm doing here in form of a literate program
-
-
www.boddie.org.uk www.boddie.org.uk
-
We decided that we would like to see better documented code included within web pages for convenient browsing. The motivation behind this peculiar aim is to be able to include high quality documentation alongside working code, hopefully making it easier for programmers to produce more maintainable, readable programs.
-
-
pythononline.net pythononline.net
-
Say goodbye to the headaches of setting up Python locally. No more installations or configurations, you can execute Python code right in your web browser. Just input your code, hit RUN, and watch the magic happen! Compile, run, and share Python code online with our powerful integrated Python development environment (IDE). Want to show off your work? Use the SHARE option to make your code accessible to anyone, anywhere.
One of the best python compilers if you're a new dev and dont want to install Python locally.
Tags
Annotators
URL
-
- Jun 2024
-
maggieappleton.com maggieappleton.com
-
This approach of interleaving documentation and source code is called literate programming and was first proposed by Donald Knuth in 1984. He argued that all code should be written in these linear, readable documents. See Chris Granger's Eve project for a beautiful example of mixing prose and code.
See also Raskin on: * The Woes of IDEs * Comments are more important than code
-
-
shrewdies.com shrewdies.com
-
Tutorial Hell
What Is Tutorial Hell - Related Pages
- Learning is a Never-Ending Process - <q>Continuous learning helps your growth, problem-solving, confidence. Securing your future in a changing world. See why learning is a never-ending process.</q>
- Tutorial Hell (Programming) - <q>In Tutorial Hell (Programming), learners get too dependent on tutorials. For programs, graphics, and related skills. Learn to beat Programmer's Tutorial Hell.</q>
- Getting started with Hive app development - <q>… I don't recommend spending too much time doing tutorials as you will end up in tutorial hell where you just do tutorials but have no idea …</q>
- Taking The Wheel - <q>… tutorial hell by opting to watch a full tutorial or reading the entire blog post. I've found that after I've done so, I feel sad with the knowledge that I …</q>
- Learning web2 for web3 - <q>Simply because I was trapped in a tutorial hell, I don't think I have ever been so confused. I did all these for one year without developing something …</q>
-
Tutorial Hell
"Tutorial Hell" is where individuals complete numerous tutorials without actually making meaningful progress. The key to escaping Tutorial Hell is to stop doing more tutorials and start building actual projects to solidify learning.
-
Tutorial Hell
- Who: The author (Coding Defined), professional developers, junior developers.
- What: Facing Tutorial Hell - spending time watching tutorials without making meaningful progress.
- Why: To discuss the negative impact of constantly watching tutorials without implementing what is learned.
-
How: The author discusses two concepts of Tutorial Hell
-
How it impacts learning
- Why junior developers often fall into this trap
Then, he provides tips on how to escape Tutorial Hell by:
- Focusing on building actual projects
- Implementing what is learned from tutorials.
The author also shares personal experiences and examples to illustrate his points.
-
-
shrewdies.com shrewdies.com
-
Tutorial Hell
Tutorial Hell (Programming) - Related Pages
Learning is a Never-Ending Process - <q>Continuous learning helps your growth, problem-solving, confidence. Securing your future in a changing world. See why learning is a never-ending process.</q> What is Tutorial Hell? - <q>Are you asking "What is Tutorial Hell?" It is doing many tutorials without any meaningful progress. Escape Tutorial Hell and start building actual projects now.</q> Getting started with Hive app development - <q>… I don't recommend spending too much time doing tutorials as you will end up in tutorial hell where you just do tutorials but have no idea …</q> Taking The Wheel - <q>… tutorial hell by opting to watch a full tutorial or reading the entire blog post. I've found that after I've done so, I feel sad with the knowledge that I …</q> Learning web2 for web3 - <q>Simply because I was trapped in a tutorial hell, I don't think I have ever been so confused. I did all these for one year without developing something …</q>
-
Tutorial Hell
- Who: The author (the100) and learners in various fields such as programming, graphics designing, video editing, learning a new language, and cooking.
- What: Discussing the concept of "tutorial hell" where learners become dependent on tutorials and struggle to apply their knowledge creatively.
- Where: Online courses and tutorials found on platforms like YouTube, Udemy, and other websites.
- Why: To caution learners against becoming too reliant on tutorials and encourage them to practice and apply their knowledge independently.
- How: By emphasizing the importance of practicing, building projects, making mistakes, exploring documentation, asking for help, and using problem-solving skills to truly learn and improve in a skill. The author shares their personal experience of falling into tutorial hell and finding success through practical application and problem-solving. The advice given is to follow a tutorial thoroughly before starting to create projects independently.
-
Tutorial Hell
The post discusses the concept of "tutorial hell". Where learners become overly dependent on tutorials. Without applying their knowledge creatively. Using examples from programming, graphic design, and other skills. The author emphasizes the importance of practicing, making mistakes, and exploring on your own to truly learn and improve.
-
-
news.ycombinator.com news.ycombinator.com
-
The ratio of time spent on precedence parsing in compilers to utility feels very low
Tags
Annotators
URL
-
-
www.subtext-lang.org www.subtext-lang.org
-
Subtext is an ongoing experiment in radically simplified programming. It is radical in that I am willing to throw away everything we know about programming and start from scratch
Programming , the very idea considered harmful. Can software be liberated from programming per se.
https://cryptpad.fr/pad/#/3/pad/view/4ed3203237745f09bf6699a7e71750fe/
-
- Apr 2024
-
-
Testrpc
TestRPC Related Pages
- Ganache CLI Install - <q>testRPC/ganache-cli testRPC/ganache-cli is a node.js Ethereum client for testing and development of the Smart… by technological.</q>
- Ethereum TestRPC and Tester Client - <q>This provider automatically spins up the eth-testrpc server for you so that you can test your web3.py code against an in memory EVM. This provides lightning …</q>
- Ethereum TestRPC vs. Geth - <q>Ethereum TestRPC vs. Geth explains that TestRPC is a client for testing and developing. While Geth is a full GO language client for connecting to the blockchain.</q>
- TestRPC & Ethereum Smart Contracts - <q>… testrpc. For truffle test, testrpc or geth is required to be run explicitly. Else, you get the following error: $ truffle test Could not connect to your …</q>
-
-
shrewdies.com shrewdies.com
-
shrink-wrap on blender
Blender Shrinkwrap Modifier Related Pages
Here are some examples of pages about the Shrinkwrap modifier for Blender:
- Get Good at Blender - <q>It's a tough one to make. So I go through the best practice with edge flow and pole placement. We also work with the shrinkwrap modifier. As a quick note, those …</q>
- Blender Shrinkwrap Model - <q>… Blender Shrinkwrap Model Purpose. @buttonm wants to showcase their artwork. And share their creative process by modeling a concept car for …</q>
- Blender Shrinkwrap & Mesh Deformer Modifiers - <q>For tighter clothes such as the croptop and the forgotten arm socks, shrinkwrap … Blender (I'll work that out when I start a …) #blender · #3d · #creativecoin.</q>
- ProgBlog #1 - <q>… Currently, 1 is Krita, 2 is keys I use excessively in Blender … Blender only when sculpting and/or animating … shrinkwrap" (I'm not sure why it …</q>
- June ProgBlog - <q>And fixed up anything that had gone slightly awry from the shrinkwrap which had mostly done its job at least. … Blender doesn't decide to lag massively (I'm not …</q>
-
-
-
Installing testRPC/ganache-cli
Ganache CLI Install Related Pages
- dApp game with Solidity, Truffle, Ganache - <q>So we do a quick few install commands: Compiling & Testing a Smart-Contract. It's really … $ npm install -g ganache-cli (if you don't have installed ganache yet …</q>
- Ganache CLI Smart Contracts - <q>… ganache-cli (to generate fake accounts) Using npm: npm install -g ganache-cli Using yarn: yarn global add ganache-cli 3- Then b…</q>
- Ganache CLI Ethereum - <q>… Truffle Ganache. https://github.com/trufflesuite/ganache-cli. dApps- Decentralized Apps. I just thought about this, in the World of Bitcoin and …</q>
- Ganache CLI Blockchain App - <q>npm install — save ganache-cli mocha fs-extra web3@1.0.0-beta.35 npm install — save solc@0.4.25 npm install — save next@4.1.4 react react-dom. Next.js. If you …</q>
-
-
www.mensurdurakovic.com www.mensurdurakovic.com
-
You can think of it as the following cycle:software engineer writes codeusers get new featuresmore users use your productscompany profits from productsSo code is just a tool to get profit.
The core software development process
-
2) You will rarely get greenfield projects
:)
-
-
lucasoshiro.github.io lucasoshiro.github.io
-
However, as we want to do perform the bisection automatically using as criterion ./calc.py 14 0, we run git bisect run ./calc.py 14 0
git bisect run ./calc.py 14 0 ← example of running git bisect automatically. * If the commit is good, then the command should return 0; * If the commit is bad, then the command should return anything between 1 and 127, inclusive, except 125; * If it is not possible to tell if this commit is good or bad, then it need to be ignored, and the command should return 125.
-
Git Bisect! It allows us to find the commit that broke something. Given a “good” commit (a commit that is not broken, created before the introduction of the bug), and a “bad” commit (a commit that certainly is broken), Git will perform a binary search until the broken commit is found.
Git Bisect can be run manually or automatically
-
What are the tools that comes on your mind when someone say “debug”? Let me guess: a memory leak detector (e.g. Valgrind); a profiler (e.g. GNU gprof); a function that stops your program and gives you a REPL (e.g. Python’s breakpoint and Ruby’s byebug); something that we call a “debugger” (like GDB, or something similar embedded on the IDEs); or even our old friend, the print function. So, in this text I’ll try to convince you to add Git to your debug toolbelt.
6 differen debugging tools
-
-
austinhenley.com austinhenley.com
-
Additionally, students in the Codex group were more eager and excited to continue learning about programming, and felt much less stressed and discouraged during the training.
Programming with LLM = less stress
-
On code-authoring tasks, students in the Codex group had a significantly higher correctness score (80%) than the Baseline (44%), and overall finished the tasks significantly faster. However, on the code-modifying tasks, both groups performed similarly in terms of correctness, with the Codex group performing slightly better (66%) than the Baseline (58%).
In a study, students who learned to code with AI made more progress during training sessions, had significantly higher correctness scores, and retained more of what they learned compared to students who didn't learn with AI.
Tags
Annotators
URL
-
- Mar 2024
-
archive.org archive.org
-
https://archive.org/details/run-de-1986-10/page/120/mode/2up
"RUN – Unabhängiges Commodore Computermagazin", Ausgabe 10/Oktober 1986, which has a hexdump code listing of a C64 Zettelkasten
ᔥ[Michael Gisiger[]] in mastodon: (@gisiger@nerdculture.de)
Lust auf #Retrocomputing und #PKM mit einem #Zettelkasten? Bitte schön, in der Oktober-Ausgabe 1986 des #Commodore Magazins RUN findet sich ein Listing für den #C64 dazu. Viel Spass beim Abtippen 😅
https://archive.org/details/run-de-1986-10/page/120/mode/2up
See additional conversation at: https://www.reddit.com/r/c64/comments/1bg0ja1/does_anyone_have_the_zettelkasten_program_from/?utm_source=share&utm_medium=web2x&context=3
-
-
www.reddit.com www.reddit.com
-
Try the TOSEC archive for C64. You will also find that in the archive. I think they have a lot of those type-ins as .prg files so you can mount them in VICE and run them.
-
-
www.infoworld.com www.infoworld.com
-
social dynamics in tech jobs punish people who say things like, “Uh, this is too complicated to me.”
-
-
haxe.org haxe.org
-
- Feb 2024
-
stackoverflow.com stackoverflow.com
-
Do not pass arguments right into subshell, it's as unsafe as eval.
-
-
shrewdies.com shrewdies.com
-
Python 3
The post discusses the confusion and challenges faced while learning to code in Python 3. Specifically related to functions and parameters. With a focus on solving tasks and understanding the distinctions between variables and parameters.
-
Python 3
- Who: The author of the post, Anmitsu.
- What: Anmitsu's diary entry about learning to code in Python 3, specifically discussing confusions and problem-solving related to functions and parameters in the course material.
- Why: Anmitsu is sharing their experiences and seeking advice and suggestions from others.
- When: The post was made after Anmitsu encountered and solved some issues related to functions and parameters in Python 3.
- How: Anmitsu discusses two specific tasks related to defining and calling functions, sharing their process of confusion, attempts at solving the problems, and the final solution they arrived at. They also mention seeking help from Code Academy for clarification.
-
- Jan 2024
-
shrewdies.com shrewdies.com
-
My First dApp
The post discusses the author's experience and process of building their first dApp, a blockchain-based version of the game Battleship, using Ethereum, Solidity, and smart contracts.
-
My First dApp
- Who: The author, Tom
- What: The author's experience building his first dApp, a game called Battleship, using Ethereum, solidity, and smart contracts.
- Where: The author built the dApp using Truffle and deployed it on the Kovan testnet.
- Why: The author wanted to learn how to make his own smart contracts and build dApps.
- When: The author started the project a few months ago and wrote the post on PeakD.com to share his experience and help others.
- How: The author:
- Used Truffle as a framework for building dApps,
- Ran a localhost node for testing using TestRPC,
- Injected Web3 using the Metamask Chrome extension,
- Used the Remix online editor for quick compilation and bug finding,
- And wrote JavaScript tests using Truffle's testing framework. The author also built the UI using Angular 1 and played the game using Chrome and Metamask.
-
-
shrewdies.com shrewdies.com
-
Ethereum TestRPC vs Geth
This post compares TestRPC and Geth, explaining that TestRPC is a client for testing and development, while Geth is a full client for connecting to the real Ethereum chain or starting a testnet server. It also mentions that successful tests in TestRPC can be transferred to Geth.
-
Ethereum TestRPC vs Geth
- What: The post explains that TestRPC is a Node.js based Ethereum client used for testing and development, while Geth is a full client in GO Language used to connect to the real chain or start a testnet server.
- Where: The platforms mentioned in the post, TestRPC and Geth, are used in the Ethereum ecosystem.
- Why: The purpose of the post is to compare the functionalities and uses of TestRPC and Geth.
- When: The post does not provide specific information about the timing or date of the comparison.
- How: The post explains that some successful tests conducted in TestRPC can be transferred to Geth.
-
-
www.theodinproject.com www.theodinproject.com
-
You should take care, however, to make sure that your individual objects can stand alone as much as possible. Tightly coupled objects are objects that rely so heavily on each other that removing or changing one will mean that you have to completely change another one - a real bummer.
Isn't there a conflict between this principle and code reusability?
-
-
journal.stuffwithstuff.com journal.stuffwithstuff.com
-
You can do this with recursive descent, but it’s a chore.
Jonathan Blow recently revisited this topic with Casey Muratori. (They last talked about this 3 years ago.)
What's a little absurd is that (a) the original discussion is something like 3–6 hours long and doesn't use recursive descent—instead they descended into some madness about trying to work out from first principles how to special-case operator precedence—and (b) they start out in this video poo-pooing people who speak about "recursive descent", saying that it's just a really obnoxious way to say writing ordinary code—again, all this after they three years ago went out of their way to not "just" write "normal" code—and (c) they do this while launching into yet another 3+ hour discussion about how to do it right—in a better, less confusing way this time, with Jon explaining that he spent "6 or 7 hours" working through this "like 5 days ago". Another really perverse thing is that when he talks about Bob's other post (Parsing Expressions) that ended up in the Crafting Interpreters book, he calls it stupid because it's doing "a lot" for something so simple. Again: this is to justify spending 12 hours to work out the vagaries of precedence levels and reviewing a bunch of papers instead of just spending, I dunno, 5 or 10 minutes or so doing it with recursive descent (the cost of which mostly comes down to just typing it in).
So which one is the real chore? Doing it the straightforward, fast way, or going off and attending to one's unrestrained impulse that you for some reason need to special-case arithmetic expressions (and a handful of other types of operations) like someone is going to throw you off a building if you don't treat them differently from all your other ("normal") code?
Major blind spots all over.
-
-
lobste.rs lobste.rs
-
Experts without accountability start acting in their own interests rather than that of their customers/users. And we don’t know how to hold programmers accountable without understanding the code they write.
-
- Dec 2023
-
Local file Local file
-
Their ideas of possible action vary fromimportant-looking signed pronounce-ments and protests to the withholding ofservices and the refusal to assist in techni-cal developments that may be misap-plied.
Not too dissimilar from programmers who add licensing to their work now to prevent it from being misused.
-
-
www.theodinproject.com www.theodinproject.com
-
Solution: Instead of taking notes to use as direct references, make notes that can serve as prompts for further research. It is important to get comfortable with reading documentation, which essentially acts as pre-existing notes made by someone else.
It is also a good idea to create a developer journal with your different questions, insights, and reasonings that you bump into during your journey. It will also serve you in your career.
-
-
blog.codinghorror.com blog.codinghorror.com
-
Let us change our traditional attitude to the construction of programs: Instead of imagining that our main task is to instruct a computer what to do, let us concentrate rather on explaining to human beings what we want a computer to do.
In reality, It is a mix between these two attitudes. Programming is being good at telling the computer what to do, in the most efficient way. This whole process requires a good amount of knowledge, design, and thinking. But coding, just the part where you're writing code, should be focused on readability because humans are the ones that interact with the text, not computers.
-
-
stackoverflow.com stackoverflow.com
-
One language that is currently being developed, Rascal, takes a hybrid approach allowing dynamic typing within functions but enforcing static typing for the function signature.
first sighting: Rascal
-
- Nov 2023
-
media.dltj.org media.dltj.org
-
One of the ways that, that chat G BT is very powerful is that uh if you're sufficiently educated about computers and you want to make a computer program and you can instruct uh chat G BT in what you want with enough specificity, it can write the code for you. It doesn't mean that every coder is going to be replaced by Chad GP T, but it means that a competent coder uh with an imagination can accomplish a lot more than she used to be able to, uh maybe she could do the work of five coders. Um So there's a dynamic where people who can master the technology can get a lot more done.
ChatGPT augments, not replaces
You have to know what you want to do before you can provide the prompt for the code generation.
-
-
-
The key and only feature that makes JavaScript object-oriented is the humble and error-prone this
-
-
schema.org schema.org
Tags
Annotators
URL
-
-
schema.org schema.org
Tags
Annotators
URL
-
- Oct 2023
-
triplescripts.org triplescripts.org
-
What about a literate programming compiler that takes as input this page (as either Markdown or HTML) and then compiles it into the final program?
Tags
Annotators
URL
-
-
tantek.com tantek.com
-
the thought of a richly self-documenting script
Tags
Annotators
URL
-
-
jakelazaroff.com jakelazaroff.com
-
as much as I love TypeScript, it’s not a native substrate of the web
-
although they happened to be built with HTML, CSS and JS, these examples were content, not code. In other words, they’d be handled more or less the same as any image or video I would include in my blog posts. They should be portable to any place in which I can render HTML.
-
-
dl.acm.org dl.acm.org
-
onlinelibrary.wiley.com onlinelibrary.wiley.com
-
(Weight W1) (Rope Rp) (Rope Rq) (Pulley Pa) (hangs W1 from Rp) (pulley-system Rp Pa Rq) (Weight W2) (hangs W2 from Rq) (Rope Rx) (Pulley Pb) (Rope Ry) (Pulley Pc) (Rope Rz) (Rope Rt) (Rope Rs) (Ceiling c) (hangs Pa from Rx) (pulley-system Rx Pb Ry) (pulley-system Ry Pc Rz) (hangs Pb from Rt) (hangs Rt from c) (hangs Rx from c) (hangs Rs from Pc) (hangs W2 from Rs) (value W1 1) (b) P1. P2. P3. P4. .. Single-string support. (weight < Wx>) (rope <Ry >) (value <Wx> <n>) (hangs <Wx> <Ry>) -(hangs <Wx> <Rx>) - (value <Ry> <W-number>) Ropes over pulley. (pulley <P>) (rope <R1>) (rope <R2>) (pulley-system <R1 > <P> <R2>) (value <R1> <nl>) - (value <R2> <nl>) Rope hangs from or supports pulley. (pulley <R1>) (rope <R1>) (rope R2>) (pulley-system <R1> <P> <R2>) { (hangs <R3> from <P>) or (hangs <P> from <R3>) } (value <R1> <nl>) (value <R2> <n2>) - (value <R3> <nl + <n2>) Weight and multiple supporting ropes. (weight <W1 >) (rope <R1 >) (rope R2>) (hangs <W1> <Rl>) (hangs <W1> <R2>) -(hangs <W1> <R3>) (value <R1> <nl>) (value <R2> <n2>) - (value <W1> <nl> + <n2>) P2. Ropes over pulley. If a pulley system < P> has two ropes < RI > and < R2> over it, and the value (tension) associated with < RZ > is < nl > , then < nl > is also the value associated with rope < RZ > . P3. Rope hangs from or supports pulley. If there is a pulley system with ropes < RZ > and < R2> over it, and the pulley system hangs from a rope < R3 > , and c R1> and < R2 > have the values (tensions) < nl > and < n2 > associated with them, then the value (tension) associated with < R3 > is the sum of < nl > plus <n2>.
Please explain to me how it is not evident to programmers that this is how we program.. we cannot hold more than seven items at a time. We cannot fracture. As Miller mentioned, 2 3 digit numbers are outside t capacity, but if you multiply them by paper w, if we free your memory, we can let the brain focus on the v
If you assign the memory function to a diagram, you can let your brain concentrate on the manipulation function.
Once we codify, we no longer have to keep the information in memory, for example : This hurts my brain
There are five roads in Brown County. One runs from Abbeville to Brownsville by way of Clinton. One runs from Clinton to Derbyshire by way of Fremont. One runs from Fremont to Brownsville by way of Abbieville. That's all the roads in Brown County, and all the roads in and out of those towns.
Which towns have roads connecting them directly to three other towns? Which towns have roads connecting them directly to only two other towns? How many towns must you pass through to get from Brownsville to Derbyshire?
But if we diagram it to a map, all of this makes sense.
"The learning of numbers and language must be subordinated ... Visual understanding is the essential and only valid means of teaching how to judge things correctly." ~ Johann Heinrich Pestalozzi
Pestalozzi was the guy who designed the educational system in which Einstein, the most extraordinary visualization of his time, was born q
-
-
www.strategicstructures.com www.strategicstructures.com
-
bserved, for example, in the evolution of programming languages
A 2015 paper See zotero://select/library/items/AMCSEP75
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
When a language presumes to know more than its user, that's when there's trouble.
-
Just because a language has a feature that might be dangerous doesn't mean it's inherently a bad thing. When a language presumes to know more than its user, that's when there's trouble.
-
I'd argue that when you find a programming language devoid of danger, you've found one that's not very useful.
-
The reason eval is there is because when you need it, when you really need it, there are no substitutes. There's only so much you can do with creative method dispatching, after all, and at some point you need to execute arbitrary code.
-
-
- Sep 2023
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
I think "purely functional, not a single re-assigned variable" often introduces significant extra complexity, when Ruby is a language that embraces both functional and imperative programming.
-
One of my favorite aspects of Ruby is how easy it is to write in a functional programming style, and including the scan operation would expand the number of use cases covered by functional methods.
-
-
stackoverflow.com stackoverflow.com
-
You just blew my mind Marc-André. My code just went from idiotic to idiomatic.
-
-
en.wikipedia.org en.wikipedia.org
-
en.wikipedia.org en.wikipedia.org
-
An object in object-oriented language is essentially a record that contains procedures specialized to handle that record; and object types are an elaboration of record types. Indeed, in most object-oriented languages, records are just special cases of objects, and are known as plain old data structures (PODSs), to contrast with objects that use OO features.
-
-
shalabh.com shalabh.com
- Aug 2023
-
stackoverflow.com stackoverflow.com
-
```js function createPromiseWithData() { let resolveFn;
const promise = new Promise((resolve, reject) => { resolveFn = resolve; });
return { promise, resolveFn }; }
// Usage const { promise, resolveFn } = createPromiseWithData();
// Later, when you have the data you want to pass const data = 'Future data';
// Resolve the promise with the data resolveFn(data);
// Use the promise promise.then((result) => { console.log('Promise resolved with:', result); }); ```
-
-
-
category theory + zettelkasten... hmmm... feels a bit like Leibniz chasing a universal language
what is a zettelkasten monad?
-
- Jul 2023
-
-
-
Local file Local file
-
Colaroid’s unique ap-proach to literate programming is to bring together the rich textediting affordances of notebooks together with automated creationof contextualized code snippets showing code differences, and closeintegration of the literate document into an IDE where code can betinkered with.
This misses the point of LP—the true "fundamental theorem of LP" is basically that the compiler should be made to accept the preferred form.
-
-
shalabh.com shalabh.com
-
REPLs are nice but they work well only for reasonably isolated code with few dependencies. It's hard to set up a complex object to pass into a function. It's harder still to set up an elaborate context of dependencies around that function.
I wonder how much of this is accomplishable by automatically parameterizing code by the types that aren't used internally so they implementation can forget about the specifics. In addition some sort of meta-programming capability to automatically generate arbitrary instances or a richer form of trace types for user types would go a long way to simplifying the trace generation.
-
-
thunderseethe.dev thunderseethe.dev
-
thechipletter.substack.com thechipletter.substack.com
- Jun 2023
-
www.soulcutter.com www.soulcutter.com
-
under the name “conversion functions.” These exist in Ruby’s standard library - for example Array() is one that you’re likely to see in real code.
-
-
www.indeed.com www.indeed.com
-
Five core layers: 1. Presentation Layer 2. Application Layer 3. Domain Layer 4. Persistence Layer 5. Database Layer
-
In the layered architecture pattern, each layer fulfills a specific responsibility and role within the application. Some focus on user interface logic, while others handle the execution of business rules. These layers complement each other's unique purposes, but they aren't explicitly reliant on one another to perform their own tasks.
-
In software architecture, layers act as individual processes within the infrastructure of an application. These layers typically form a pattern, also called the n-tier architecture pattern.
-
-
www.cs.rochester.edu www.cs.rochester.edu
-
stackoverflow.com stackoverflow.com
-
Public and/or protected fields are bad because they can be manipulated from outside the declaring class without validation; thus they can be said to break the encapsulation principle of object oriented programming.
-
When you lose encapsulation, you lose the contract of the declaring class; you cannot guarantee that the class behaves as intended or expected.
-
Using a property or a method to access the field enables you to maintain encapsulation, and fulfill the contract of the declaring class.
-
Exposing properties gives you a way to hide the implementation. It also allows you to change the implementation without changing the code that uses it (e.g. if you decide to change the way data are stored in the class)
-
Anything that isn't explicitly enforced by contract is vulnerable to misunderstandings. It's doing your teammates a great service, and reducing everyone's effort, by eliminating ambiguity and enforcing information flow by design.
Tags
- good point
- eliminate ambiguity
- by design
- properties vs. direct access to instance variables
- contract (programming)
- explicit interfaces
- being explicit
- +0.9
- misunderstanding
- encapsulation (programming)
- using properties to abstract, encapsulate, and control access to private instance variables/data
- I agree
- data flow
- breaking encapsulation
Annotators
URL
-
-
www.typescriptlang.org www.typescriptlang.org
-
Derived classes need to follow their base class contracts, but may choose to expose a subtype of base class with more capabilities. This includes making protected members public:
-
TypeScript offers special syntax for turning a constructor parameter into a class property with the same name and value. These are called parameter properties
Doesn't this violate their own non-goal #6, "Provide additional runtime functionality", since it emits a
this.x = x
run-time side effect in the body that isn't explicitly written out in the source code? -
Member Visibility
-
-
stackoverflow.com stackoverflow.com
-
Practically speaking, if you can't think of a reason why it would be dangerous then theres more to be gained by opting for extensibility.
-
If it's dangerous, note it in the class/method Javadocs, don't just blindly slam the door shut.
-
When a developer chooses to extend a class and override a method, they are consciously saying "I know what I'm doing." and for the sake of productivity that should be enough. period.
Tags
- good point
- it's your responsibility to handle that
- not extensible enough
- do pros outweigh/cover cons?
- inheritance (programming)
- give the benefit of the doubt
- taking on the responsibility
- +0.9
- inextensible
- rigidness/inflexibility
- extensibility
- don't be so rigid
- allow others take the responsibility/risk if they want; don't just rigidly shut the door to even the possibility
- subclassing/inheritance
- dangerous (programming)
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
Reflection adds the ability to reverse-engineer classes, interfaces, functions, methods and extensions. Additionally, they offers ways to retrieve doc comments for functions, classes and methods.
-
-
-
kons-9 is that it combines the power of a software development IDE with the visual tools of 3D graphics authoring system. It does this by being implemented in Common Lisp, an object-oriented dynamic language which provides powerful facilities for exploratory development and rapid prototyping within a live interactive software environment
IDE + 3D + Lisp = Unique features:: * software development IDE with visual toold of 3d graphics authoring system * unlimited extensibility (no distinction between developers and end users)
-
REPL-based
Read-Eval-Print Loop and is a software programming environment that allows developers to interactively execute their code
-
-
reference.wolfram.com reference.wolfram.com
-
queue.acm.org queue.acm.org
-
Developers often speak of "getting into the flow" or "being in the zone." Such statements colloquially describe the concept of flow state, a mental state in which a person performing an activity is fully immersed in a feeling of energized focus, full involvement, and enjoyment.
One of my favourite explanations of the flow state
-
-
www.youtube.com www.youtube.comYouTube1
- May 2023
-
geohot.github.io geohot.github.io
-
From Jim Keller on Lex, there’s three fundamental types of compute CPU: add, multiply, load, store, compare, branch (nothing can be known about anything) GPU: add, multiply, load, store (when things happen is known, but the addresses aren’t) DSP: add, multiply (everything is known except the data) Neural networks are DSPs. All the loads and stores can be statically computed, which isn’t even possible for GPU workloads, never mind CPU ones.
-
-
blog.janestreet.com blog.janestreet.com
-
Emphasizing lifetime-polymorphism can also make type inference untenable, a design choice that wouldn’t fit OCaml.
References or sources? Why? Presumably there's some research into this?
-
-
news.ycombinator.com news.ycombinator.com
-
I think that TANGLE-style reordering is a lot less important with modern programming languages: they don't do one-pass compilation and so can deal with forward references. Note that most of the cross-references in Knuth's program could be replaced with function calls or constant names
Tags
Annotators
URL
-
-
wiki.c2.com wiki.c2.com
-
I felt he had just written the program where the default was comment without delimiters (i.e. most just changed the syntax for the compiler).
-
-
www.teamten.com www.teamten.com
-
General solutions are more complex than specific ones.
-
-
-
Web sites often design their APIs to optimize performance forcommon cases. Their main object-reading methods may return onlycertain “basic” properties of objects, with other methods availablefor fetching other properties. ShapirJS hides this performanceoptimization complexity from the user.
In other words, it risks undermining the intent of the API design.
-
-
sp23.datastructur.es sp23.datastructur.es
Tags
Annotators
URL
-
-
developers.google.com developers.google.com
-
stackoverflow.com stackoverflow.com
-
How can I add, subtract, and compare binary numbers in Python without converting to decimal?
I think the requirements of this were not spelled out well. After reading this over a couple of times, I think the problem should be…
"Add, subtract, and compare binary numbers in Python as strings, without converting them to decimal."
I'll take on that problem sometime when I get free time!
-
-
-
'handlers': { 'console': { 'level': 'INFO', 'class': 'logging.StreamHandler', 'stream': sys.stdout, 'formatter': 'verbose' }, },
It's as simple as adding "sys.stdout" to the "stream" attribute.
-
-
codeinthehole.com codeinthehole.com
-
16 August 2011
This is a pretty old article, from 2011. Note that it refers to Python 2.6 and 2.7. Today, Python is up to version 3.12.
-
-
ocaml.github.io ocaml.github.io
-
Available as a monolithic file, by chapters, and in PDF — git repository.
What a cool documentation design; I love the all-in-one layout.
Very reminiscent of the old CoffeeScript docs, to me.
Tags
Annotators
URL
-
- Apr 2023
-
ben-mlr.github.io ben-mlr.github.io
-
bartoszmilewski.com bartoszmilewski.com
-
Here we have extended this model to a slightly different category, a category where morphisms are represented by embellished functions, and their composition does more than just pass the output of one function to the input of another. We have one more degree of freedom to play with: the composition itself. It turns out that this is exactly the degree of freedom which makes it possible to give simple denotational semantics to programs that in imperative languages are traditionally implemented using side effects.
-
- Mar 2023
-
interviewing.io interviewing.io
-
"We could use this type of DB, or this other, or that other, and these are some pros and cons… And based on all these tradeoffs, I’ll use THAT type of DB."
Example of how to recommend a single system
-
The difference between coding and system design is the difference between retrieving and creating.Instead of finding (or “retrieving”) a solution, you are creating a solution. In this way, coding is akin to a science, while system design is more like an art.
-
-
dl.acm.org dl.acm.org
-
A hypertext link is a goto.
-
-
mode80.github.io mode80.github.io
-
So why aren't more people using Nim? I don't know! It's the closest thing to a perfect language that I've used by far.
Nim sounds as the most ideal language when comparing to Python, Rust, Julia, C#, Swift, C
Tags
Annotators
URL
-
-
news.ycombinator.com news.ycombinator.com
-
It isn't a good long term solution unless you really don't care at all about disk space or bandwidth (which you may or may not).
Give this one another go and think it through more carefully.
-
- Feb 2023
-
www.youtube.com www.youtube.comHansh1
-
www.s4c.cymru www.s4c.cymru
-
https://www.s4c.cymru/en/international/
Tags
Annotators
URL
-
-
www.s4c.cymru www.s4c.cymruS4C Clic1
-
https://www.s4c.cymru/clic/
Tags
Annotators
URL
-
-
en.forum.saysomethingin.com en.forum.saysomethingin.com
-
Hello from S4C - Welsh - SSi Forum<br /> by sara-peacock-1
-
-
Local file Local file
-
Object-oriented Programming (OOP) is the process of converting this perfectlydefined design into a working program that does exactly what the CEOoriginally requested.
OOP
-
Object-oriented Design (OOD) is the process of converting such requirements intoan implementation specification. The designer must name the objects, define thebehaviors, and formally specify what objects can activate specific behaviors onother objects. The design stage is all about how things should be done. The outputof the design stage is an implementation specification. If we were to complete thedesign stage in one step, we would have turned the requirements into a set ofclasses and interfaces that could be implemented in (ideally) any object-orientedprogramming language.
OOD
-
Object-oriented Analysis (OOA) is the process of looking at a problem, system,or task that somebody wants to turn into an application and identifying the objectsand interactions between those objects. The analysis stage is all about what needsto be done. The output of the analysis stage is a set of requirements. If we were tocomplete the analysis stage in one step, we would have turned a task, such as, "Ineed a website", into a set of requirements, such as:Visitors to the website need to be able to (italic represents actions, boldrepresents objects):review our historyapply for jobsbrowse, compare, and order our products
OOA
-
What object-oriented means
What does the object-oriented means? Objects are models of somethings that can do certain things and have certain things done to them. Formally, an object is a collection of data and associated behaviors.
-
The difference between object-oriented design and object-orientedprogramming
What is the design and programming mean in OOP?
-
-
www.iso.org www.iso.org
-
-
www.youtube.com www.youtube.com
Tags
Annotators
URL
-
-
www.youtube.com www.youtube.com
Tags
Annotators
URL
-
-
platform.openai.com platform.openai.com
-
openai.com openai.com
-
datatracker.ietf.org datatracker.ietf.org
-
www.grammaticalframework.org www.grammaticalframework.org
Tags
Annotators
URL
-
- Jan 2023
-
techterms.com techterms.com
Tags
Annotators
URL
-
-
rhodesmill.org rhodesmill.org
-
-
Hints for Preparing Documents Most documents go through several versions (always more than you expected) before they are finally finished. Accordingly, you should do whatever possible to make the job of changing them easy. First, when you do the purely mechanical operations of typing, type so subsequent editing will be easy. Start each sentence on a new line. Make lines short, and break lines at natural places, such as after commas and semicolons, rather than randomly. Since most people change documents by rewriting phrases and adding, deleting and rearranging sentences, these precautions simplify any editing you have to do later. — Brian W. Kernighan, 1974
—Brian W. Kernighan, 1974 “UNIX for Beginners” [PDF] as Bell Labs Technical Memorandum 74-1273-18 on 29 October 1974.
For easier editing and reuse of sentences, or even portions of lines of text, one can (and should) write sentences or sentence fragments on their own lines in digital contexts.
This way future edits or the ability to more easily cut and paste will far easier in addition to keeping your version control files simpler and easier to read and visually track your changes. (That is in many version control systems, instead of a change appearing to affect an entire paragraph, it will only show on the single line that was changed thereby making the change easier to see.)
This particular affordance may be a particularly useful one for note takers who expect to regularly reuse their notes in other contexts. Many forms of software (including Tex, LaTeX, and even markdown) will autowrap newlines so that a sentence broken up into clauses on multiple lines will properly wrap back into a proper looking single line when printed. Take care that in many Markdown versions adding two spaces at the end of a line will automatically create a newline in your text.
-
-
Local file Local file
-
Literate programming worked beautifully until wegot to a stage where we wanted to refactor theprogram. The program structure was easy tochange, but it implied a radical change to thestructure of the book. There was no way we couldspend a great deal of time on restructuring thebook so we ended up with writing appendices andappendices to appendices that explained what wehad done. The final book became unreadable andonly fit for the dustbin.The lesson was that the textbook metaphor is notapplicable to program development. A textbook iswritten on a stable and well known subject whilea program is under constant evolution. Weabandoned literate programming as being toorigid for practical programming. Even if we got itright the first time, it would have failed in thesubsequent maintenance phases of the program’slife cycle.
-
-
meatfighter.com meatfighter.com
Tags
Annotators
URL
-
-
www.infoq.com www.infoq.com
-
Although the architect could code, as the title suggests, there are other ways for the architect to stay engaged with the delivery, such as pairing and peer reviews.
-
Rotating the architect role among different team members carries the benefit of increasing the overall team’s working architectural knowledge. Team members gain a better understanding of all the roles involved in delivery, leading to empathy between team roles, improved intra-team interaction, and a better overall product by diversifying the viewpoints applied to each role.
On rotating roles
-
Similarly, when I ask other architects how much they’ve coded recently, more often than not I hear: “It’s been a while.”
-
-
news.ycombinator.com news.ycombinator.com
-
They are foldable in IDEs
Everything is foldable in IDEs so long as the IDEs make them foldable.
-
-
www.colbyrussell.com www.colbyrussell.com
-
Considerations
What about chained dotted access?
foo.bar.baz
is probably okay asbar.baz @ (the Foo)
(or even@the Foo
), but probably not if it takes the formbar.baz from the Foo
. (It just doesn't look reasonable to me.)Alternatively, what about
@bar.baz for the Foo
?
-
-
buttondown.email buttondown.email
-
In Lua you can write raw, multiline strings with [[]]: [[ Alice said "Bob said 'hi'". ]]
This is indeed very good (for the reasons stated here).
-
-
ieeexplore.ieee.org ieeexplore.ieee.org
-
models2010.ifi.uio.no models2010.ifi.uio.no
-
When time becomes critical,the model is dropped
-
-
docdrop.org docdrop.org
-
how important is the concrete syntax of their language in contrast to
how important is the concrete syntax of their language in contrast to the abstract concepts behind them what I mean they say can someone somewhat awkward concrete syntax be an obstacle when it comes to the acceptance
-
-
matt.might.net matt.might.net
-
I highly recommend Advent of Code to anyone looking to sharpen (or re-sharpen) their programming skills.
-
I used vim and make for my universal IDE.
vim and make serve well as universal IDE for most programming languages (maybe apart from C#?)
-
For the most part, homebrew solved the installation problem. Almost every language had a homebrew-based option.
Homebrew can help a lot while experiment with new programming languages
-
I stayed up each night until the problem was released (11pm my time), but I didn’t try to code up the solution right away. Instead, I read the problem description before bed and then thought about how to solve it while falling asleep. I usually woke up every morning with a full sketch of the solution in my head, or something close to it.
Sleep tactic for solving programming challenges
Tags
Annotators
URL
-
- Dec 2022
-
stackoverflow.com stackoverflow.com
-
yield is a bit of laguage level magic that only works in the context of a method.
-
-
blog.dornea.nu blog.dornea.nu
-
David Alfonso has done a great job and put together a repository that helps you with the export of tiddlers. All you need is to export all your tiddlers bundled as one single HTML and then follow the instructions in the README.
TiddlyWikiPharo is capable of similar exportation and we start from the single HTML TW file that we can de/recompose almost at will, because we can manipulate the tiddlers inside a data narrative. As shown in the malleable systems wiki example, we're mostly focused in conversions from Markdown to WikiText (TW's format) as it is our most felt necessity, but migrations from WikiText to Markdown are in the radar, combining/extending TiddlyWikiPharo with Pandoc (future needs/funding will tell if/when is implemented).
-
After going down the Emacs rabbit hole, I’ve adopted ORG mode as my main file format for writing documents, exporting these to other formats (PDF, markdown, Confluence, Jira and many others), creating diagrams (mainly plantuml), presentations, writing technical documentation and hopefully some day for publishing a whole book. For the note-taking phase I write my notes in ORG mode and create a rudimentary outline sorted by chapters/sections. Usually I use the same structure to create my blog posts from (like I did in the book summaries). Extracting pieces of information for individual tiddlers, however, tends to be a time-intensive process. I’ve managed to use the Tiddlywiki API within Emacs but my Elisp skills are still not good for doing more advanced stuff like:
We, at the Grafoscopio community create a lot of projects (including presentations, book(lets) writing/republishing, workshops/reading notes) by connecting diverse contexts instead of keeping ourselves inside a single one. Of course, this single context would be possible on an individual level, but connecting different contexts gives account of the diversity of participants in our community and workshops. So we keep contexts limited, minimal and well connected (TW, Fossil, Pharo/GToolkit and Markdown tools like Zettlr or HedgeDoc) but not a single one.
It is the creation of fluent workflows between different tools, that account for different experiences and participants our way to deal with context friction instead of keeping ourselves inside a single context.
All the advanced usages of TW in the list items after this highlight are done inside the data narratives from TiddlyWikiPharo, as told in a previous note with a novice friendlier syntax (Smalltalk instead of Lisp).
-
It became not only my primary editor, but also my RSS feeds reader, mail client, YouTube video player, IDE, API client… I basically live in Emacs Here is my config.org and try to avoid as many context switches as possible.
My context switching friction decrease is related with the way I connect the contexts (for example TW + Glamorous Toolkit vía custom packages like TiddlyWikiPharo instead of being inside a unique context, particularly a text oriented one, with a pretty limited definition of text as it limits what our visual cortex is able to convey with richer text/visuals.
-
-
blog.vivekhaldar.com blog.vivekhaldar.com
-
A paper doesn’t even contain all the information and data required to reproduce a result. Because if it did, it would be the size of a book.
-
-
www.inkandswitch.com www.inkandswitch.com
Tags
Annotators
URL
-
- Nov 2022
-
github.com github.com
-
2 • 3 = 6
-
-
github.com github.com
-
Ideally we could use Unicode, 3 2 1 ~ 3 2 1 ≃
-
-
docs.ruby-lang.org docs.ruby-lang.org
-
A SimpleDelegator instance can take advantage of the fact that SimpleDelegator is a subclass of Delegator to call super to have methods called on the object being delegated to. class SuperArray < SimpleDelegator def [](*args) super + 1 end end SuperArray.new([1])[0] #=> 2
-
-
www.inkandswitch.com www.inkandswitch.com
-
In Potluck, we encourage people to write data in freeform text, and define searches to parse structure from the text.
From a gradual enrichment standpoint I understand but from a data entry standpoint this seems like more work.
Tags
Annotators
URL
-
-
www.warp.dev www.warp.dev
-
In summary, terminal input is weird. It’s weird largely because there’s a character-only pipe sitting between the terminal and shell. And going one step back, the weirdness comes from the whole historical division of terminal vs. shell, which is based on emulating a physical hardware setup that hasn’t been built since the 80s.
Summary of why the terminal input is so weird.
-
-
www.ruby-forum.com www.ruby-forum.com
-
I have been doing different things w/ Ruby for a couple of years now and the only bad thing I can say about it is that it makes programming in other languages feel awfully burdensome. = )
-
-
datatracker.ietf.org datatracker.ietf.org
-
xournalpp.github.io xournalpp.github.io
-
Currently Xournal++ does not have shortcuts/keybindings configurable in the preferences. However you can write your custom plugin to achieve exactly that.
Must learn (and install) Lua (version >=5.3) to make custom shortcuts for Xournal++ via personally made plugins.
-
-
www.quora.com www.quora.com
-
What does 'passing an argument' mean in programming?You have a grinder that will grind anything that you pass on to her. You give her Rice. She grind it. You give her wheat. She grind it. You give her a Justin Bieber song CD. She grind it. She grinds every thing that you hand over to her. In programming, we create function that does the stuff we need. Say add, subtract, multiply or print the stuff that you pass on to it. Then we pass on stuff upon which the function will operate and return us the results. This process of passing the 'stuff' to be processed is referred to as passing an 'argument' in programming. Thank You.
-
-
www.programmableweb.com www.programmableweb.com
Tags
Annotators
URL
-
-
api.stackexchange.com api.stackexchange.com
Tags
Annotators
URL
-
-
mzaks.medium.com mzaks.medium.com
-
I like to say that in ECS we design bottom-up. We look at data and which behaviour depends on which data. In OO we design top-down, we search for abstractions and generic behaviours / definitions.
-
-
www.moserware.com www.moserware.com
-
there is no single perfect universal programming language. Until I came to that point, I wasted a lot of time thinking that GW-BASIC QBASIC QB 4.5 VB4 Delphi Java C++ C# 1.0 was the only language I would ever need
-
-
-
There are three main types of module and function mocking in Jest:jest.fn: Mock a functionjest.mock: Mock a modulejest.spyOn: Spy or mock a function
Esto es sólo una prueba para Juanda
-