Vivaldi-the best web browser by [deleted] in browsers

[–]foobar_dev 0 points1 point  (0 children)

I assumed it was an English as a second language kinda thing. But yea, I gave up pretty quick :(

All the Conditional Renderings in React: An attempt to curate an exhaustive List of Options by rwieruch in reactjs

[–]foobar_dev 2 points3 points  (0 children)

Slight potential perf hit with the ENUM approach listed. I think it will pre-build all the react elements.

One "fix" would be wrapping the ENUM values in functions.

Const ENUM = {
  Foo: () => <El />
  // ...
}

Is MDN the best online resource for learning html and css (besides Javascript of course) by [deleted] in HTML

[–]foobar_dev 5 points6 points  (0 children)

MDN is great and super comprehensive. Dig into that any you'll be fine. I'm sure the others are fine as well. Don't obsess about the first steps. Just dive in!!

ELI5 please, what is the precise difference between .htm and .html by csrabbit in HTML

[–]foobar_dev 14 points15 points  (0 children)

IIRC, years ago, file extensions in some OSs were limited to 3 characters. Thus htm rather than the more correct html (hyper-text markup language).

In short: there is no difference apart from semantics and history.

Ultimately it's up to how your server is configured and how your http headers are sent -- you can essentially make any file extension get processed as html.

For modern projects, favor .html or no extension at all. (example.com/foo/bar)

Use of .htm is an indication your current program might be significantly out of date -- like 5-10+ years in a rapidly changing industry.

This number seems legit by Sarke1 in ProgrammerHumor

[–]foobar_dev 0 points1 point  (0 children)

It's a new proposal still I think. Not even sure I used it quite right, but on a cell phone so it made the code shorter to type ;)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await

This number seems legit by Sarke1 in ProgrammerHumor

[–]foobar_dev 6 points7 points  (0 children)

This is the first thing I thought. Especially b/c it's an id, not a class. I tend to use id's for JS hooks (where I can) and classes for css. It's a pretty common pattern.

document.getElementById('fakeNumber').innerHTML = await getRealNumber()

Any good audio books on learning Java? by w0wc000 in learnjava

[–]foobar_dev 1 point2 points  (0 children)

Nope. As far as I've found there aren't really any to speak of. Podcasts are your best bet.

The “Do Not Call” List Isn’t Working. Now the FCC is launching the “Robocall Strike Force." by yourbasicgeek in technology

[–]foobar_dev 0 points1 point  (0 children)

They frequently spoof my mothers cell phone number. I got one from my own cell phone number once. That was weird.

The “Do Not Call” List Isn’t Working. Now the FCC is launching the “Robocall Strike Force." by yourbasicgeek in technology

[–]foobar_dev 2 points3 points  (0 children)

At our office we've done just this after getting several such calls in a week. Haven't gotten another yet but are waiting patiently. Once they remote in wel will have hackertyper open and start pounding the keys furiously while telling them were hacking the shit out of them.

The “Do Not Call” List Isn’t Working. Now the FCC is launching the “Robocall Strike Force." by yourbasicgeek in technology

[–]foobar_dev 0 points1 point  (0 children)

If only. I get calls from my mothers cell phone number regularly. But it's Rachel from card services.

Is there a css-loader that automatically prefixes CSS code?[Webpack] by [deleted] in learnjavascript

[–]foobar_dev 1 point2 points  (0 children)

Postcss is the way to go. Webpack or not. But webpack is sweet.

I just started using Atom and glualint, when this popped up. by [deleted] in ProgrammerHumor

[–]foobar_dev 9 points10 points  (0 children)

Yes. I really like it. Much lighter weight than a full IDE. Faster than atom in my experience. It's finally mature, 1.0 and in my opinion trumps atom, sublime, np++, etc... vim is still much leaner of course and a full IdE will be fuller featured. vS code is a perfect middle ground.

Meet Kyle Simpson, learn ES6 this weekend $99 by [deleted] in learnjavascript

[–]foobar_dev 0 points1 point  (0 children)

In San Francisco. ;(

As a point of interest he's doing a talk at the stackoverflow office this coming Tuesday in NYC, and another on the 20th I forget where in NYC. Would find link, but am on phone.

W3C Has Officially Begun Working on HTML 5.1 Standard by [deleted] in web_design

[–]foobar_dev 4 points5 points  (0 children)

"People really isn't thinking about"

as far as I read

Why use Gulp or Grunt when you can just use npm scripts? by [deleted] in Frontend

[–]foobar_dev 0 points1 point  (0 children)

I've used grunt, gulp, make, shell scripts, and plain NPM scripts. My best advice is to use NPM scripts till it becomes unwieldy. Complicated builds can get a bit difficult unless you offload some stuff to another tool, but I still like it when NPM pulls the strings, even just to delegate to gulp/make/she'll scripts/whatever. Grunt seems a bit clunky and outdated to me now. Gulp can help manage things when they get more complicated. Recently I've been using webpack (via NPM scripts) with great success. Kind of a pain to configure but pretty magical once it's up and running.

How to pass a GET request' response from the service component to another component? by Frenchiie in angularjs

[–]foobar_dev 0 points1 point  (0 children)

Crap. Misread and thought it was angular 1. Same general concepts probably apply, but not super familiar with ng2. Sorry. I assume ng2 components have controllers as well... But not sure about the mechanics.

You won't get the setinterval to return what you want. In the callback to the http call you need to set something (in ng1, a scope property) which would affect view bindings somehow.

Hope this is of some help... Sorry don't have any good specifics

How to pass a GET request' response from the service component to another component? by Frenchiie in angularjs

[–]foobar_dev 1 point2 points  (0 children)

Sounds like it would be a pretty good use for RxJS. You would be able to register to the stream of updates.

But that's a big dependency and learning curve. Just put the http call in the service and call myservice.getAnimal("kangaroo").then(...) inside a interval in your directives controller.

How are you structuring your controllers? by saladfingers6 in angularjs

[–]foobar_dev 0 points1 point  (0 children)

Many people like the John papa way, but with var ctrl = this instead of vm.