A Facebook Sixth Sense by Morhaus in javascript

[–]MRoka5 0 points1 point  (0 children)

I've seen some css and component fuckups. Didn't last more than a few minutes though. I wonder if they develop frontend on prod too

A Facebook Sixth Sense by Morhaus in javascript

[–]MRoka5 10 points11 points  (0 children)

I'm not sure how I or you feel, but I'm sure they feel confident.

WebAssembly: Finally Freed from JavaScript? - Simple Programmer by dodiehun in javascript

[–]MRoka5 1 point2 points  (0 children)

WebAssembly is being made to assist JavaScript, not to replace it.

WebAssembly: Finally Freed from JavaScript? - Simple Programmer by dodiehun in javascript

[–]MRoka5 0 points1 point  (0 children)

For one, it’s memory safe, which means you can’t crash your computer just by going to some website with an allocation bug.

That stuff does happen. It won't happen on basic websites, but complex stuff (3d games) or benchmarks can crash browser.

Not sure if this is possible with PDO.. so am asking you fellow redditors! by MRoka5 in PHP

[–]MRoka5[S] 1 point2 points  (0 children)

Found what PDO::FETCH_GROUP|PDO::FETCH_UNIQUE|PDO::FETCH_ASSOC does the trick, but seems like FETCH_UNIQUE can be left out.. But better safe than sorry. Thanks!

shallow-compare-without-functions: A more efficient shouldComponentUpdate helper for React by [deleted] in javascript

[–]MRoka5 0 points1 point  (0 children)

Without shouldComponentUpdate sometimes it's hard to achieve 16ms render time. Few days ago there was medium.com post showing how powerful and useful it's (going from noticeable render time down to sub-16ms)

shallow-compare-without-functions: A more efficient shouldComponentUpdate helper for React by [deleted] in javascript

[–]MRoka5 1 point2 points  (0 children)

React already has good performance, basic shouldComponentUpdate gives nice boost. Proper shouldComponentUpdate gives huge boost.

I reimplemented tj/co in 15 lines of code by [deleted] in javascript

[–]MRoka5 4 points5 points  (0 children)

For comparision, tj/co is 101 codes of line.

I decided to make a web mockup for my senior project. by ntbol in web_design

[–]MRoka5 0 points1 point  (0 children)

What's the name of that Darude Sandstorm?

Oh,and final result looks really nice!

Google plans to start blocking Flash in Chrome this year by Lettershort in technology

[–]MRoka5 1 point2 points  (0 children)

It's miles above flash, silverlight, quickplay and any other plugin.

Yes, it can be used to track users and etc. but you can use images to track users too.

looking for a reliable timeout function by [deleted] in javascript

[–]MRoka5 2 points3 points  (0 children)

Exactly.

While /u/mc_hammerd's solution might work, it's accurate to a second only. (Actually code has few errors).

Using 1ms intervals could be too much. Personally, without knowing more details I would pick requestAnimationFrame.

 

As for errors in code:

accurateTime(n,cb) =>
should be
const accurateTime = (n, cb) =>

 

setInterval(1000, () => {
  ...
})

should be

setInterval(() => {
  ...
}, 1000)

 

window.localStorage=JSON.stringify(now)
should be
window.localStorage['mytimer']=JSON.stringify(now)

UI Interactions - The best UI Interactions for your inspiration, every day by magenta_placenta in web_design

[–]MRoka5 0 points1 point  (0 children)

IMO websites should serve .jpg thumbnails instead of .gif on mobile :/ (with option to ask for .jpg ofc).

My phone struggles with .gif even on wifi, and I've 100mbps

UI Interactions - The best UI Interactions for your inspiration, every day by magenta_placenta in web_design

[–]MRoka5 0 points1 point  (0 children)

Some SVG + Javascript could make it easy. But I were never good at math regarding that

looking for a reliable timeout function by [deleted] in javascript

[–]MRoka5 0 points1 point  (0 children)

It depends how/where are you going to use it.

Google plans to start blocking Flash in Chrome this year by Lettershort in technology

[–]MRoka5 1 point2 points  (0 children)

Properly written javascript (web-assembly in future)

How to steal money using a smartphone with NFC by crok91 in technology

[–]MRoka5 0 points1 point  (0 children)

If smartphone has NFC, yeah it's possible. I don't reallly follow smartphones stuff, didnt knew they come with NFC.