- Last 7 days
-
x.com x.com
Tags
Annotators
URL
-
-
simonwillison.net simonwillison.net
Tags
Annotators
URL
-
-
x.com x.com
Tags
Annotators
URL
-
-
aistudio.google.com aistudio.google.com
Tags
Annotators
URL
-
- Dec 2024
-
docs.mattermost.com docs.mattermost.com
-
Without using the included NGINX: sudo docker compose -f docker-compose.yml -f docker-compose.without-nginx.yml up -d
-
-
snikket.org snikket.org
-
instant messaging
-
- Nov 2024
-
www.cru.org www.cru.org
-
“Discipling” someone is, to use a more recognizable term, mentoring someone in how to follow Christ and share the good news that people can have a relationship with God.
-
-
math.stackexchange.com math.stackexchange.com
-
Did anyone else notice this question is basically how different notions of "approximate equality" are only approximately equal?
-
-
-
radanskoric.com radanskoric.com
-
The affinity to using meta-programming in Ruby is going to vary a lot between different development teams and it’s a very important factor in deciding whether to adopt gradual typing as the two work against each other.
-
-
On most real life projects, the speed of development is easily worth an occasional corner case bug with an unexpected nil value … except when it isn’t.
speed of development vs. safety
-
If I decide to add it, which solution should I pick, battle tested Sorbet or core team endorsed RBS?
-
Will gradual typing be supported long term or is it a fad? Will this be an abandoned investment?
annotation meta: may need new tag: - Is it worth the investment? - Is it just a passing fad?
-
-
github.com github.com
-
-
arstechnica.com arstechnica.com
-
arstechnica.com arstechnica.com
-
confabulation
-
But that label has grown controversial as the topic becomes mainstream because some people feel it anthropomorphizes AI models (suggesting they have human-like features) or gives them agency (suggesting they can make their own choices) in situations where that should not be implied.
-
-
store.steampowered.com store.steampowered.com
-
innovative idea
-
-
www.dekudeals.com www.dekudeals.com
Tags
Annotators
URL
-
-
-
“There are a lot of people who mistakenly think intelligibility is the standard. ‘Oh, you knew what I was saying.’ Well, that’s not the standard. That’s a really bottom-of-the-barrel standard,” he says. “People who are concerned with English usage usually want to have their words taken seriously, either as writers or as speakers. And if you don’t use the language very well, then it hard to have people take your ideas seriously. That’s just the reality.”
-
Some linguists would argue that there’s no point fighting against slips like that—that language is forever unfixed and deviations should simply be observed and even appreciated—or that it’s silliness to tell people to follow rules that are as arbitrary as the meaning assigned to a certain jumble of letters. But Garner is not one of them.
-
Then again that makes little sense when trying to account for why people use the less-standard preventative instead of preventive or irregardless instead of regardless, he notes.
-
These days someone might even try to correct you if, in an attempt to note someone was being (overly) humble, you said they were self-depreciating.
-
But the corruption has become so common that using the original today might not only stop a conversation in its tracks but cause unpleasant face-scrunching. Per Garner, spitting image is now 23 times more commonly used than its precursor.
-
Have you ever said you felt nauseous? In the traditional sense that would mean you felt like you were capable of causing others to woof cookies, not that you were feeling sick to your own stomach—much along the lines of how poisonous and poisoned work.
-
Young people today, he says, are now dropping the “from” and simply saying they “graduated college,”
-
-
www.myenglishpages.com www.myenglishpages.com
Tags
Annotators
URL
-
-
justpublishingadvice.com justpublishingadvice.com
Tags
Annotators
URL
-
-
-
-
english.stackexchange.com english.stackexchange.com
-
www.oxfordlearnersdictionaries.com www.oxfordlearnersdictionaries.com
-
I logged in to my social media accounts.
Good example showing it's "in to" and not "into".
See https://english.stackexchange.com/questions/5302/log-in-to-or-log-into-or-login-to
-
- Oct 2024
-
ruben.verborgh.org ruben.verborgh.org
-
At the same time, computer scientists and engineers need to deliver the technological burden of proof that decentralized personal data networks can scale globally, and that they can provide people with a better experience than centralized platforms.
-
This unprecedented openness has inspired large-scale permissionless innovation and unbounded creativity
-
Fortunately, we do not have to agree on everything. Linked Data enables layered agreements, in which a few rules need to be adopted by many, and sets of additional rules are agreed upon by smaller groups as required.
- we do not have to agree on everything
- sets of additional rules are agreed upon by smaller groups as required.
-
Freedom of course always comes at a cost: what constitutes a victory for personal rights and freedom of speech also facilitates the spread of illegal messages, since decentralized networks make it harder to control what information is exchanged. Legality is of course a tricky matter, as some countries instate laws that prevent their citizens from voicing opinions that would be legal elsewhere.
-
-
-
hbr.org hbr.org
-
www.codesimplicity.com www.codesimplicity.com
-
www.cnet.com www.cnet.com
-
Usernames will need to be unique and have two numbers appended to the end of them, which Signal states was done in order to help keep usernames "egalitarian and to minimize spoofing."
-
-
www.androidcentral.com www.androidcentral.com
-
gitlab.com gitlab.com
-
before after (current behavior) after (expected behavior)
-
-
-
gitlab.com gitlab.com
-
That. Is the coolest. Shortcut. Ever. 💥 🚀
-
-
answers.microsoft.com answers.microsoft.com
-
I am just surprised that there is no clear official name for such a popular and well known convention. Internet searching seems to indicate that the common term used is "Red Squiggly Line", but it seems like a term quickly made-up just to describe something for which we know no name. There's a technical name for the dot on an "i" for goodness sake (tittle).
-
-
www.merriam-webster.com www.merriam-webster.com
-
The seeming luxury of having multiple words to choose from is not sufficient to offset the lingering fear that no matter which word you pick it will be the wrong one, causing people to silently laugh at you and judge both you and your grammar school teachers
-
The word people is best not used with words of number, in place of persons. If of ‘six people’ five went away, how many ‘people’ would be left? Answer: one people.
-
-
en.wikipedia.org en.wikipedia.org
-
www.zeffy.com www.zeffy.com
-
-
stevepolito.design stevepolito.design
-
-
@user = GlobalID::Locator.locate_signed params[:id]
GlobalID::Locator.locate_signed params
-
-
gitlab.com gitlab.com
-
Is that a false negative
-
-
github.com github.com
-
Documentation
Tags
Annotators
URL
-
-
-
Enhances ActionMailer to support the :cache delivery method, which behaves like :test, except that the deliveries are marshalled to a temporary cache file, thus making them available to other processes.
-
-
www.reddit.com www.reddit.com
-
I control my emails. I can grep them, migrate them, back them up however I want, I can choose who gets through the spam filter. And this is my most sensitive data - password resets, personal emails, personal info - honestly I'm surprised more selfhosters don't do it.
-
-
-
www.reddit.com www.reddit.com
-
-
Todoist for quick notes and todo lists. I'm also using my own TodoistToTxt (available on github) script running every minute to generate a todo.txt file out of Todoist inbox, which is rendered on PC with Rainmeter.
-
-
burtlo.github.io burtlo.github.io
-
There are two things that I enjoy: a test framework written in my own Domain Specific Language (DSL) that is easily understood by all those on a project and the ability for all participants to easily read, search, and view the tests.
-
I was continually pushing out the documents to those interested
-
-
github.com github.com
-
This tools bridges the gap of having feature files found in your source code and true documentation that your team, product owners and stakeholders can use.
Tags
Annotators
URL
-
-
-
As you all noticed I haven't given too much attention to this project in recent years, which I regret, but realistically I probably won't be the best maintainer given I haven't been using Ruby for years now, lost the contact with the ecosystem whatsoever.
-
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
The fact that many here are maintainers of Ruby implementations also has a biased effect on new features, as they might represent a burden on them. I'm not saying this is a bad thing, I love the diversity of points of view that this brings! OTOH, it's fair that people that do take time to discuss things here have a bigger influence on the direction that Ruby follows.
-
I frequently call for name compromises (let's stop on one name and move forward instead of five more years of discussion).
-
-
chromewebstore.google.com chromewebstore.google.com
-
https://www.npmjs.com/package/open-in-editor-connect
-
-
-
www.npmjs.com www.npmjs.com
Tags
Annotators
URL
-
-
www.kickstarter.com www.kickstarter.com
-
www.kickstarter.com www.kickstarter.com
-
"astronaut" beautifully translates to "star sailor."
-
true roots of "helicopter" are "helix" (meaning spiral, as in double helix) and "pteron" (meaning wing, as in pterodactyl, wing finger). So, "helicopter" literally means "spiral wing" – how perfect!
-
-
concourse-ci.org concourse-ci.org
-
Built in the open Concourse's RFC process and governance model invite anyone to become a contributor, developing the project roadmap by collaborating in the open.
-
-
devblogs.microsoft.com devblogs.microsoft.com
-
This is a bit awkward since TypeScript already defines its own thing called Iterator purely for type-checking. So due to this unfortunate name clash, TypeScript needs to introduce a separate type to describe these native/built-in iterable iterators.
-
-
shopify.github.io shopify.github.io
-
The extension runs a command using your shell’s interactive mode, so that version managers configured in files such as ~/.zshrc are picked up automatically. The command then exports the environment information into JSON, so that we can inject it into the NodeJS process and appropriately set the Ruby version and gem installation paths.
Makes sense, but some of these solutions sure seem like roundabout/unideal solutions
-
-
learn.microsoft.com learn.microsoft.com
-
in-box
first sighting: in-box Kind of like what's provided "out of the box".
-
-
-
Can be used as a "stop watch" timer or as a "time bomb" timer
-
-
-
class SnapshotFile extend( Module.new do
See https://github.com/filewatcher/filewatcher/blob/main/lib/filewatcher/snapshot.rb
-
-
-
Is this in case a plugin used prepend SomeModule to prepend a module into this class?
hash = super if defined?(super)
Actually, I see that https://github.com/filewatcher/filewatcher-access/blob/main/lib/filewatcher/access.rb used
class SnapshotFile extend( Module.new do
Is that similar? I think so. -
lambda(&:nil?)
-
-
www.youtube.com www.youtube.com
-
- Sep 2024
-
www.dexerto.com www.dexerto.com
-
-
Daily Wire held screenings at universities across the US, but some of those efforts were hindered when Eventbrite took down listings for screenings due to violations of its community guidelines. Article continues after ad “We do not permit events, content, or creators that promote or encourage hate, violence, or harassment towards others and/or oneself,” the company said.
-
-
-
personal knowledge management
-
-
pkmsummit.com pkmsummit.com
-
-
medium.com medium.com
-
This method allows individuals to manage and interlink their information more effectively by creating interconnected nodes, known as knowledge graphs.
-
-
en.wikipedia.org en.wikipedia.org
Tags
Annotators
URL
-
-
softwareengineering.stackexchange.com softwareengineering.stackexchange.com
-
GPL "infects" other parts of a system to combat a work-around which was used to violate the software freedom of the user, by firewalling sections of GPL'ed code from the rest of the system.
-
The point of GPL licenses is to protect the user of the software, not the developer. If you want "protection" as a developer, use MIT (disclaimer of warranty). GPL "infects" other parts of a system to combat a work-around which was used to violate the software freedom of the user, by firewalling sections of GPL'ed code from the rest of the system. If you don't care about your users' software freedom in the first place, then (L)GPL is the wrong choice.
- goal: protect user rights/freedoms
- non-goal: protect developer rights/freedoms
-
-
opensource.stackexchange.com opensource.stackexchange.com
-
In practice, tracking all authors in all copyright notices is quite cumbersome. Instead, often only the original author is credited here even when copyright is shared with additional contributors. A more reasonable approach is to credit all authors collectively, e.g. as “the FooProject contributors” or “Original Author and others”. However, I am not sure whether that results in a valid copyright notice as the copyright holders must be clearly recognizable.
-
The other reason to update these notices is if there are new authors. Typically, this is done by adding a new copyright line for each set of authors, with the most recent on top. For example: Copyright 2016–2018 George Copyright 1999, 2007–2016 Fred Adding a new line is sensible since many open-source licenses require that existing copyright notices are kept intact – so you must not update them in any way. And in the above example, adding George to Fred's copyright notice would be misleading since George did not publish any of their work in 1999 and Fred didn't publish in 2018.
-
-
www.gnu.org www.gnu.org
-
freedom to make and distribute copies of your modified versions
-
A free program allows you to tinker with it to make it do what you want (or cease to do something you dislike). Tinkering with software may sound ridiculous if you are accustomed to proprietary software as a sealed box, but in the Free World it's a common thing to do, and a good way to learn programming. Even the traditional American pastime of tinkering with cars is obstructed because cars now contain nonfree software.
-
If the users don't control the program, the program controls the users.
-
Other kinds of works are also used for practical activities, including recipes for cooking, educational works such as textbooks, reference works such as dictionaries and encyclopedias, fonts for displaying paragraphs of text, circuit diagrams for hardware for people to build, and patterns for making useful (not merely decorative) objects with a 3D printer. Since these are not software, the free software movement strictly speaking doesn't cover them; but the same reasoning applies and leads to the same conclusion: these works should carry the four freedoms.
-
If any of them is missing or inadequate, the program is proprietary (nonfree)
non-free software = proprietary software
missing any of these = non-conformant license (relative to a free software license)
-
With all four freedoms, the users fully control the program.
-
With the other two freedoms, any group of users can together exercise collective control over the program.
-
The freedom to make and distribute exact copies when you wish.
.
-
Users' control over the program requires four essential freedoms.
-
freedom to study the program's “source code,” and change it, so the program does your computing as you wish
-
freedom to run the program as you wish, for whatever purpose.
-
The first two freedoms mean each user can exercise individual control over the program
-
Either way, they give the program's developer power over the users, power that no one should have.
-
When a program respects users' freedom and community, we call it “free software.”
-
computer users' freedom—for users to control the software they use, rather than vice versa
Tags
- software freedom: ability to modify source code
- software freedom: ability to inspect/audit source code
- free software: essential freedoms
- freedom to run the software as you wish, for whatever purpose
- tinkering
- under my control
- non-conformant license
- software freedom
- freedom to share/distribute copies of modified versions
- digital freedom
- software should be under the user's control
- free content
- non-free software
- free software
- respect
- freedom to share copies with others
- right to repair
- freedom to make changes to software
- broadly speaking
- empowering individual users
- free software licenses
- individual control
- proprietary software
- user freedom
- freedom to make changes
- collective control
Annotators
URL
-
-
www.gnu.org www.gnu.orggnu.org2
-
-
(in its practitioners' perverse terminology) as “secure boot”
-
-
www.gnu.org www.gnu.org
-
The computer will run, without prejudice, whatever software you install in it, and let that software do whatever its code says to do.
-
This means that computer does not impose one particular service rather than another, or one protocol rather than another. It does not require the user to get anyone else's permission to communicate via a certain protocol.
-
The computer will communicate, without prejudice, through whatever protocol your installed software implements, with whatever users and whatever other networked computers you direct it to communicate with.
-
Any software that can be replaced by someone else, the user must be empowered to replace.
-
However, the presence of nonfree software in the computer is an obstacle to verifying that the computer is loyal, or making sure it remains so.
-
For instance, the AMT functionality in recent Intel processors runs nonfree software that can talk to Intel remotely. Unless disabled, this makes the system disloyal.
-
The computer always permits you to analyze the operation of a program that is running.
-
This entails that the computer rejects remote attestation, that is, that it does not permit other computers to determine over the network whether your computer is running one particular software load. Remote attestation gives web sites the power to compel you to connect to them only through an application with DRM that you can't break, denying you effective control over the software you use to communicate with them.
-
When the computer communicates using any given protocol, it will support doing so, without prejudice, via whatever code you choose (assuming the code implements the intended protocol), and it will do nothing to help any other part of the Internet to distinguish which code you are using or what changes you may have made in it, or to discriminate based on your choice.
-
-
en.wikipedia.org en.wikipedia.org
-
Free/Open Licenses Non-free Licenses
.
-
-
en.wikipedia.org en.wikipedia.org
-
Free and open-source licenses use these existing legal structures for an inverse purpose
-
-
www.gnu.org www.gnu.org
-
opendefinition.org opendefinition.org
-
Creative Commons NonCommercial licenses (by-nc-*) do not support the OD 1.1#8., “No Discrimination Against Fields of Endeavor”, as they exclude usage in commercial activities.
-
-
opendefinition.org opendefinition.org
-
Broadly speaking, an open license is one which grants permission to access, re-use and redistribute a work with few or no restrictions.
Tags
Annotators
URL
-
-
en.wikipedia.org en.wikipedia.org
-
Opponents often state that this technology will be used primarily to enforce digital rights management policies (imposed restrictions to the owner) and not to increase computer security.
-
TC is controversial as the hardware is not only secured for its owner, but also against its owner, leading opponents of the technology like free software activist Richard Stallman to deride it as "treacherous computing"
-
The law in many countries allows users certain rights over data whose copyright they do not own (including text, images, and other media), often under headings such as fair use or public interest. Depending on jurisdiction, these may cover issues such as whistleblowing, production of evidence in court, quoting or other small-scale usage, backups of owned media, and making a copy of owned material for personal use on other owned devices or systems. The steps implicit in trusted computing have the practical effect of preventing users exercising these legal rights.
-
-
github.com github.com
-
"please" and "thanks"
-
Provide a complete description of the issue. If it works on A but not on B and others have to ask you: "so what is different between A and B" you are wasting everyone's time.
-
Introduction of a lockfile: true/filename mechanism to prevent multiple schedulers from executing
-
So you need help. People can help you, but first help them help you, and don't waste their time.
-
I avoid running -d in development mode and bother about daemonizing only for production deployment.
-
There is the handy rails server -d that starts a development Rails as a daemon. The annoying thing is that the scheduler as seen above is started in the main process that then gets forked and daemonized. The rufus-scheduler thread (and any other thread) gets lost, no scheduling happens.
-
Using rufus-scheduler with Passenger or Unicorn requires a bit more knowledge and tuning, gently provided by a bit of googling and reading
-
I don't know what this Ruby thing is, where are my Rails? I'll drive you right to the tracks.
-
Go read how to report bugs effectively, twice. Update: help_help.md might help help you.
.
-
similar gems
-
Rufus-scheduler (out of the box) is an in-process, in-memory scheduler. It uses threads. It does not persist your schedules. When the process is gone and the scheduler instance with it, the schedules are gone.
Tags
- provide a detailed description
- respect for people's time
- don't waste their time
- daemons
- important point
- fun wording
- anticipate their questions and provide the information without them needing to ask for it
- development vs. production
- picturesque speech
- courtesy
- locking (computing)
- help them help you
- fork: doesn't copy threads
- caveat
- don't make them ask
- funny
- list of similar projects
- fork (process)
Annotators
URL
-
-
en.wikipedia.org en.wikipedia.org
Tags
Annotators
URL
-
-
www.mikeperham.com www.mikeperham.com
-
-
Log to stdout. Shut down on TERM/INT. Reload config on HUP. Provide the necessary config file for your favorite init system to control your daemon.
-
Your application code should not be dealing with PID files, log redirection or other low-level concerns.
-
Let your operating system handle daemons, respawning and logging while you focus on your application features and users.
-
This makes developing a modern daemon much easier. The init config file is what you use to configure logging, run as a user, and many other things you previous did in code. You tweak a few init config settings; your code focuses less on housekeeping and more on functionality.
-
For years developers have followed the same arcane dozen steps to create a long-lived daemon process on Unix-based systems. These steps were state of the art in 2000 but they are no longer best practice today.
-
Less system administration, easier debugging, simpler code, all because you leveraged the init system to do the work for you!
Tags
- focus on the main functionality
- do one thing and do it well
- keep it simple
- boilerplate
- newer/better ways of doing things
- leverage library/tool to do something for you
- init system: let it handle all that
- focus
- init system
- making it easy to do the right thing
- daemons
- core logic
- minimal requirements
- requirements
- it's your responsibility to handle that
- focus on the high-level design, not on the low-level details
- simple
Annotators
URL
-
-
www.mikeperham.com www.mikeperham.com
-
-
The beauty of runit is its brevity and simplicity
-
Unfortunately newer init systems like systemd have become increasingly complex to handle more desktop-focused requirements. Here’s a list of systemd APIs: does having 100s of public API functions and commands inspire confidence in its reliability?
-
I can firmly recommend runit if you want a server-focused, reliable init system based on the traditional Unix philosophy.
-
Reliability of the init system is paramount so simplicity is a key attribute.
-
-
stackoverflow.com stackoverflow.com
-
But fork does not copy the parent process's threads. Thus locks (in memory) that in the parent process were held by other threads are stuck in the child without owning threads to unlock them, ready to cause a deadlock when code tries to acquire any of them. Also any native library with forked threads will be in a broken state.
-
So fork is fast, unsafe, and maybe bloated.
-
spawn starts a Python child process from scratch without the parent process's memory, file descriptors, threads, etc. Technically, spawn forks a duplicate of the current process, then the child immediately calls exec to replace itself with a fresh Python, then asks Python to load the target module and run the target callable.
-
-
-
blog.nodejitsu.com blog.nodejitsu.com
-
Did you actually fix a known issue? Let the author know about it.
-
Want to really annoy an open-source maintainer? Then ignore any communication channels they have setup for support.
-
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.
-
Developers want to improve their project. If you find an issue, bring it up. If it's a valid concern, the author will probably want to have it fixed. In many cases, the author will consider it a valid issue, but simply not have the personal time or need to address it immediately. This is where open-source is great. Just fork the project and fix it
-
Does something about a project really bother you? Does the author not care as much about it as you do?
.
-
On many occasions, I've opened up requests for support in the form of a Github pull request. This way, I am telling the author: I have found a potential problem with your library, here is how I fixed it for my circumstance, here is the code I used for reference. You get extra internet points if you open the pull request with: "I don't expect this pull request to get merged, but I wanted to you show you what I did".
-
Not everyone has time to adhere to the specific coding styles for a project, so if you can't do a full blown pull-request, there is NOTHING wrong with opening a pull-request that only has the intention of showing the author how you solved the problem.
-
There are no refunds for open-source. If you go in with the attitude that you are owed something, you will be thoroughly disappointed.
-
On behalf of all open-source developers and project maintainers, I ask you try and be polite the next time you ask for support. Try to remember that there is a real human being on the other side of the screen, and they actually want to help you.
-
Don't assume that because you opened up a pull request, that the author will accept it. There are many reasons that a maintainer might choose to not merge in your specific patch, many of which have nothing to do with you. If your patch isn't accepted, try to assume it's for a valid technical reason and not because the author hates you.
-
If you feel there has been an oversight, it's okay to not give up. As long as you are being logical and open to other people's views, you will find that you might learn something new, or even teach something to the maintainer.
-
Don't get upset, rejection is normal
-
If the author has taken the time to write unit tests for the project, you REALLY need to confirm the unit tests work before trying to get support.
-
If the information you need isn't covered in the documentation, let the author know. They probably will want to add this information so other people don't ask the same question.
-
The point is, take the time to actually research if the maintainer has setup a specific channel for support.
-
You need to understand that the person you are reaching out to has probably spent 100s of hours working on this project, for free. They do not owe you anything. The maintainers are extending a courtesy by giving away their work for free and then making themselves available to support it. The point is, you should try and be nice when filing for support. The maintainer of the project has literally no obligation to help you.
Tags
- read the source code
- create merge request: even something unfinished or proof of concept is better than nothing
- support: use the correct/designated channels/forums
- support: where to ask for help
- let them know
- maintainer: limited time
- documentation
- waiting for someone else to fix it
- support: providing for free
- be helpful
- communicating with author/maintainer
- gratitude for people's time
- rejection is normal/common
- open-source: developed by volunteers
- setting expectations
- create merge request: to share/communicate an idea, without expectation that it will get merged
- respect
- rejecting a proposal/change request/pull request
- if they've taken the time to...
- something is better than nothing
- don't take it personally
- do your own research
- communication channels/methods
- maintainer: not enough time to do/fix everything they would like
- they don't owe you anything
- courtesy
- maintainer: wants to improve software/project
- using merge request to ask question
- using merge request to bring attention to something / start a conversation
- fix it yourself
- help them help you
- don't be lazy
- feeling entitled
Annotators
URL
-
-
www.chiark.greenend.org.uk www.chiark.greenend.org.uk
-
input
-
So tell them exactly what you did. If it's a graphical program, tell them which buttons you pressed and what order you pressed them in. If it's a program you run by typing a command, show them precisely what command you typed.
-
Providing your own diagnosis might be helpful sometimes, but always state the symptoms. The diagnosis is an optional extra, and not an alternative to giving the symptoms.
-
If you give the programmer a long list of inputs and actions, and they fire up their own copy of the program and nothing goes wrong, then you haven't given them enough information.
-
-
gist.github.com gist.github.com
-
-
Try to avoid saying "It doesn't work", sentences like "it doesn't produce any output" are far better.
-
That's not enough to help you.
-
-
pythonspeed.com pythonspeed.com
-
In particular, one thing that fork() doesn’t copy is threads. Any threads running in the parent process do not exist in the child process.
-
-
it’s time for a deep-dive into Python brokenness and the pain that is POSIX system programming, using exciting and not very convincing shark-themed metaphors!
-
A conundrum wherein fork() copying everything is a problem, and fork() not copying everything is also a problem.
may not actually be a dilemma, if there is a 3rd option...
-
-
stackoverflow.com stackoverflow.com
-
Disable all observers in your test suite by default. They should not be complicating your model tests because they should have separate concerns anyway. You don't need to unit test that observers actually fire, because ActiveRecord's test suite does that, and your integration tests will cover it.
-
I emphatically disagree with BlueFish about observers being difficult to properly unit test. This is precisely the biggest point that distinguishes them from lifecycle callbacks: you can test observers in isolation, and doing so discourages you from falling into many of the state- and order-heavy design pitfalls BlueFish refers to (which again I think is more often true of lifecycle callbacks).
-
Rails' observers were partly inspired by aspect-oriented programming -- they're about cross-cutting concerns. If you're putting business logic in observers that is tightly coupled to the models they're observing, you're doing it wrong IMO.
Tags
- tightly coupled
- lifecycle callbacks
- good policy/practice/procedure
- testing
- software development: code organization: where does this code belong?
- aspect-oriented programming
- testing: only test the thing you're trying to test
- observer pattern
- testing: avoid over-testing: don't test the same thing in many different tests
- separation of concerns
- problems
Annotators
URL
-