- Nov 2023
-
-
In Ruby, if you have several files called foo.rb in different directories of $LOAD_PATH and execute require "foo" the first one found gets loaded, and the rest are ignored.
Tags
Annotators
URL
-
- Aug 2022
-
en.wikipedia.org en.wikipedia.org
-
Stigmergy (/ˈstɪɡmərdʒi/ STIG-mər-jee) is a mechanism of indirect coordination, through the environment, between agents or actions.
Example: ant pheromone paths
Within ants, there can be a path left for others to follow, but what about natural paths in our environment that influence us to take them because of the idea of the "path of least resistence" or the effects of having paved cow paths.
Similarly being lead by "the company that you keep".
relathionship to research on hanging out with fat people tending to make one fatter.
-
- Apr 2022
-
-
three steps required to solve the all-importantcorrespondence problem. Step one, according to Shenkar: specify one’s ownproblem and identify an analogous problem that has been solved successfully.Step two: rigorously analyze why the solution is successful. Jobs and hisengineers at Apple’s headquarters in Cupertino, California, immediately got towork deconstructing the marvels they’d seen at the Xerox facility. Soon theywere on to the third and most challenging step: identify how one’s owncircumstances differ, then figure out how to adapt the original solution to thenew setting.
Oded Shenkar's three step process for effective problem solving using imitation: - Step 1. Specify your problem and identify an analogous problem that has been successfully solved. - Step 2. Analyze why the solution was successful. - Step 3. Identify how your problem and circumstances differ from the example problem and figure out how to best and most appropriately adapt the original solution to the new context.
The last step may be the most difficult.
The IndieWeb broadly uses the idea of imitation to work on and solve a variety of different web design problems. By focusing on imitation they dramatically decrease the work and effort involved in building a website. The work involved in creating new innovative solutions even in their space has been much harder, but there, they imitate others in breaking the problems down into the smallest constituent parts and getting things working there.
Link this to the idea of "leading by example".
Link to "reinventing the wheel" -- the difficulty of innovation can be more clearly seen in the process of people reinventing the wheel for themselves when they might have simply imitated a more refined idea. Searching the state space of potential solutions can be an arduous task.
Link to "paving cow paths", which is a part of formalizing or crystalizing pre-tested solutions.
-
- Nov 2021
-
github.com github.com
-
I find some of XDG's default dirs, especially ~/.local/share/whatever, to be very annoying. (Almost as annoying as having ~/snap polluting my home dir, but for a different reason.) I shouldn't have to type such long paths or navigate three folders deep in order to access my data files. I therefore make use of the XDG_DATA_HOME environment variable for XDG-style programs, so they will put my files somewhere convenient. However, I don't think Snap can honor that variable, because AppArmor rules require fixed paths. Given 1 & 2, I think ~/.snap/data is a sensible compromise, at least until the underlying components are flexible enough to let the user choose.
-
- Sep 2021
-
betterprogramming.pub betterprogramming.pub
-
From my point of view, this approach will help you to write cleaner code. Also, it will help to maintain the project. For instance, moving a file from the current directory to another will cause fewer problems, because every file uses an absolute path instead of a relative one. Last but not least, it helps you during development.
-
-
blog.johnnyreilly.com blog.johnnyreilly.com
-
import * as utils from '../../../../../../../shared/utils';
-
-
-
-
Saying that web devs used to be fine with relative imports is like saying that human beings used to be fine living without refrigerators. Sure we did. But was it better than it is now? No. No, it wasn't.
-
- Mar 2021
-
osf.io osf.io
-
Breznau, N., Rinke, E. M., Wuttke, A., Adem, M., Adriaans, J., Alvarez-Benjumea, A., Andersen, H. K., Auer, D., Azevedo, F., Bahnsen, O., Balzer, D., Bauer, G., Bauer, P. C., Baumann, M., Baute, S., Benoit, V., Bernauer, J., Berning, C., Berthold, A., … Nguyen, H. H. V. (2021). Observing Many Researchers using the Same Data and Hypothesis Reveals a Hidden Universe of Data Analysis. MetaArXiv. https://doi.org/10.31222/osf.io/cd5j9
Tags
- crowdsourcing
- reseach
- meta-science
- immigration
- crowd sourced replication initiative
- researcher variability
- researcher degrees of freedom
- is:preprint
- lang:en
- psychology
- economics
- political science
- noise
- sociology
- scientific method
- garden of forking paths
- social policy
- behavioural science
- analytical flexibility
Annotators
URL
-
- Nov 2020
-
www.npmjs.com www.npmjs.comtspath1
-
Everyone working in a TypeScript project that grows beyond a certains limit will eventually experience the situation commonly described as path hell, the snippet below is an example of such hell.
Tags
Annotators
URL
-
-
www.npmjs.com www.npmjs.com
-
No more shit-coding paths in Node like so:
-
-
stackoverflow.com stackoverflow.com
-
I was reading about path-mapping in tsconfig.json and I wanted to use it to avoid using the following ugly paths:
-
-
stackoverflow.com stackoverflow.com
-
However, I just went through the same exercise of moving from relative paths everywhere to module paths.
-
-
sass-lang.com sass-lang.com
-
Unlike some other languages, Sass doesn’t require that you use ./ for relative imports. Relative imports are always available.
-
-
www.npmjs.com www.npmjs.com
-
The sass-loader uses Sass's custom importer feature to pass all queries to the Webpack resolving engine. Thus you can import your Sass modules from node_modules. Just prepend them with a ~ to tell Webpack that this is not a relative import: @import '~bootstrap';
-
- Oct 2020
-
-
Rubin, M. (2020, October 20). Does preregistration improve the credibility of research findings?. https://doi.org/10.20982/tqmp.16.4.p376
-
-
medium.com medium.com
-
It’s a risky blanket statement that causes bloat by including all the mistakes you made while building the original product.
-
-
-
The react community has become a big cargo cult. There are some good ideas in the community and many Bad Ideas™. Paving the bad idea cowpaths lends a sense of legitimacy to these bad technical ideas that is not merited.
-
I agree that "it feels gross" is a bad reason. "not paving a bad cowpath" is a much better reason.
-
If the react cargo cult didn't have the JSX cowpath paved for them and acclimated to describing their app interface with vanilla javascript, they'd cargo cult around that. It's really about the path of least resistance and familiarity.
Tags
- due to historical reasons
- doing something without knowing why/how it works
- legitimize
- UI library
- paving cow paths
- not good enough reason/rationale/explanation
- excellent writing
- UI library: syntax
- not merited
- it's just _
- familiar syntax
- it's just plain JavaScript
- have a good reason
- path of least resistance
- JavaScript
- familiarity
- cargo cult
- getting stuck in a rut
- hypothetical/alternate history
Annotators
URL
-
-
www.agileconnection.com www.agileconnection.com
- Nov 2019
-
testing-library.com testing-library.com
-
To make this even easier, you can also simply import @testing-library/react/dont-cleanup-after-each which will do the same thing.
-
- May 2017
-
www.hackingwithreact.com www.hackingwithreact.com
-
var webpack = require('webpack');
Note you should also add:
const path = require('path');
See following comments for rationale.
-
path: 'dist'
Again, this will throw errors. The solution utilises 'path' (see comment above). The code should look like this in new versions of webpack:
path: path.resolve(__dirname, 'dist')
-
- Jul 2015
-
-
Many subjects and ideas link together Leveling-up in one area can mean also leveling-up in another You don’t have to learn everything about a subject The learner (with some prompting) can decide the learning goal It’s OK to jump around a bit while learning
-