- Sep 2024
-
www.gnu.org www.gnu.org
-
freedom to study the program's “source code,” and change it, so the program does your computing as you wish
-
-
blog.nodejitsu.com blog.nodejitsu.com
-
I don't expect everyone to read every single line of the code for a project they are trying to use, that isn't very reasonable. What I do see though, is that a lot developers have a mental barrier to actually opening up the source code for the project they are trying to use. They will read the documentation, run the tests, use the example code, but when they are faced with a problem that could be solved through a one or two line change in the source code, they shut down completely. The point is that you shouldn't be afraid to jump into the source code. Even if you don't fully understand the source code, in many cases you should be able to isolate your issue to a specific block. If you can reference this block ( or line numbers ) when opening up your support request, it will help the author better understand your problem.
-
-
github.com github.com
-
after_commit on: :create do OnboardingDripper.subscribe!(self) end
Tags
Annotators
URL
-
- Nov 2023
-
carbon.now.sh carbon.now.shCarbon1
Tags
Annotators
URL
-
-
unix.stackexchange.com unix.stackexchange.com
-
@tmoschou You can find the source for Apple's pkill on opensource.apple.com/source. It's together with other utilities in the collection adv_cmds. Maybe you can spot the bug.
-
- Jan 2023
-
runestone.academy runestone.academy
-
High level languages are portable meaning they can run on different computers with little or no modifications
-
- Nov 2022
-
developer.intuit.com developer.intuit.com
-
You can also go to the Ruby OAuth Client Library to download the source code and run: 1gem build intuit-oauth.gemspec to build your own gem if you want to modify certain functions in the library.
-
-
-
The GitHub repository for source code that generates the knowledge garden by @wfinck (which he calls a "digital garden"
-
- Sep 2022
-
medium.com medium.com
-
In collusion, writing good code not only require knowledge but also require compassion. To understand people's pain and mistakes, to think about your teammate and to help everyone achieve a better life.
-
Think about how good it is if you can build a system at “2 half brain quality” and then people just need use 1 half of their brain to maintain it. You can fix bug in a blink of an eye, run tests and give it to tester, done. Everything will be done in a easiest way and fixing bug or refactoring can be easy like breathing. The most heavy task in programming is not about building application, but it’s about maintain them and if you wrote something you can’t understand, then you will suffer for the rest of your life.
-
-
metalblueberry.github.io metalblueberry.github.io
-
your cognitive load increases with the level of indentation. 1 2 3 4 5 6 7 8 9 10 if r.Method == "GET" { if r.Header.Get("X-API-KEY") == key { // ok return nil }else{ return errors.New("Key is not valid") } } else { return errors.New("Invalid Method") }
-
Avoid indentation levels, If you find yourself with more than 3, you should create a function.
-
Code explains what and how Documentation explains why.
-
Do you really need those lines? Isn’t it clear enough? Well, I still find comments like this in a lot of cases and it gets funnier when the comment is obsolete and the code is doing other things. Following the example, let’s imagine that another developer adds support for PUT method. I think that this is what would happen.
-
- Aug 2022
-
tuxedolabs.blogspot.com tuxedolabs.blogspot.com
-
This describes one of the most pleasing hacks I've ever come across. I just now tracked it down and added it to my bookmarks. (Not sure why it wasn't already there.)
You could also conceive of going one step further. When your app (doesn't actually have to be a game, though admittedly it's much easier for you if it is) is compiled with tweak.h, it gives it the power to paint the source file on the screen—so you don't actually have to switch over to your text editor to save it, etc. Suppose you want to provide custom inputs like Bret Victor-style sliders for numeric values. You could edit it in your text editor, or you could derp around with it in-app. Tweaking the value in-app should of course both update it wrt the app runtime but also still write the file to disk, too, so if live reloading is turned on in your text editor, whatever changes you make inside the live process image gets synced out.
-
- Apr 2022
-
github.com github.com
-
Instead read this gems brief source code completely before use OR copy the code straight into your codebase.
Tags
- software development: use of libraries vs. copying code into app project
- having a deep understanding of something
- read the source code
- learning by reading the source
- software development: use of libraries: only use if you've read the source and understand how it works
- copy and paste programming
Annotators
URL
-
- Mar 2022
-
askubuntu.com askubuntu.com
-
Yes they are the same command. This part of apt's cmdline/apt.cc source file proves it:
-
- Dec 2021
- Nov 2021
-
askubuntu.com askubuntu.com
-
Perhaps not a good idea, in general, to use a random PPA for such sprawling software as a browser. Auditability near zero even if it is open source.
-
- Jun 2021
-
github.com github.com
-
'set-cookie': response.headers.get('set-cookie')
-
- May 2021
-
-
You can see the implementation here: https://github.com/sveltejs/sapper/blob/339c417b24e8429d3adc9c9f196bf159a5fce874/runtime/src/server/middleware/get_page_handler.ts#L137
-
- Apr 2021
-
stackoverflow.com stackoverflow.com
-
A bit of a tour through the Ruby source code seems necessary as the documentation is a bit thin.
-
-
github.com github.com
-
:structured - Lumberjack::Formatter::StructuredFormatter - crawls the object and applies the formatter recursively to Enumerable objects found in it (arrays, hashes, etc.).
-
-
core.tcl-lang.org core.tcl-lang.org
-
core.tcl-lang.org core.tcl-lang.org
-
github.com github.com
-
This repository contains the source code for:
-
-
github.com github.com
-
first sighting: this file referenced by https://hyp.is/ZD-z8px8Eeue0ws8rEMsrw/gist.github.com/cowboyd/1642793
-
-
stackoverflow.com stackoverflow.com
-
If you look at the source code you'll see that they're exactly the same thing.
-
-
github.com github.com
-
Read the code! No, really. I wrote this code to be read.
-
- Mar 2021
-
github.com github.com
-
This is not a fork. This is a repository of scripts to automatically build Microsoft's vscode repository into freely-licensed binaries with a community-driven default configuration.
almost without a doubt, inspired by: chromium vs. chrome
-
-
www.chevtek.io www.chevtek.io
-
he goes on to talk about third party problems and how you're never guaranteed something is written correctly or that even if it is you don't know if it's the most optimal solution
-
-
news.ycombinator.com news.ycombinator.com
-
here is my set of best practices.I review libraries before adding them to my project. This involves skimming the code or reading it in its entirety if short, skimming the list of its dependencies, and making some quality judgements on liveliness, reliability, and maintainability in case I need to fix things myself. Note that length isn't a factor on its own, but may figure into some of these other estimates. I have on occasion pasted short modules directly into my code because I didn't think their recursive dependencies were justified.I then pin the library version and all of its dependencies with npm-shrinkwrap.Periodically, or when I need specific changes, I use npm-check to review updates. Here, I actually do look at all the changes since my pinned version, through a combination of change and commit logs. I make the call on whether the fixes and improvements outweigh the risk of updating; usually the changes are trivial and the answer is yes, so I update, shrinkwrap, skim the diff, done.I prefer not to pull in dependencies at deploy time, since I don't need the headache of github or npm being down when I need to deploy, and production machines may not have external internet access, let alone toolchains for compiling binary modules. Npm-pack followed by npm-install of the tarball is your friend here, and gets you pretty close to 100% reproducible deploys and rollbacks.This list intentionally has lots of judgement calls and few absolute rules. I don't follow all of them for all of my projects, but it is what I would consider a reasonable process for things that matter.
-
-
github.com github.com
-
If you don't mind putting the sourcemap url in the minified JS
-
While I understand orgs wanting not to expose their unminified source, it's security through obscurity (meaning it's not adding any real security).
-
The only place I can find it is in the sprockets-rails gem. javascript_include_tag calls this: def find_debug_asset(path) if asset = find_asset(path, pipeline: :debug) raise_unless_precompiled_asset asset.logical_path.sub('.debug', '') asset end end
-
- Feb 2021
-
github.com github.com
-
-
2019.trailblazer.to 2019.trailblazer.to
-
note that TRB source code modifications are not proprietary
In other words, you can build on this software in your proprietary software but can't change the Trailblazer source unless you're willing to contribute it back.
loophole: I wonder if this will actually just push people to move their code -- which at the core is/would be a direction modification to the source code - out to a separate module. That's so easy to do with Ruby, so this restriction hardly seems like it would have any effect on encouraging contributions.
Tags
- open-source software: not contributing new code back to project
- LGPL
- wording designed to be more palatable/pleasing/inoffensive
- reminder
- neutral/dispassionate/impartial/objective wording
- annotation meta: may need new tag
- well-written
- proprietary software
- software licensing
- loophole/escape hatch
- good point
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
Check yourself some shell-sources.
-
If interested, you can check the plain old /bin/sh signal handling in the source code here.
-
-
hilton.org.uk hilton.org.uk
-
‘Programs are meant to be read by humans and only incidentally for computers to execute.’
-
- Jan 2021
-
linuxmint-user-guide.readthedocs.io linuxmint-user-guide.readthedocs.io
-
This is a store we can’t audit, which contains software nobody can patch. If we can’t fix or modify software, open-source or not, it provides the same limitations as proprietary software.
-
- Dec 2020
-
github.com github.com
-
Treating the web as a compile target has a lot of implications, many negative. For example “view source” is a beloved feature of the web that’s an important part of its history and especially useful for learning, but Svelte’s compiled output is much harder to follow than its source. Source maps, which Svelte uses to map its web language outputs back to its source language, have limitations.
-
- Nov 2020
-
github.com github.com
-
github.com github.com
-
they're in the svelte compiler: https://github.com/sveltejs/svelte/blob/master/src/compiler/compile/nodes/Element.ts#L668 (search for the warning text)
-
- Oct 2020
-
github.com github.com
-
github.com github.com
-
exec(params) do load path end
So the command being wrapper must be a Ruby file, because this will use
load
to load its source into the interpreter (rather than executing it in a shell (we're already in a shell)). -
-
-
medium.com medium.com
-
withindex.js, we have a single source of truth, giving fine grained control on what we expose to the outside world.
-
-
github.com github.com
-
Source Code is a UX to interface with the raw machine.
-
-
igraph.discourse.group igraph.discourse.group
-
Python-igraph 0.8.3. (2020, October 8). Igraph Support Forum. https://igraph.discourse.group/t/python-igraph-0-8-3/473
-
- Sep 2020
-
github.com github.com
-
I don't read comments as I think they are dangerous
Why does he think they are dangerous?
-
-
github.com github.com
- Aug 2020
-
elifesciences.org elifesciences.org
-
Welcome to a new ERA of reproducible publishing. (2020, August 24). ELife; eLife Sciences Publications Limited. https://elifesciences.org/labs/dc5acbde/welcome-to-a-new-era-of-reproducible-publishing
-
- May 2020
-
github.com github.com
-
export DOCKER_TLS_VERIFY=1 export DOCKER_CERT_PATH="$DOCKER_TLS_CERTDIR/client"
-
if [ -z "${DOCKER_HOST:-}" ]; then if _should_tls || [ -n "${DOCKER_TLS_VERIFY:-}" ]; then export DOCKER_HOST='tcp://docker:2376' else export DOCKER_HOST='tcp://docker:2375' fi fi
-
-
github.com github.com
-
if [ -n "${DOCKER_HOST:-}" ] && _should_tls; then export DOCKER_TLS_VERIFY=1 export DOCKER_CERT_PATH="$DOCKER_TLS_CERTDIR/client" fi
-
if [ -z "${DOCKER_HOST:-}" ] && [ ! -S /var/run/docker.sock ]; then if _should_tls || [ -n "${DOCKER_TLS_VERIFY:-}" ]; then export DOCKER_HOST='tcp://docker:2376' else export DOCKER_HOST='tcp://docker:2375' fi fi
-
-
docs.gitlab.com docs.gitlab.com
-
Docker 19.03 does this automatically # by setting the DOCKER_HOST in # https://github.com/docker-library/docker/blob/d45051476babc297257df490d22cbd806f1b11e4/19.03/docker-entrypoint.sh#L23-L29
-
-
gitlab.com gitlab.com
-
Code Owners allows for a version controlled single source of truth file outlining the exact GitLab users or groups that own certain files or paths in a repository.
-
-
extensionworkshop.com extensionworkshop.com
-
Add-ons are not allowed to contain obfuscated code, nor code that hides the purpose of the functionality involved. If external resources are used in combination with add-on code, the functionality of the code must not be obscured.
-
-
github.com github.com
-
Mozilla can still block distribution of the extension, even when not distributed via ADO. It is not possible for us to provide Mozilla the unminified JavaScript source files for Google’s and Microsoft’s translation widgets. This is a risk because Mozilla can demand such.
-
Mozilla does not permit extensions distributed through https://addons.mozilla.org/ to load external scripts. Mozilla does allow extensions to be externally distributed, but https://addons.mozilla.org/ is how most people discover extensions. The are still concerns: Google and Microsoft do not grant permission for others to distribute their "widget" scripts. Google's and Microsoft's "widget" scripts are minified. This prevents Mozilla's reviewers from being able to easily evaluate the code that is being distributed. Mozilla can reject an extension for this. Even if an extension author self-distributes, Mozilla can request the source code for the extension and halt its distribution for the same reason.
Maybe not technically a catch-22/chicken-and-egg problem, but what is a better name for this logical/dependency problem?
-
- Apr 2020
-
falcon.readthedocs.io falcon.readthedocs.io
-
“The source code for Falcon is so good, I almost prefer it to documentation. It basically can’t be wrong.”
-
-
stackoverflow.com stackoverflow.com
-
source
-
- Mar 2020
-
stackoverflow.com stackoverflow.com
-
From error.c
-
- Feb 2020
-
loadimpact.com loadimpact.com
-
We believe load test scripts should be plain code to get all the benefits of version control, as opposed to say unreadable and tool generated XML.
Saw another comment lamenting the use of ugly/unreasonable XML files:
https://github.com/flood-io/ruby-jmeter
Tired of using the JMeter GUI or looking at hairy XML files?
-
- Jan 2020
-
www.digitalocean.com www.digitalocean.com
-
First sighting of Jupyter Notebook (that I recall).
-
-
www.rubyinside.com www.rubyinside.com
-
I was going through the source for Thin and noticed that instead of using require, Marc-Andre Cournoyer was using a method called autoload to load thin's constituent parts.
-
- Dec 2019
-
onivim.github.io onivim.github.io
-
We're developing Onivim 2 in the open, but it is licensed under a commercial EULA.
-
- Nov 2019
-
github.com github.com
-
news.ycombinator.com news.ycombinator.com
-
the main reason we built a new multiprocess architecture is that Chromium's multiprocess support was never contributed to the WebKit project. It has always lived in the separate Chromium tree, making it pretty hard to use for non-Chrome purposes.Before we wrote a single line of what would become WebKit2 we directly asked Google folks if they would be willing to contribute their multiprocess support back to WebKit, so that we could build on it. They said no.
-
- Sep 2019
-
www.excellentwebworld.com www.excellentwebworld.com
-
Amazon Prime/Netflix Clone Script: Create a Video Streaming App
Build a video streaming app for iOS & Android with Amazon Prime or Netflix Clone Script. Learn difference between Netflix clone app & custom app development
-
-
github.com github.com
- Feb 2019
-
gist.github.com gist.github.comeliza.py1
Tags
Annotators
URL
-
- Mar 2018
-
shixudongleo.linkpc.net:10021 shixudongleo.linkpc.net:10021
-
export var Layer = Evented.extend({
Layer is the base class for geometry object in Leaflet.
- base class for Marker
- base class for Vector objects (path, polyline, polygon, circle, rectangle)
- base class for tile layers
-
-
shixudongleo.linkpc.net:10021 shixudongleo.linkpc.net:10021
-
// Adds the given layer to the group.
addLayer method add object to LayerGroup. Since Path is extend from Layer. Almost all geometry can be applied here.
- marker
- path/circle/ployline/polygon
-
-
shixudongleo.linkpc.net:10021 shixudongleo.linkpc.net:10021
-
export var Path
Path class is the parent for many path-like Class,
- Polyline
- Polygon
-
-
shixudongleo.linkpc.net:10021 shixudongleo.linkpc.net:10021
-
export {Marker, marker} from './Marker';
The Marker class is starting here. L.marker
-
-
shixudongleo.linkpc.net:10021 shixudongleo.linkpc.net:10021
-
export {Map, createMap as map} from './Map';
the starting point for L.map.
-
- Dec 2016
-
www.knightfoundation.org www.knightfoundation.org
-
Fact-based journalism now competes with false information for our attention while our cities and citizens become both more connected by technology and more divided by ideology and income. The values reflected in lines of code, whether it be at the ATM, when we search on internet or drive a car, are already affecting what we think, what we do and what information we share with those around us.
-
- Nov 2016
-
github.com github.com
-
minimum_chrome_version": "
oh interesting
-