Sign Up Now!

Sign up and get personalized intelligence briefing delivered daily.


Sign Up

Using mocked APIs to increase developer productivity

  • It provides the functionality you need, deeply integrated with ember and makes you develop by default with a completely mocked API, which I think is a great principle to start with.
  • We also wanted, in future, to spend as little effort as possible to change from the mocked data to a real API.
  • Unfortunately, we can't use ember-cli-mirage with other libraries, even though we really miss the functionality it provides.
  • The solution we ended up with was a combination of json-server with route-parser and using axios request interceptors.
  • The routes file only says that whatever request comes to /:user/posts/:id, we redirect to the automatically created endpoint that is /posts.
  • As soon as we want to use the real API, it is just a matter of removing the url from MOCK_URLS (which can also be extracted to a separate file) in mockApiRequestInterceptor file.

save | comments | report | share on


Gently introduction to React Hooks. Part 1

  • "Why change something that is good and works?" When I saw first hooks examples my feeling "this is not a good direction" was even stronger.
  • But hooks kept attacking me from every direction and more and more people seemed to be delighted with the new React addition.
  • Hooks were introduced to React to replace class creation of components.
  • Lifecycle methods let us execute any code in key moments of component's existance.
  • But since React 16.8 - thanks to introduction of React hooks - both state and lifecycle methods are available to function components!
  • Let's begin our adventure with React hooks from writing a class component.
  • The user can enter their name and it'll be saved in component state and displayed above the input field.
  • Import useState from React and use it in the component.
  • Thanks to React’s useState hook we've created a function component that can have state!

save | comments | report | share on


How the rise in e-commerce is presenting opportunities for new entrants to challenge UPS and FedEx in last-mile deliveries

  • Outside of the US Postal Service (USPS), FedEx and UPS have dominated the domestic logistics industry — and in particular, the last mile of delivery — for decades.
  • Amazon presents the biggest near-term threat to UPS and FedEx's duopoly due to its size, strategic position in the e-commerce market, and wealth of logistics infrastructure.
  • In The Delivery Challenger Report, Business Insider Intelligence identifies the four companies that pose the largest threats to UPS and FedEx's duopoly in the US last-mile delivery market.
  • Lastly, we outline concrete steps each of them must take if they hope to maximize their footprint in the market and peel away business from UPS and FedEx. The companies mentioned in this report include: Alibaba, Amazon, Deliv, DHL, FedEx, Postmates, Uber, UPS, USPS, and Postmates.

save | comments | report | share on


The billionaire founder of Chinese tech giant JD.com is locked in a bitter lawsuit over a rape allegation by a college student: Here's everything we know about the case

  • Richard Liu, the billionaire founder and CEO of JD.com, the Chinese e-commerce giant, faces a rape accusation in civil court from a college student in Minneapolis.
  • Liu is accused of assaulting Liu Jingyao, then a 21-year-old undergraduate at the University of Minnesota, while he was attending a business program there last summer.
  • Last month, Liu Jingyao filed a civil lawsuit against the tech CEO, accusing him of plying her with so much alcohol that she couldn't walk properly, assaulting her in a company limousine, and then raping her in her apartment.
  • He had been in town at the time to attend a business administration course at the University of Minnesota, a program attended by many foreign CEOs. JD.com's stock dropped 4% after the arrest and allegation were made public.

save | comments | report | share on


At least 3 people are dead after 'violent' tornado hits near Missouri capital

  • At least three people have been killed after a deadly tornado swept through Missouri on Wednesday night.
  • Law enforcement confirmed that three people were killed in Barton County, while several injuries were reported in Jasper County.
  • The Missouri Department of Public Safety said the "violent" tornado hit around 11:47 p.m. local time and encouraged people to seek shelter.
  • It later added that extensive damage was reported along Ellis Boulevard, and downed power lines posed a danger to residents.
  • More severe weather was expected to follow overnight including flash flooding.
  • This is a developing story.

save | comments | report | share on


10 things in tech you need to know today

  • Good morning!
  • This is the tech news you need to know this Wednesday.
  • Have an Amazon Alexa device?
  • Now you can hear 10 Things in Tech each morning.
  • Just search for "Business Insider" in your Alexa's flash briefing settings.

save | comments | report | share on


Total War: Three Kingdoms review — Best in the series, best in the setting

  • I’d also like to praise the balance on the economy, something that’s easy to not think about, but in general my cash flow almost always matched how I felt the campaign should be feeling at that point, and I consistently had to make interesting decisions on the best ways to spend the money I got.
  • In almost all the Total Wars since, the goal has been to destroy enemy armies, a process which makes battles tend to be scrummier and slower, often ending with small groups of units bashing each other in the face until one comes out.
  • That said, if that’s the direction Total War is going, Three Kingdoms is the best incarnation of this kind of tactical battle, with the possible exception of late-game combat in the Warhammer games.

save | comments | report | share on


Fujifilm’s GFX 100 is a medium format camera that performs like a mirrorless

  • The GFX 100 introduces some major leaps over the prior models, including a much higher resolution, in-body image stabilization, and much faster performance.
  • Unlike Fujifilm’s prior medium format bodies, the GFX 100 features a full-size design, meaning it has an integrated vertical grip and a much larger stance than the typical mirrorless camera.
  • Inside that hulking, three-pound frame is a new, 102-megapixel sensor and that five-axis in-body image stabilization system, which Fujifilm claims provides up to 5.5 stops of shake correction.
  • The new 102-megapixel sensor also provides much higher resolution, putting the GFX 100 on par with some of the higher-end medium format systems from Hasselblad and Phase One. It is a backside-illuminated, CMOS chip — similar in construction to the sensor in Fujifilm’s consumer level X-T3 camera — that can output 16-bit images through the company’s X-Processor 4.

save | comments | report | share on


As New Cold War Looms, China Struggles to Grasp Trump's End Game

  • To continue, please click the box below to let us know you're not a robot.
  • Please make sure your browser supports JavaScript and cookies and that you are not blocking them from loading.
  • For more information you can review our Terms of Service and Cookie Policy.
  • For inquiries related to this message please contact our support team and provide the reference ID below.

save | comments | report | share on


Salvini's Garbage Gambit Risks Falling Short

  • To continue, please click the box below to let us know you're not a robot.
  • Please make sure your browser supports JavaScript and cookies and that you are not blocking them from loading.
  • For more information you can review our Terms of Service and Cookie Policy.
  • For inquiries related to this message please contact our support team and provide the reference ID below.

save | comments | report | share on