frontend

Use of boilerplate actions and reducers in redux

荒凉一梦 提交于 2019-12-21 04:09:06
问题 I have been following the widely given advice of learning React development by first mastering component props , encapsulating UI state in component level this.state and passing it down selectively through the component tree. It's been an enlightening experience. I've come to appreciate the power of the stateless view design pattern and I feel that I've been able to achieve robust and well organized results using these techniques. Moving on, I am now trying to incorporate more sophisticated

Use Clang to convert C++ to C code

对着背影说爱祢 提交于 2019-12-21 02:36:13
问题 I know that llvm can be used to convert c++ into c code. I was wondering if clang could do the same thing (seeing as clang was derived from llvm ). So can I use clang to convert c++ code into c code? If you want to know why I want to do this here is my scenario: PIC, which is a micro controller manufacturer, does not make c++ compilers, but does make c compilers for most of their products. I want to write in c++ and then as part of my build process, convert the c++ code into a temporary c

How to deal with browser's limit of parallel requests per domain in case of a priority AJAX request?

别来无恙 提交于 2019-12-21 01:17:21
问题 Imagine as given the following situation: There are about 20 requests (or even more) which has been triggered by our website. These can be any kind of requests - we don't know how to trigger them again. On this website, all the requests target the same url. The requests can have subscribed event listeners. In case of using Chrome, the first 6 requests are sent and the others are waiting in a queue to be sent (because of the parallel request limit per domain). At this moment the webpage

Webpack with requirejs/AMD

假如想象 提交于 2019-12-20 12:38:40
问题 I'm working on a new module for an existing project that still uses requireJS for module loading. I'm trying to use new technologies for my new module like webpack (which allows me to use es6 loaders using es6 imports). It seems like webpack can't reconcile with requireJS syntax. It will say things like: "Module not found: Error: Can't resolve in ". Problem : Webpack won't bundle files with requireJS/AMD syntax in them. Question : Is there any way to make webpack play nice with requireJS? My

What is the definition / difference of “backend” and a “frontend” in a software development / project? [closed]

删除回忆录丶 提交于 2019-12-20 12:23:31
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . How a newbie differentiate between this? How one can know he/she is working is back-end system or front-end system? 回答1: "Front-end" typically means the parts of the project a user interacts with--such as the graphical user interface or command line. It's a vague term, there isn't an exact

What is the definition / difference of “backend” and a “frontend” in a software development / project? [closed]

大憨熊 提交于 2019-12-20 12:23:22
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . How a newbie differentiate between this? How one can know he/she is working is back-end system or front-end system? 回答1: "Front-end" typically means the parts of the project a user interacts with--such as the graphical user interface or command line. It's a vague term, there isn't an exact

AngularJS routing vs backend routing

蹲街弑〆低调 提交于 2019-12-20 09:57:31
问题 I would like to use AngularJS in my next project. The application with Python backend and html5, Angular frontend. I am going to use MVC framework on backend and I am little bit confused. Do I have to use routing on backend and also frontend? Because I always used backend routing and routing on frontend is really new idea for me. Is client side routing better? And when I choose to use frontend routing, there will be no routes on backend? All request will be send to one url? 回答1: You can use

Unused css - how do you clean it up?

荒凉一梦 提交于 2019-12-20 08:57:25
问题 Probably any experienced web developer would be familiar with this problem: over time your css files can grow pretty huge and ugly because of all the no longer used selectors, which might be pretty tricky to find. I'm working on a rails project where we tend to re-design things quite frequently, which leads to a tonne of deadweight css. What's the best way to find and remove it? Now, I do know that there is a rails plugin called deadweight built specifically for that purpose. However, here's

Frontend testing: what and how to test, and what tool to use?

倾然丶 夕夏残阳落幕 提交于 2019-12-20 07:59:15
问题 I have been writing tests for my Ruby code for a while, but as a frontend developer I am obviously interested in bring this into the code I write for my frontend code. There is quite a few different options which I have been playing around with: CasperJS Capybara & Rspec Jasmine Cucumber or just Rspec What are people using for testing? And further than that what do people test? Just JavaScript? Links? Forms? Hardcoded content? Any thoughts would be greatly appreciated. 回答1: I had the same

Secure way to handle frontend login

我怕爱的太早我们不能终老 提交于 2019-12-20 04:52:19
问题 A few questions came across my mind about how to secure a login page (Web). When I build a demo app for instance a web-application with VueJS or just really blank using HTML/JS, I thought can a login page be ever secure? Or am I missing something. For example: When I create the login page where a user can click on a login button I potentially send a request to my backend server and if it is successful an access-token is returned and then I route my frontend page to the next view or create