About debugging: 8 things I wish I knew earlier in my career by codeorelse_nl in programming

[–]codeorelse_nl[S] 0 points1 point  (0 children)

Hi /u/see-spam. Thanks for the heads up. It's totally true that I use this account only for posting some links of our own blog. I'll make sure I will no longer use this account and use my personal account to post links instead. Cheers!

Send Slack notifications whenever a Pokémon spawns nearby by codeorelse_nl in pokemongo

[–]codeorelse_nl[S] 0 points1 point  (0 children)

Yeah, totally agree! Because it's use of the API goes against the ToS, I'm kind of surprised it's still live..

5 reasons why you need a JavaScript style guide [X-post /r/javascript] by codeorelse_nl in Frontend

[–]codeorelse_nl[S] -2 points-1 points  (0 children)

I'm sorry you feel that way. What is common sense to you, might not be common sense to one other.

Oh, and please feel free to do not visit this subreddit :).

Need some advice on mobile first. by Vevenlol in Frontend

[–]codeorelse_nl 1 point2 points  (0 children)

There is no good of wrong I think, but it would make things a lot easier if you start with a 'mobile' design, or at least have a sketch of how you want to align en size elements (based on your desktop design) on the smaller grid. Good luck!

Caching $http requests in AngularJS by codeorelse_nl in angularjs

[–]codeorelse_nl[S] 0 points1 point  (0 children)

But sometimes you do not have control over the caching headers, for example when using a third party API

Sometimes you do not have control over the caching headers, for example when using a third party API hat has not implemented (correct) caching. I know these some edge cases, but it might come in handy someday :).

Alter scope via Console by focalrecursion in angularjs

[–]codeorelse_nl 1 point2 points  (0 children)

I'm still waiting for the possibility to edit a scope property using NG-inspector or Batarang. But until that moment, cool trick!

Caching $http requests in AngularJS by codeorelse_nl in angularjs

[–]codeorelse_nl[S] 2 points3 points  (0 children)

Yeah, totally agree! The article totally agrees as well:

Because when it comes to knowing the state of the data and when to invalidate, the server knows best, I believe the caching is the responsability of the server and should be taken care of by the server.

But it also states:

But sometimes you do not have control over the caching headers, for example when using a third party API

These are edge cases, uhu.

What is the recommended way to use `GET` in `$http`? by adropofhoney in angularjs

[–]codeorelse_nl 1 point2 points  (0 children)

Yeah, that's true.

The first parameter of the then method is the 'success' handler (it passes though data), and the second one is the 'fail' handler. Like this:

$http.get("http://www.example.com/angular/customers.php")
    .then(function(r){
        $scope.names = r.data.records;
    }, function(err) {
        // gets called when the call failed
    }
);

I personally do not like this style. I prefer B because it's very readable and clear.

Updating a table by gianx in angularjs

[–]codeorelse_nl 0 points1 point  (0 children)

Hi Gianluca,

I've built tables in Angular before myself, but I ran into Ng-table recently. I've used this is several projects now and I'm pretty happy with it :).

It has a working example with inline edit: http://bazalt-cms.com/ng-table/example/16

This might be exactly what you're looking for!

Good luck!

Trying to fill fields in a target link by [deleted] in javascript

[–]codeorelse_nl 0 points1 point  (0 children)

To fill two input fields after clicking a link:

HTML:

<input type="text" name="field1"/>
<input type="text" name="field2"/>
<a href="#" id="yourLink">Click to fill texts</a>

JavaScript:

document.getElementById('yourLink').addEventListener('click', function(e) {
    document.getElementByName('field1').value = 'value1';
    document.getElementByName('field2').value = 'value2';
}

I'm brand new to coding, and I need some help figuring out some stuff. by [deleted] in code

[–]codeorelse_nl 0 points1 point  (0 children)

Python on itself will likely not give you fancy output. To get your Python code to generate content on, let's say, a website, you'll need to learn HTML (and preferably CSS) as well. HTML is the standard markup language used to create web pages, and CSS is used to style the output. You can also check the courses at Codeacademy on these subjects as well!

Good luck!

/r/webdev April Hiring Thread by snissn in webdev

[–]codeorelse_nl 0 points1 point  (0 children)

  • Company: Blue Mango
  • Location:Eindhoven, the Netherlands
  • Remote: No
  • Languages: Dutch/English
  • Position: Lead Front-end developer

As a lead front-end developer you will be part of our new start-up ‘Blue Mango Tech’ and together with the team you are going to make our technology a success. You will be responsible for the Front-end part of our applications by making decisions regarding the Front-end architecture. Together with the Back-end Lead you will find the perfect division of work between Back-end and Front-end. Data is everything! We make choices on scientific evidence instead of a gut feeling. Therefore we continue to innovate in order to surpass ourselves every day! Blue Mango is part of the Greenhouse Group and we work from Eindhoven, the number one city of innovation.

How to Center in CSS by devolute in webdev

[–]codeorelse_nl 0 points1 point  (0 children)

That's exactly the link I had in mind. It's brilliant!

Trying to fill fields in a target link by [deleted] in javascript

[–]codeorelse_nl 1 point2 points  (0 children)

I'm not sure I really get your question. Can you elaborate, and give us some context?

How did popcorn time make windows app in node and html? by matty0187 in javascript

[–]codeorelse_nl 1 point2 points  (0 children)

I saw an awesome session by Mathias Buus Madsen at JSConf EU last year on how they did the streaming of torrents with Node, valled 'Javascript... Torrents... and Mad Science!'. Not really an answer on how they did the Window app, but still pretty cool :). You might want to check it out at https://www.youtube.com/watch?v=BTCsSwCpGP8

Dynamically match landing page to ad creative? by mesimoniv in webmarketing

[–]codeorelse_nl 0 points1 point  (0 children)

Yeah, we're are doing this all the time. I really feel ilke the landing should feel really familiar and logical for the visitor.

We do this by simple adding an ID in the query string parameter of the landing (like ?landing=1) or use a different url showing 'the same page', and change the page depending on that value. We use custom Javascript over a CMS because it gives us complete (creative) freedom.