- Mar 2021
-
github.com github.com
-
What is the point of avoiding the semicolon in concat_javascript_sources
For how detailed and insightful his analysis was -- which didn't elaborate or even touch on his not understanding the reason for adding the semicolon -- it sure appeared like he knew what it was for. Otherwise, the whole issue would/should have been about how he didn't understand that, not on how to keep adding the semicolon but do so in a faster way!
Then again, this comment from 3 months afterwards, indicates he may not think they are even necessary: https://github.com/rails/sprockets/issues/388#issuecomment-252417741
Anyway, just in case he really didn't know, the comment shortly below partly answers the question:
Since the common problem with concatenating JavaScript files is the lack of semicolons, automatically adding one (that, like Sam said, will then be removed by the minifier if it's unnecessary) seems on the surface to be a perfectly fine speed optimization.
This also alludes to the problem: https://github.com/rails/sprockets/issues/388#issuecomment-257312994
But the explicit answer/explanation to this question still remains unspoken: because if you don't add them between concatenated files -- as I discovered just to day -- you will run into this error:
(intermediate value)(...) is not a function at something.source.js:1
, apparently because when it concatenated those 2 files together, it tried to evaluate it as:
({ // other.js })() (function() { // something.js })();
It makes sense that a ; is needed.
-
And we shave off 6 or so seconds, that is huge.
-
Since the common problem with concatenating JavaScript files is the lack of semicolons, automatically adding one (that, like Sam said, will then be removed by the minifier if it's unnecessary) seems on the surface to be a perfectly fine speed optimization.
-
-
github.com github.com
-
Sprockets 4: The effect of config.assets.debug does not match the rails documentation.
-
concatenation still occurs.
-
-
github.com github.com
-
I'm kinda stuck at the moment, going around in circles. Everything is really heavily coupled. I would like to get to the point where no load is called from within processors, but i'm not sure if that's possible. Currently the API and the caching strategies are fighting me at every step of the way. I have a branch where i'm hacking through some refactoring, no light at the end of the tunnel yet though :(
-
For the $$$ question, nothing comes to mind. These problems i'm hitting up against are larger than a contractor could solve in a few hours of work (which would be hundreds/thousands of dollars).
-
Progress is slow though. I want to change how assets are loaded, the current implementation of "pipelines" is challenging to work with.
-
-
github.com github.com
-
still compiles everything into single CSS/JS files
I noticed this too
-
-
-
it's super hard to test master because i have no idea which gems need to be updated. is there a guide on how to take a rails 4.2 project to master sprockets without everything mysteriously exploding? ill try to make a repro case but its hard to tell where to even start
-
-
github.com github.com
-
I don't myself understand what's going on, it clearly has something to do with source maps, but may also have to do with other sprockets changes.
-
I don't really understand what's going on. Clearly source maps have something to do with it -- a source map feature that doesn't handle SCSS very well, apparently.
-
Is there a PR to... something? sassc-rails? That would make the patch not necessary? (I don't know if there's any good way to monkey-patch that in, I think you have to fork? So some change seems required...) Should the defaults be different somehow? This is very difficult to figure out.
-
Is there a PR to... something? sassc-rails?
-
I'm not sure about all consequences of my change and this is very complex.
Tags
- hard to figure out where the problem lies / how to solve the problem / where to even begin
- difficult/hard problem
- admit the limitations/shortcomings of your argument/benefits
- where (which project) do I even report this problem/bug? (whose responsibility is it?)
- don't understand even what's going on, let alone how to go about finding/identifying/fixing the problem
Annotators
URL
-
-
www.html5rocks.com www.html5rocks.com
-
Validating forms has notoriously been a painful development experience. Implementing client side validation in a user friendly, developer friendly, and accessible way is hard. Before HTML5 there was no means of implementing validation natively; therefore, developers have resorted to a variety of JavaScript based solutions.
-
-
www.kickstarter.com www.kickstarter.com
-
Redesigning the pieces was very difficult work, because traditional pieces have 4 specialties below.
-
Shogi is a classic game. I know many people who want to play Shogi, but the Kanji on the pieces makes it too hard to master. I have designed this Shogi with icons so anybody can learn it easily.
-
-
trailblazer.to trailblazer.to
-
the Activity component is the heart of TRB
-
- Feb 2021
-
travis-ci.com travis-ci.com
-
Maintaining the builds of your repositories should be everyone’s job. Instead of relying on that one build person in the team, Travis CI makes infrastructure and configuration a team responsibility.
-
-
www.chemistryworld.com www.chemistryworld.com
-
Those things are someone else’s job, not ours, you know.
-
-
www.schneems.com www.schneems.com
-
Instead of having this confusing maze of lambdas, regexes, and strings, we could, in theory, introduce a single entry point of configuration for Sprockets to use, and in that file declare all assets we wanted to compile. Well, that’s exactly what the manifest.js file is.
-
-
sobolevn.me sobolevn.me
-
we also wrap them in Failure to solve the second problem: spotting potential exceptions is hard
-
-
en.wikipedia.org en.wikipedia.org
-
It turns out that, given a set of constraints defining a particular problem, deriving an efficient algorithm to solve it is a very difficult problem in itself. This crucial step cannot yet be automated and still requires the insight of a human programmer.
-
-
www.nytimes.com www.nytimes.com
-
I wanted to keep reviewing restaurants, but I didn’t want to go back into their dining rooms both because of the risk and because I was afraid readers would take it as an all-clear signal. When the governor halted indoor dining again in December, my selfish reaction was relief. Then I briefly got depressed. How would restaurants survive? And how would I keep writing about them?One answer had already started to appear on sidewalks and streets in the form of small greenhouses, huts, tents and yurts. Inside these personal dining rooms, you can (and should) sit just with people from your own household. If the restaurant thoroughly airs the space out between seatings, any germs you breathe in should be the same ones that are bouncing around your home. Many restaurants instruct their servers to stay outside the structures as much as possible, though some don’t.
Syntax of question and answer reveals itself again. His doubts and negativity are addressed within the first highlighted paragraph with a question coming to Pete's mind. He realized his influence as a critic and decided to take the right step to prevent anything bad from occurring. Despite his sacrifice, the next paragraph he discusses the clever solutions restaurants had come up with which solved his problem for the most part. This description underlines yet more change that brought upon good things, which is the main idea he is relating to the food scene. He creates a comparison between an at home setting along with the solutions restaurants have come up with to further emphasize his point of safety amidst COVID.
-
-
railscasts.com railscasts.com
-
It is difficult to come up with content that is not extracted from a real application. Manufacturing scenarios to see if ideas have practical application turned out to be an exhasting and time consuming process.
-
-
www.infoworld.com www.infoworld.com
-
That's the whole point of an abstraction layer—to isolate your business logic from a subsystem's mechanics
-
-
papers.ssrn.com papers.ssrn.com
-
Nogués, X., Ovejero, D., Quesada-Gomez, J. M., Bouillon, R., Arenas, D., Pascual, J., Villar-Garcia, J., Rial, A., Gimenez-Argente, C., Cos, M. L., Rodriguez-Morera, J., Campodarve, I., Guerri-Fernandez, R., Pineda-Moncusí, M., & García-Giralt, N. (2021). Calcifediol Treatment and COVID-19-Related Outcomes (SSRN Scholarly Paper ID 3771318). Social Science Research Network. https://doi.org/10.2139/ssrn.3771318
-
-
github.com github.com
-
An additional usecase is where we would like to update multiple records
-
This can be useful in cases like multistep registration. Previously in # rails we used to stick all of the validations in the class and then we're # stuck validating them all everytime
-
-
-
However, sometimes actions can't be rolled back and it is unfortunately unavoidable. For example, consider when we send emails during the call to process. If we send before saving a record and that record fails to save what do we do? We can't unsend that email.
-
-
-
Aminpour, P., Gray, S. A., Singer, A., Scyphers, S. B., Jetter, A. J., Jordan, R., Murphy, R., & Grabowski, J. H. (2021). The diversity bonus in pooling local knowledge about complex problems. Proceedings of the National Academy of Sciences, 118(5). https://doi.org/10.1073/pnas.2016887118
-
-
apcontent.collegeboard.org apcontent.collegeboard.org
-
In many communities, it’s not just discrimination, but gender-based violence that keeps girls off the playing field.
This is the second problem that the article addresses. Violence in sports causes many problem for female players.
-
Similarly, in the sports arena, we see massive gaps in the prize money, sponsorships, facilities and equipment allocated to women athletes
This is the problem about unequal pay. However, this can't be changed because there isn't much people who are interested in women sports. This means that there wouldn't be enough money to pay the female players equally as male players.
-
At the same time, the world of sport remains plagued by many of the same gender inequalities that we see more broadly; issues such as unequal pay, gender-based violence, a lack of targeted investment and negative stereotypes and social norms
This is the problem that this article tackles.
-
-
isthereanydeal.com isthereanydeal.com
-
Report: This price didn't exist on the store This price did show on the store but the game could not be bought This was a very short price made by a mistake (glitch)
-
-
en.wikipedia.org en.wikipedia.org
-
github.com github.com
-
I don't see a way to hook into Devise's route mapping load process to add the action (several monkey patching attempts failed)
-
-
hilton.org.uk hilton.org.uk
-
Unlike naming children, coding involves naming things on a daily basis. When you write code, naming things isn’t just hard, it’s a relentless demand for creativity. Fortunately, programmers are creative people.
-
violates our expectation that hard things should be technical
-
Scalability is the problem you want to have, and sooner rather than later, but maintainability is the problem you’re definitely going to have, sooner or later.
Tags
- hard things in computer science
- good problem to have / problem you want to have
- scalability
- creativity
- technical problems
- difficult/hard problem
- quotable
- the activity of _
- frequently encountered (common) problem
- good analogy
- software development
- good point
- naming
- what programmers are like
- non-technical problems
- contrast
- well-written
- relentless
- maintainability
- creative
- requires/demands creativity
- naming things is hard
- problem you are definitely going to have
- creative people
- expectations
- programming
Annotators
URL
-
-
www.quora.com www.quora.com
-
So the hard and unsolvable problem becomes: how up-to-date do you really need to be?
-
After considering the value we place, and the tradeoffs we make, when it comes to knowing anything of significance, I think it becomes much easier to understand why cache invalidation is one of the hard problems in computer science
the crux of the problem is: trade-offs
-
the 2 hardest problems in computer science are essentially the 2 hardest problems of life in general, as far as humans and information are concerned.
Tags
- good question
- generalized explanation
- knowledge
- life in general
- trade-offs
- how good/perfect does it really need to be?
- difficult/hard problem
- main/key/central/essential/core thing/point/problem/meat
- good analogy
- cache invalidation is hard
- hard things in computer science
- good point
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
Yes, i'm trying to find the union of two relations
I guess that's what I needed too. How much of the time can a or() be converted to a union?
-
-
-
stackoverflow.com stackoverflow.com
-
You use grid-area, so the place for the side nav is allocated at start. If you hide (or even delete) the side nav, that won't change anything about this. You have to do a little trick: Set the width for the first column to 0 and change the grid-gap because otherwise you will have a (not needed) gap at the left.
-
-
- Jan 2021
-
askubuntu.com askubuntu.com
-
Setting up docker-ce
hanging
-
-
-
serverfault.com serverfault.com
-
it still hangs when installing
-
-
-
bugzilla.redhat.com bugzilla.redhat.com
-
Ok, fixed it by upgrading docker
-
-
stackoverflow.com stackoverflow.com
-
So, what I've discovered in a meanwhile. It was an ubuntu-docker issue. Recently I upgraded my ubuntu from 16.04 to 18.04. This change seems to be incompatible with the docker version I had, 1.11.0.
-
-
blog.linuxmint.com blog.linuxmint.com
-
1) QT Apps load very slow in startup (ex, qpdfview, Audacious), had to look at Ubuntu forums to find a solution installing kvantum and KvYAru theme, so this is solved at the moment; but the theme (SVG based, cannot modify it in a text file) have orange highlights, not consistent with Mint-Y theme, but it is the best option at the moment. This temporary solution I found was here: https://itectec.com/ubuntu/ubuntu-qt-apps-are-very-slow-to-load-in-xubuntu-20-04-when-export-qt_qpa_platformthemegtk2-is-enabled/
-
-
www.zdnet.com www.zdnet.com
-
I think some of the design details are insane (I dislike the binary logs, for example), but those are details, not big issues.
-
Systemd problems might not have mattered that much, except that GNOME has a similar attitude; they only care for a small subset of the Linux desktop users, and they have historically abandoned some ways of interacting the Desktop in the interest of supporting touchscreen devices and to try to attract less technically sophisticated users. If you don't fall in the demographic of what GNOME supports, you're sadly out of luck.
-
-
unix.stackexchange.com unix.stackexchange.com
-
css-tricks.com css-tricks.com
-
Situation: you have a single line of text in a flex child element. You don’t want that text to wrap, you want it truncated with ellipsis (or fall back to just hiding the overflow). But the worst happens. The unthinkable! The layout breaks and forces the entire flex parent element too wide. Flexbox is supposed to be helping make layout easier!
-
-
en.wikipedia.org en.wikipedia.org
-
n the mid-1920s, he had speech therapy for a stammer, which he learned to manage to some degree.
Tags
Annotators
URL
-
-
css-tricks.com css-tricks.com
-
Making literal grids. Like X columns with Y gap between them homegrown framework stuff. grid-gap is wonderful, as gutters are the main pain point of grid systems.
-
-
forums.theregister.com forums.theregister.com
-
I managed to remove it myself this morning...apparently it used to get it's hooks in so deep it was very difficult to remove the daemon as it interconnected with ubuntu-desktop for....reasons.
-
The strangest "quirk" I had was that I couldn't get the web browser to save a file directly to an attached, encrypted drive. Permissions problem. So I had to save to an interim folder then move it across by hand. Utter pain.
-
-
css-tricks.com css-tricks.com
-
I think you’re missing the spirit behind the classic “centering is hard” complaint in a couple of places, which, at least for me, always comes back to not knowing the height of the elements.
-
-
trumpwhitehouse.archives.gov trumpwhitehouse.archives.gov
-
There was not yet, formally speaking, an American people. There were, instead, living in the thirteen British colonies in North America some two-and-a-half million subjects of a distant king. Those subjects became a people by declaring themselves such and then by winning the independence they had asserted as their right.
- There were many American peoples. None of them were White.
- "those subjects became a people by declaring themselves such and then by winning the independence they had asserted as their right" - OK no. Quite a lot of people did not have the autonomy to "declare themselves" part of a people, and indeed were not recognized as such. There were also loyalists. And this idea of "a people" is...really complicated.
- While it's true that the first citizens of the United States were former British subjects, it is worth noting that a lot of other people lived in the current United States at the time who were tribal citizens, French colonists, Spanish colonists, and enslaved people who weren't considered citizens of anywhere.
-
-
github.com github.com
-
Basically the typescript compiler emits no code for interfaces, so webpack can not find them in the compiled module; except when a module consists of only interfaces. In that case the module will end up completely empty and then webpack will not investigate the exports.
-
-
callforcode.org callforcode.org
-
Call for Code (2020) Accept the 2020 Call for Code Global Challenge. Retrieved from:https://callforcode.org/challenge/?utm_content=buffere99fc&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer
-
-
covid-19.iza.org covid-19.iza.org
-
Grözinger. N., Irlenbusch ., B., Laske. K., Schröder., M (2020) Innovation and Communication Media in Virtual Teams – An Experimental Study. Institute of Labor Economics. https://covid-19.iza.org/publications/dp13218/
-
-
redfin.engineering redfin.engineering
-
They say that there are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors. Caching is what Service Workers do. It’s literally the #1 hard thing! … or maybe the #0 thing? Whatever. It’s hard.
-
Oh, silly me, that won’t work. We can’t update index.html at all, so we certainly can’t remove the call to register!
-
-
github.com github.com
-
But it doesn't work so I have to wrap slots in useless and interfering divs or spans like this: <Button fz="16" h="64" {...$$props}> <span slot="prepend"><slot name="prepend" /></span> <slot /> <span slot="append"><slot name="append" /></span> </Button>
It really doesn't work? I thought, from @tanhauhau's example, that it would, right?
-
-
github.com github.com
-
the behavior you want happen is actually a chicken and egg situation, you need to initialise FancyList in order to get the value for let:prop from the FancyList, however you can't initialise FancyList without the value of id which comes from within FancyList.
-
-
stackoverflow.blog stackoverflow.blog
-
There is also the concern of this effectively being a closed ecosystem where developers are paying other developers who themselves are paying other developers. This creates a cycle where not only is there no additional money exchanging hands but the money being shared is slowly decreased through things like processing fees. This is not a viable solution to the funding problem.
-
-
discourse.ubuntu.com discourse.ubuntu.com
-
« Half solved » because, hey, still it’s proprietary so who knows ? You have to trust the software editor then, it’s just moving the trust cursor.
-
-
guides.rubyonrails.org guides.rubyonrails.org
-
You may find that your application requires a layout that differs slightly from your regular application layout to support one particular controller. Rather than repeating the main layout and editing it, you can accomplish this by using nested layouts (sometimes called sub-templates).
-
-
css-tricks.com css-tricks.com
-
But of course, there are UX implications. For example, it can be harder to select the text, and the entire element needs fairly complex styling to create clear focus and hover states. There are also accessibility implications, like the fact that the content of the entire card is read before it is announced as a link.
-
- Dec 2020
-
-
Say I have a separate API server that provides content for a Sapper route. I could just query that API in my route's preload function, but if the content changes rarely, I don't want to incur that cost for every page load and would much rather cache responses from the API on the Sapper side.
-
-
github.com github.com
-
This is an opportunity to fix a bug: if you're on a page that redirects to a login page if there's no user object, or otherwise preloads data specific to that user, then logging out won't automatically update the page — you could easily end up with a page like HOME ABOUT LOG IN ----------------------------------------------------------------------------------------- Secret, user-specific data that shouldn't be visible alongside a 'log in' button:
-
-
thecodebarbarian.com thecodebarbarian.com
-
This pattern can be neater syntactically because declaring a variable in a try block with let scopes the variable to the try block.
-
- Nov 2020
-
stackoverflow.com stackoverflow.com
-
So, how does an SPA work? JavaScript loads in the browser and loads data from an API. Most of the rendering is done on the client Side. But search engine bots have a hard time indexing the page because it doesn't have much without JS.
-
-
blog.hubspot.com blog.hubspot.com
-
This scenario demonstrates one drawback of CSS: With all the style rules that need to be applied to multiple elements on multiple pages, things can get pretty redundant. And redundancy can eat up your time and cause friction whenever you need to change a color, font, or any other style aspect across your site.
-
-
github.com github.com
-
For use$ since svelte is never going to support actions for components, i designed something that reminds React hooks that will in some ways replace this feature.
Isn't that what use$ is trying to do already? How is that "something that reminds React hooks" any different? Will be interested to see...
-
-
-
If I understand the problem correctly, just changing the imports to point to svelte/internal isn't enough because they could still point to different packages depending on how your components are bundled. It solved your specific issue, but if you had two completely unrelated Svelte components compiled to vanilla javascript bundled with Svelte, you'd still hit issues with mismatching current_component when using slots or callbacks.
-
It sounds like another case of multiple svelte/internal modules? I think we need to look into reworking how svelte/internal keeps track of the current component since it breaks when mixing components not bundled with the app. It sounds like we need to find a way to pass Svelte's internal runtime state when instantiating components, since slots and callbacks end up mixing different svelte/internal together.
-
-
-
As mentioned in #2937, this is the sort of thing that happens when you have two copies of Svelte's internal scheduler running. If you're importing the compiled version of an external Svelte component into another Svelte component, this is what you end up with. There's a svelte field in package.json that's respected by rollup-plugin-svelte and which is intended to point at the uncompiled Svelte source, so that the external component can be bundled together with the main app, without any duplicated internals.
-
-
github.com github.com
-
When using the exact same Button code, the binding only works for the local Svelte module.
-
-
-
www.youtube.com www.youtube.com
-
If everyone did this, the repair shops would be out of business.
-
-
mywiki.wooledge.org mywiki.wooledge.org
-
true && { echo true; false; } || { echo false; true; }
-
-
github.com github.com
-
It is impossible to rebuild the base from the Dockerfile as the 3rd party dependencies have changed significantly since 8 months ago when the base was last built. The tags for my base image have been overwritten and I can only restore them from a descendant image. With Docker 1.8 I simply pulled the descendant image, tagged the base layer and I was done. With Docker 1.10+ I'd need to save, then manually construct the base image descriptor and reload it. Doable but sad that it's far more complex.
-
Unfortunately, this image was built months ago. No one has the build any more. We are left with a descendant image that has all the original content but on lower layers.
-
-
stackoverflow.com stackoverflow.com
-
that's the only really accurate answer to the question: all the others propositions run an "almost same" container, but they forget the volumes, env, UIDs,
-
-
www.the-art-of-web.com www.the-art-of-web.com
-
It isn't really compatible with HTML5's input "required" attribute. If an input has the required tag, and you press the submit buton, and the field is empty the browser will fire the "Please fill out this field" message, BUT, you also just disabled that submit button. So in effect, the form can no longer be submitted.
-
-
stackoverflow.com stackoverflow.com
-
The redirect-after-post pattern is nice, but it doesn't solve this problem. The problem is either stupid users who double-click the submit button or impatient users who re-submit the form before the page has loaded. Both of these cases take place before the redirect-after-post pattern applies.
-
-
stackoverflow.com stackoverflow.com
-
github.com github.com
-
The resolve.alias option is used to make sure that only one copy of the Svelte runtime is bundled in the app, even if you are npm linking in dependencies with their own copy of the svelte package. Having multiple copies of the internal scheduler in an app, besides being inefficient, can also cause various problems.
-
-
-
It won't work in all use cases, but it's better than the div soup.
-
I run into this on almost every project and end up doing this as a workaround: :global([slot="content"]) This allows me to style that extra div in the component that contains the slots but it would be super nice to have <MyComponent slot="content"/> and eliminate that extra div
-
If this is getting implemented, I think I'll love to see both implemented. I can see a lot of use cases where I would like to encapsulate the component with additional wrappers and in another scenarios I would like to just use the component. Now i work around this using empty div but then at times it breaks the structure because of the div element and I'll have to add more class utilities to make it work. This will be a great addition for Svelte.
-
I don't like adding unnecessary divs.
-
-
dylanvann.com dylanvann.com
-
const useEffect = (subscribe) => ({ subscribe })
-
- Oct 2020
-
github.com github.com
-
www.theguardian.com www.theguardian.com
-
Geddes, L. (2020, October 21). Women aged 50-60 at greatest risk of ‘long Covid’, experts suggest. The Guardian. https://www.theguardian.com/world/2020/oct/21/women-aged-50-60-at-greatest-risk-of-long-covid-experts-suggest
-
-
www.basefactor.com www.basefactor.com
-
If you want to implement a form with a superb User Experience, you have to take care of many variables:
Tags
- can't keep entire system in your mind at once (software development) (scope too large)
- user experience
- difficult/hard problem
- form design
- easy to get wrong
- a lot of things to consider
- too hard/difficult/much work to expect end-developers to write from scratch (need library to do it for them)
Annotators
URL
-
-
github.com github.com
-
final-form.org final-form.org
-
Doing a HOC properly, as a library should, with hoisted statics and displayName and ref, etc., is a hassle and would add unnecessary bulk.
-
-
-
you took 4 hours to respond, so I implemented it myself
-
-
github.com github.com
-
-
I'm suggesting this is a problem generally. Users will not think of being out of sync with props
-
-
medium.com medium.com
-
The crux of this pattern is to introduce an index.js and internal.js file.
-
This does solve the problem, but now our project and API is structured differently. In large projects it might be very hard to determine how to pull this trick off, or even impossible!
-
Examples of this include: requiring base classes or reading from imported variables that have not been initialized yet.
-
as soon as you have a (indirect) circular dependency, you might be interacting with a half loaded module in your code.
Tags
- equivalent
- side effects
- main/key/central/essential/core thing/point/problem/meat
- difficult/hard problem
- good example
- hard to find
- impossible
- good point
- key point
- circular dependency
- code organization: internal module pattern
- refactoring
- not:
- symptom of bug/problem
- technically impossible
- illustrating problem before showing solution
- hard to see
Annotators
URL
-
-
medium.com medium.com
-
These are fine and do not cause any issues.
-
-
svelte.dev svelte.dev
-
whenValueChanges whenValueBecomes
-
-
stackoverflow.com stackoverflow.com
-
I run s.search() by typing into an input box, and if I type gibberish very quickly, the console prints out "making search request" on every key press, so many times per second -- indicating that it hasn't been debounced at all.
-
-
ponyfoo.com ponyfoo.comPony Foo1
-
Sometimes we can’t implement a solution that’s fully spec-compliant, and in those cases using a polyfill might be the wrong answer. A polyfill would translate into telling the rest of the codebase that it’s okay to use the feature, that it’ll work just like in modern browsers, but it might not in edge cases.
-
-
svelte.dev svelte.dev
-
You can see that behaviour in this example. Select a range of text and hit the tab key. Because the <textarea> value changes, the current selection is cleared and the cursor jumps, annoyingly, to the end.
-
-
learn-us-east-1-prod-fleet01-xythos.s3.amazonaws.com learn-us-east-1-prod-fleet01-xythos.s3.amazonaws.com
-
The educator’s role in self-directed learning
Fostering self-directed learning through strategy is discussed by Bailey et al. (2019) in chapter 1 of “Self-Directed Learning for the 21st Century: Implications for Higher Education.” The authors review the changing role of the educator and the learner based on respective self-directed teaching strategies (problem-based learning, cooperative learning, process-oriented learning) and the learner’s propensity for self-directed learning. In addition to providing principles to promote self-directed learning, the Grow and Borich models for implementing said learning were briefly reviewed. 8/10
-
-
www.researchgate.net www.researchgate.net
-
Creativity, Self-Directed Learning and the Architecture of Technology Rich Environments
(Click Download full-text PDF to read). In this article, the authors reflect on the need to cultivate creativity and self-directed learning through transition from conventional course design to a more comprehensive design, which includes technology, problem solving, and collaboration. Moreover, the authors contend that measures of success should not be limited to traditional assessment methods. Barriers to the success of a self-directed design within the typical learning environment are mentioned. Through case study review, the authors demonstrate that strategic course design (educator, setting, technology, expectations) fosters development of the self-directed learner. Dynamics supporting the success of the technology-rich, creative, self-directed design were included. With a methodological approach that incorporates technology, problem-solving, teamwork, and educator support, self-directed behaviors emerge.(8/10)
-
-
svelte.dev svelte.dev
-
Just like elements can have children... <div> <p>I'm a child of the div</p> </div>...so can components. Before a component can accept children, though, it needs to know where to put them. We do this with the <slot> element.
-
-
-
Using the keyboard arrows, navigate down the suggestion list to the item(s) you want to remove from the Chrome autofill suggestions With the suggestion highlighted, use the appropriate keystroke sequence to delete the Chrome suggestion:
Linux: Shift + Delete
-
-
-
One of the primary tasks of engineers is to minimize complexity. JSX changes such a fundamental part (syntax and semantics of the language) that the complexity bubbles up to everything it touches. Pretty much every pipeline tool I've had to work with has become far more complex than necessary because of JSX. It affects AST parsers, it affects linters, it affects code coverage, it affects build systems. That tons and tons of additional code that I now need to wade through and mentally parse and ignore whenever I need to debug or want to contribute to a library that adds JSX support.
-
The only "issue" it has is that its unfamiliar. People have been working with HTML for years and are comfortable with it. That's basically the only reason that people find it more readable. If you make an effort to spend sometime with hyperscript, it becomes as familiar and readable as jsx.
Tags
- can't keep entire system in your mind at once (software development) (scope too large)
- implementation complexity
- fundamental
- unintended consequence
- semantics (of programming language)
- mental bandwidth
- mentally filter/ignore
- readability
- engineers
- not a real/actual problem
- unfamiliar
- complexity
- too complicated
- familiar syntax
- readability: depends on familiarity
- primary task/job/responsibility
- syntax
- comfortable because familiar
- for-reaching consequences
- avoid complexity
- engineering (general)
- subjective
- investing time to really understand something
- high-cost changes
- infectious problem
- the cost of changing something
Annotators
URL
-
-
github.com github.com
-
The primary motivation behind virtual-dom is to allow us to write code independent of previous state. So when our application state changes we will generate a new VTree. The diff function creates a set of DOM patches that, based on the difference between the previous VTree and the current VTree, will update the previous DOM tree to match the new VTree.
annotation meta: may need new tag: for: "code independent of previous state."
annotation meta: may need new tag: for: diffs other than source/text code diffs (in this case diffs between virtual DOM trees)
-
Manual DOM manipulation is messy and keeping track of the previous DOM state is hard. A solution to this problem is to write your code as if you were recreating the entire DOM whenever state changes. Of course, if you actually recreated the entire DOM every time your application state changed, your app would be very slow and your input fields would lose focus.
-
-
softwareengineering.stackexchange.com softwareengineering.stackexchange.com
-
For a long time I considered default values to be a "pure evil" thing, something that "cloaks the catastrophe" and results in a very hard do find bugs.
-
-
leiss.ca leiss.ca
-
complexity in financial innovations is itself an important risk factor for systemic failure in the financial sector
Tags
Annotators
URL
-
-
medium.com medium.com
-
It adds a few constructs to the language to solve one of the most complex problems in UI development — state management.
-
-
-
Before MDX, some of the benefits of writing Markdown were lost when integrating with JSX. Implementations were often template string-based which required lots of escaping and cumbersome syntax.
-
-
tech.ebayinc.com tech.ebayinc.com
-
Offsetting the rules of a logic-less template requires a lot of helper methods.
-
-
files.eric.ed.gov files.eric.ed.gov
-
Features and characteristics of problem based learning
The problem based learning (PBL) strategy is defined. The strategy is defined as an iterative process with specific goals (knowledge, problem-solving skills, self-directed skills, collaboration, motivation for learning). The authors go on to describe the advantages, disadvantages, limitations, and considerations for the use of PBL. Integration of technology allows for new opportunities in education and training across disciplines. (7/10)
-
-
techandcurr2019.pressbooks.com techandcurr2019.pressbooks.com
-
Project Based Learning to Develop 21st Century Competencies
In this chapter, the author defines problem based learning (PBL) and highlights the benefits to the learner. In addition to incorporating technology to enhance learning, the article reinforces the need to foster the softer skills that may be developed as a result of PBL (teamwork, accountability, problem-solving, creative thinking, risk-taking, communication skills, and critical thinking skills). Though the data is limited, and there are inherent challenges, PBL is of value in course design. (8/10)
-
-
www.hsj.gr www.hsj.gr
-
An Evaluation of Problem-based Learning Supported by Information and Communication Technology: A Pilot Study
(Under "Viewing Options", select PDF.) In this article, Ernawaty and Sujono (2019) summarize results of a study funded by the Research and Higher Education Directorate of Indonesia. The study aimed to evaluate the cogency of information and communication technologies (ICTs) in problem based learning (PBL) and traditional teaching methods (TTM) based upon learner test scores. The concepts of PBL, TTM, and implications of ICTs are briefly reviewed. Results of the study revealed that PBL with the support of an ICT yielded the highest test scores. (6/10)
-
-
reisub0.github.io reisub0.github.io
-
Most people seem to follow one of two strategies - and these strategies come under the umbrella of tree-traversal algorithms in computer science.
Deciding whether you want to go deep into one topic, or explore more topics, can be seen as a choice between two types of tree-traversal algorithms: depth-first and breadth-first.
This also reminds me of the Explore-Exploit problem in machine learning, which I believe is related to the Multi-Armed Bandit Problem.
-
- Sep 2020
-
iriss.stanford.edu iriss.stanford.edu
-
2020 Conference on Computational Sociology | IRiSS. (n.d.). Retrieved 30 September 2020, from https://iriss.stanford.edu/css/conferences/2020-conference-computational-sociology
-
-
-
Currently, I can only do this with some ugly JS, by wrapping the <slot> in a div and then selecting all direct children of that div (div>*). But this fix/solution also makes me face a problem: The <div> partially destroys the layout/design compared to when not using that div wrapper.
-
-
-
the ability to pass around element names as strings in place of components
-
-
github.com github.com
-
No, this is about using a string to create an element of that tag name.
-
-
-
-
I would hope for it to come with React-like behavior where I could pass in a string (like div or a) and have it show up as a normal div/a element when the child component used it.
-
-
twitter.com twitter.com
-
Daniël Lakens on Twitter. (n.d.). Twitter. Retrieved September 23, 2020, from https://twitter.com/lakens/status/1308115862247952386
-
-
github.com github.com
-
Please focus on explaining the motivation so that if this RFC is not accepted, the motivation could be used to develop alternative solutions. In other words, enumerate the constraints you are trying to solve without coupling them too closely to the solution you have in mind.
-
A huge part of the value on an RFC is defining the problem clearly, collecting use cases, showing how others have solved a problem, etc.
-
An RFC can provide tremendous value without the design described in it being accepted.
Tags
- value
- contribution guidelines: should explain motivation for change
- defining the problem clearly is as valuable coming up with specific implementation/solution
- answer the "why?"
- iterative process: building on previous attempts/work
- iterative process
- okay for proposal to not be accepted
- defining the problem clearly
Annotators
URL
-
-
github.com github.com
-
This has the merit of simplicity and obviousness, but it's not particularly ergonomic: it signals that we don't consider component themeability to be a problem worth solving properly.
-
-
github.com github.com
-
The problem with the export { className as class } approach is that the classes defined in the parent/calling component still have to be marked as being global otherwise they get removed.
-
-
css-tricks.com css-tricks.com
-
But because that final CSS file is probably minified (all whitespace removed), DevTools is likely to tell us that we’ll find the declaration we’re looking for on line 1! Unfortunate, and not helpful for development.
-
-
svelte.dev svelte.dev
-
And you don't have to find solutions to the additional problems that CSS-in-JS introduces.
-
-
psyarxiv.com psyarxiv.com
-
Racine, S. E., Miller, A. E., Mehak, A., & Trolio, V. (2020, September 14). Examining Risk and Protective Factors for Psychological Health during the COVID-19 Pandemic. https://doi.org/10.31234/osf.io/ys8fn
-
-
github.com github.com
-
When you visit location /one and the server redirects you to location /two, you expect the browser’s address bar to display the redirected URL. However, Turbolinks makes requests using XMLHttpRequest, which transparently follows redirects. There’s no way for Turbolinks to tell whether a request resulted in a redirect without additional cooperation from the server. To work around this problem, send the Turbolinks-Location header in the final response to a visit that was redirected, and Turbolinks will replace the browser’s topmost history entry with the value you provide.
-
-
langserver.org langserver.org
-
LSP creates the opportunity to reduce the m-times-n complexity problem of providing a high level of support for any programming language in any editor, IDE, or client endpoint to a simpler m-plus-n problem.
-
- Aug 2020
-
julian.digital julian.digital
-
With more and more productivity apps creating their own messaging systems, users suddenly face a new problem: Multiple inboxes. You now have to check notifications in Github, Trello, Google Docs and half a dozen (if not more) other tools in your productivity stack.
The multiple inbox problem.
-
-
searchuserinterfaces.com searchuserinterfaces.com
-
Research shows that people are highly likely to revisit information they have viewed in the past and to re-issue queries that they have written in the past (Jones et al., 2002, Milic-Frayling et al., 2004). In one large study, 40% of people's search results clicks were on pages that they had clicked on before over the course of a year, with 71% of these using the identical query string as before (Teevan et al., 2006a). In a survey associated with this study, 17% of interviewees reported “not being able to return to a page I once visited” as one of the “biggest problems in using the web.” Therefore, allowing search over recently viewed information can improve a user's productivity (Dumais et al., 2003). Web browsers, as opposed to search engines, can provide much of this functionality. For example, the Chrome Web browser supports information revisiting by showing a grid of thumbnail images representing a user's most frequently visited web pages, and the drop-down menu from the many browser Web address bars shows recently visited pages. Search engines themselves can provide query history, as well as history of previously selected pages if the user agrees to having that information recorded. The PubMed bioscience journal service shows recently issued queries and visited documents in a simple history display (see Figure 1.6). Similarly, many shopping Web site show recently viewed items in a graphical form. Thumbnail images have also been experimented with in search results listing, both for reminding searchers of previously visited pages and for suggesting information about the hit, such as its genre.
-
-
covid-19.iza.org covid-19.iza.org
-
Grözinger. N., Irlenbusch. B., Laske. K., Schröder. M., (2020). Innovation and Communication Media in Virtual Teams – An Experimental Study. Institute of Labor Economics. Retrieved from: https://covid-19.iza.org/publications/innovation-and-communication-media-in-virtual-teams-an-experimental-study/
-
-
psyarxiv.com psyarxiv.com
-
Rezapour, T., Assari, S., Kirlic, N., Vassileva, J., & Ekhtiari, H. (2020). Enhancing Cognitive Resilience in Adolescence and Young Adults: A Neuroscience-informed Approach [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/enrv9
-
- Jul 2020
-
news.sky.com news.sky.com
-
Coronavirus: The inside story of how UK’s “chaotic” testing regime “broke all the rules.” (n.d.). Sky News. Retrieved July 17, 2020, from https://news.sky.com/story/coronavirus-the-inside-story-of-how-uks-chaotic-testing-regime-broke-all-the-rules-12022566
-
-
www.youtube.com www.youtube.com
-
Jeff Howe - Crowdsourcing and the Crisis: Collective Intelligence in the Age of Covid-19 (ACM CI’20). (n.d.). Retrieved June 25, 2020, from https://www.youtube.com/watch?v=POPMMHyIoS0
-
-
psyarxiv.com psyarxiv.com
-
Miller, J. G., Chahal, R., Kirshenbaum, J. S., Ho, T. C., Gifuni, A. J., & Gotlib, I. (2020). Heart Rate Variability Moderates the Link Between COVID-19 Stress and Emotional Problems in Adolescents: Evidence for Differential Susceptibility [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/mp7wt
-
- Jun 2020
-
blogs.lse.ac.uk blogs.lse.ac.uk
-
Long read: Cultural evolution, Covid-19, and preparing for what’s next. (2020, April 22). LSE Business Review. https://blogs.lse.ac.uk/businessreview/2020/04/22/long-read-cultural-evolution-covid-19-and-preparing-for-whats-next/
Tags
- problem
- challenge
- decision making
- COVID-19
- collectivist
- solution
- cultural evolution
- conflict
- lang:en
- disease
- causal understanding
- society
- cooperation
- threat
- is:webpage
- behavioral change
- climate change
- collective behavior
- preparation
- behavioral science
- adaptation
- government
- future
Annotators
URL
-
-
www.thelancet.com www.thelancet.com
-
Paakkari, L., & Okan, O. (2020). COVID-19: Health literacy is an underestimated problem. The Lancet Public Health, S2468266720300864. https://doi.org/10.1016/S2468-2667(20)30086-4
-
-
www.nature.com www.nature.com
-
Ledford, H. (2020). How Facebook, Twitter and other data troves are revolutionizing social science. Nature, 582(7812), 328–330. https://doi.org/10.1038/d41586-020-01747-1
-
-
ci2020.weebly.com ci2020.weebly.com
-
Collective Intelligence 2020. (n.d.). Collective Intelligence 2020. Retrieved June 16, 2020, from https://ci2020.weebly.com/
-
-
twitter.com twitter.com
-
Kazemi, D. (2020, May 23). "NPR is promoting this article again. Without access to the study we have no way of knowing how "bot" was estimated or measured, we simply have to go on the reputation and past research of this lab, which I dug into last night here: https://twitter.com/tinysubversion..." Twitter. https://twitter.com/tinysubversions/status/1263965246416318465
-
-
github.com github.com
-
(Now that I write this i think there is already a ticket for that.) It’s orthogonal to this but related to the same problem space...
-
-
www.nesta.org.uk www.nesta.org.uk
-
Young, N., Saperia, E. (2020 April 14). Crowdsourcing ideas to combat COVID-19. Nesta. https://www.nesta.org.uk/blog/crowdsourcing-ideas-combat-covid-19/
-
-
www.bmj.com www.bmj.com
-
Glasziou, P. P., Sanders, S., & Hoffmann, T. (2020). Waste in covid-19 research. BMJ 2020;369. doi: https://doi.org/10.1136/bmj.m1847
-
-
www.fourmilab.ch www.fourmilab.ch
-
it's important to distinguish managing a problem from fixing it, for these are very different acts: one is a process, the other an event. Solving a problem often requires a bit of both.
sounds like a profound framing but it doesn't really make sense. fixing and problem solving are also process. fixed OTOH is an event
Tags
Annotators
URL
-
-
psyarxiv.com psyarxiv.com
-
Wade, S. L., Gies, L. M., Fisher, A. P., Moscato, E. L., Adlam, A. R., Bardoni, A., Corti, C., Limond, J., Modi, A. C., & Williams, T. (2020). Telepsychotherapy with children and families: Lessons gleaned from two decades of translational research. Journal of Psychotherapy Integration, 30(2), 332–347. https://doi.org/10.1037/int0000215
-
-
stackoverflow.com stackoverflow.com
-
psyarxiv.com psyarxiv.com
-
Pescetelli, N., Cebrian, M., & Rahwan, I. (2020, February 10). Real-time Internet Control of Situated Human Agents. https://doi.org/10.31234/osf.io/xn7sr
-
-
www.theguardian.com www.theguardian.com
-
editor, R. M. D. political. (2020, June 5). UK experts call for coronavirus inquiry to prevent deadly second wave. The Guardian. https://www.theguardian.com/politics/2020/jun/05/uk-experts-call-for-coronavirus-inquiry-to-prevent-deadly-second-wave
-
-
twitter.com twitter.com
-
Angner, E. (2020, May 11). "Terrific assessment of projections of demand for Swedish ICU beds. The first two panels are model-based projections by academics; the third is a simple extrapolation by the public-health authority; the fourth is the actual outcome /1." Twitter. https://twitter.com/SciBeh/status/1260121561861939200
-
-
-
Heathers, J. (2020, May 21). Preprints Aren’t The Problem—WE Are The Problem. Medium. https://medium.com/@jamesheathers/preprints-arent-the-problem-we-are-the-problem-75d29a317625
-
-
dev.mysql.com dev.mysql.com
-
Deadlocks are a classic problem in transactional databases, but they are not dangerous unless they are so frequent that you cannot run certain transactions at all. Normally, you must write your applications so that they are always prepared to re-issue a transaction if it gets rolled back because of a deadlock.
-
- May 2020
-
psyarxiv.com psyarxiv.com
-
Forscher, P. S., Wagenmakers, E.-J., DeBruine, L. M., Coles, N. A., Silan, M. A., & IJzerman, H. (2020). A Manifesto for Team Science [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/2mdxh
-
-
psyarxiv.com psyarxiv.com
-
Williams, A. E. (2020, April 20). The Global Response to COVID-19 as an Example of a One-Sided Problem Definition in the Absence of General Collective Intelligence. https://doi.org/10.31234/osf.io/emgxc
-
-
-
Rodríguez-Flores, M. A., & Papadopoulos, F. (2020). Hyperbolic Mapping of Human Proximity Networks. ArXiv:2005.13216 [Cond-Mat, Physics:Physics]. http://arxiv.org/abs/2005.13216
-
-
psyarxiv.com psyarxiv.com
-
Arslan, G., Yıldırım, M., Tanhan, A., Buluş, M., & Allen, K.-A. (2020). Coronavirus Stress, Optimism-Pessimism, Psychological Inflexibility, and Psychological Health: Testing the Psychometrics of the Coronavirus Stress Measure [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/n6dcj
-
-
stackoverflow.com stackoverflow.com
-
1. Disabling concrete extension update. That's what I wanted! You can do this by editing the extensions manifest json-file on Windows: C:\Users\<USERNAME>\AppData\Local\Google\Chrome\User Data\Default\Extensions\<EXTENSION-ID>\<VERSION>\manifest.json (find out the extensions ID by enabling developer mode in the extension settings page) on Ubuntu for Chromium: ${HOME}/.config/chromium/Default/Preferences In this file set "update_url" property to something invalid like "https://localhost" for example. For now according to given url updating of that extension is simply impossible.
-
-
ourworldindata.org ourworldindata.orgAbout1
-
About. (n.d.). Our World in Data. Retrieved May 25, 2020, from https://ourworldindata.org/about
-
-
gitlab.com gitlab.com
-
It seems weird to me that we are trying to enforce commit messages when they are not really visible or used in the GitLab workflow at all. This is what you see most of the time when interacting with the commit list. I've taken time to compose a nice descriptive body and it is hidden by default:
-
-
forum.gitlab.com forum.gitlab.com
-
forum.gitlab.com forum.gitlab.com
-
stackoverflow.com stackoverflow.com
-
If you update your pages and push to github, people revisiting the pages who have already got cached copies will not get the new pages without actually cleaning their browser cache. How can a script running in a page determine that it is stale and force an update?
-
-
stackoverflow.com stackoverflow.com
-
for me it was because the browser use cached data(old styles) so i opend other brwser
-
-
www.iubenda.com www.iubenda.com
-
if you lack the consent necessary to contact users, then you likely lack the consent needed to even email them to ask for consent.
-
-
arxiv.org arxiv.org
-
Nguyen, C. T., Saputra, Y. M., Van Huynh, N., Nguyen, N.-T., Khoa, T. V., Tuan, B. M., Nguyen, D. N., Hoang, D. T., Vu, T. X., Dutkiewicz, E., Chatzinotas, S., & Ottersten, B. (2020). Enabling and Emerging Technologies for Social Distancing: A Comprehensive Survey. ArXiv:2005.02816 [Physics]. http://arxiv.org/abs/2005.02816
-
-
www.thelancet.com www.thelancet.com
-
Cortese, S., Asherson, P., Sonuga-Barke, E., Banaschewski, T., Brandeis, D., Buitelaar, J., Coghill, D., Daley, D., Danckaerts, M., Dittmann, R. W., Doepfner, M., Ferrin, M., Hollis, C., Holtmann, M., Konofal, E., Lecendreux, M., Santosh, P., Rothenberger, A., Soutullo, C., … Simonoff, E. (2020). ADHD management during the COVID-19 pandemic: Guidance from the European ADHD Guidelines Group. The Lancet Child & Adolescent Health, S2352464220301103. https://doi.org/10.1016/S2352-4642(20)30110-3
-
-
-
Unfortunately, loading their code from their CDN is the only way those services permit their use.
-
-
github.com github.com
-
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
-
stackoverflow.com stackoverflow.com
-
medium.com medium.com
-
Heathers, J. (2020 April 13). Hurry, don't rush. Medium. https://medium.com/@jamesheathers/hurry-dont-rush-e1aee626e733
-