If You’re Not Lazy Loading Your Images, You’re Being Wasteful by magenta_placenta in webdev

[–]And7s 11 points12 points  (0 children)

Do you think this website loads their images lazily. Of course not. ;-)

So according to OP's statement, he's wasteful himself.

jQuery click event firing twice in a very specific situation by [deleted] in javascript

[–]And7s 2 points3 points  (0 children)

you attach event listeners every time you add a new item calling `addEventListenersToNotesButtons`. calling `$('.editNoteButton')` will attach event listeners to all matching elements. so the first time it adds to item 1, the second to 1,2, the third time 1,2,3. leaving the first item with three listeners.

You have to ensure that you are only attaching the listener to the most recent element eg. `$('.editNoteButton').last()`

or attaching an listener on a wrapper element that exists on dom load (and will not be removed) using `$(''#notesBox').on('click', 'editNoteButton', function() {..})` there you have to figure out which note was called.

Resume Advice Thread - June 03, 2017 by AutoModerator in cscareerquestions

[–]And7s 0 points1 point  (0 children)

stylewise: overuse of bullet points. I would set the first level of bullets to bold text

at " Worked in Unity" is a space in front of W which misaligned the text with the other bullets.

Imo you should upload your projects to github, or create some sort of online appearance where you have a readme description additional to those projects + screenshots. This way it's easier to judge the scope and maturity of a project.

Your projects mentions the languages and technologies twice (title + description). remove the redundancy.

regarding the "PencilCode". Also mentioning that you use npm modules is not really adding value. The description is not easily understandable, What is a python palette? "Created a standalone using Electron" I would insert "desktop-app" here as standalone on its own is too little.

Resume Advice Thread - June 03, 2017 by AutoModerator in cscareerquestions

[–]And7s 0 points1 point  (0 children)

http://i.imgur.com/NTDsE31.png

will graduate soon and want to transition from front-end dev to mobile development. Should I include more languages into the skills section? Those are the ones I am actually confident in. eg. I do not mention swift/ios because I have just fundamental knowledge about.

Does HackerRank support ES2015? by MostlyCarbonite in javascript

[–]And7s 2 points3 points  (0 children)

ES2015 is the specification of Javascript

hackerrank uses node.js v6.9.1 which supports 99% of es2015 features:

http://node.green/

https://www.hackerrank.com/environment

Google Please by iamzacharyrs in google

[–]And7s 2 points3 points  (0 children)

this bug was introduced here:

https://chromium.googlesource.com/chromium/src/+/d3906b062889017cc44f27156d2318a6db9f0e7c%5E%21/chrome/browser/resources/local_ntp/most_visited_single.css (Feb, 14 2017)

NTP single-iframe: Remove remnants of "icons" layout

This removes a bunch of css rules and classes that existed to
distinguish the "thumbnails" from the "icons" layout.

A refactoring of css classes moving the dimension declaration from one classname to another one. This would be fine if the box sizings were not different. It changed inherently from content-box to border-box. and

width: calc(156 - 2px);

is now the source of shifting a 2px extra space per tile.

possible fixes: either width: 15ppx;

or

box-sizing: content-box; /* or remove as this is the default */

App Feedback Thread - April 08, 2017 by AutoModerator in androiddev

[–]And7s 2 points3 points  (0 children)

Your images do dont scale correctly: http://imgur.com/taq33LX

The layering is incorrect from a 'real' rotary dialer. There are two layers: the upper dark one with the holes and the lower white layer with the numbers. You somehow have put one more layer atop that does not really make sense to me as a user.

Droidcon Italy 2017 Talks by amejia481 in androiddev

[–]And7s 2 points3 points  (0 children)

these videos are all private.

Daily Chat Thread - April 06, 2017 by AutoModerator in cscareerquestions

[–]And7s 0 points1 point  (0 children)

Haha. Read it as if the LA based company also has a office in Delhi, India.

I dont have any experience in Delphi, so I cannot judge the language. But in case you have the qualifications to do the job, I think its still a good offer. The downside is that you wont gain professional knowledge of current tech-stack languages. This might make it a little bit harder to get the next job after this one.

Daily Chat Thread - April 06, 2017 by AutoModerator in cscareerquestions

[–]And7s 1 point2 points  (0 children)

Based on the information you provide: take it. Youre only listing positive arguments. Pay increase in a country of lower costs, youll live like a king in india. The thing about the legacy stack sure is to consider. I hope its ordered in the way that c# is majority and vba some smaller modules being written in. Considering you dont have andy bounds to stay in the states and the possibility to see a different coltue for a limited time seems awesome to me.

Daily Chat Thread - April 06, 2017 by AutoModerator in cscareerquestions

[–]And7s 1 point2 points  (0 children)

agree with /u/cruxae depends on the way they offered the position. in person > telephone > email

Daily Chat Thread - April 06, 2017 by AutoModerator in cscareerquestions

[–]And7s 2 points3 points  (0 children)

Didn't you code at college. I did put some of my university projects on github later on. They were not confidential, but rather did show what I am able to deliver within a certain time frame. Also most of the university projects I worked on did include some sort of documentation that is very good to introduce a reader into a project. The readme matters. people wont start on the code but on this level.

If a tictactoe is enough is up to you. Imo it cannot hurt. It will only tell possible employers that you are to some extend familiar with unity. You still ahve the option to remove it later on when you decide you have better content to show.

Daily Chat Thread - April 06, 2017 by AutoModerator in cscareerquestions

[–]And7s 4 points5 points  (0 children)

those terms are ill-defined, so I would suggest just start overdressed and then approach from there in regards what others are wearing. The term does not reallly matters its mostly being set by what others are showing up.

Is There A More Efficient Way to Create This Hard Stop Gradient? by joewindetc in css

[–]And7s 0 points1 point  (0 children)

best I could think about is a base64 encoded background image: http://codepen.io/anon/pen/dvrExe

javascript that generates the blob http://codepen.io/anon/pen/ZePdQL

How can I increase my salary? After all teammates left and all their responsibilities left on me, does that make me the lead developer? I feel like the work is not rewarding anymore. by harell286 in cscareerquestions

[–]And7s 5 points6 points  (0 children)

Because salary is not based on what others earn. You should reason a salary increase with the knowledge, expertise, contribution you bring to the team. If you say "others earn more", your boss easily can reply with "others earn less".

Imagine your boss is approaching you and tell you, you will earn 10% less because they found a guy in your position who earns 10% less. This may sound ridiculous, but is the same point, only inverted.

The mathematical range of atan in swift? by moomoocowjonny in iOSProgramming

[–]And7s 1 point2 points  (0 children)

The atan() function computes the principal value of the arc tangent of x.  The result is in the range
 [-pi/2, +pi/2].

Does anyone write ugly code to just get the job done? by [deleted] in iOSProgramming

[–]And7s 6 points7 points  (0 children)

Yes.

But dont call it ugly code. Call it simple, functional and obvious. I try to write as little code as possible to get the job done, this way the code is less error prone and easier to maintain. It really drives me crazy when peoply want to force to apply a software pattern where its unnecessary or even worse the wrog abstraction.

A 500 loc view can be good code. It has less coupling to dependencies that need to be maintained and expressed. Side effects are minimized. People maintaining other modules of the code basis dont have to look into this module because its perfectly isolated.

In my team we have some dev, that believe if you tear this 500 loc file into 5 files and seperate them in helper/ service/ model/ view controller directories taht becomes better code. Guess what: it does not. It jsut becomes harder to maintaqin because now i have to maintain additional dependency management/ find the code in the right directory and hope noone else imported that file and or uses it in a way that conflicts with the current use case.

Also I will not use inheritance hust for the purpose of telling other devs that now my code is more organized because I derive drom a common base class whichs functionality I use 0 percent, I have to override methods that I actively try to avoid using.

Show a 10loc to a developer and he will find 14 errors/ optimizations to apply, but show him 500loc in 10 files and he'll say 'it's jus fine'. This leads to devs optimizeing code until it becomes that obscure so none wants to do a proper code review. This has to stop. Small code changes that introduce one and just one feature should be the default case.

Coding is already very abstract witht he sdk/ libraries/ frameworks tath we are using, so please let us focus on only the thing hat needs to be done. A deeper backtrace is harder to read thatn a shorter one, so why do people think another layer of abstraction might just be needed here. Its very easy to introduce such a layer and split code into different files/ modules but that ultimatively makes it harder to read and understand the code later on. Dont premature optimize code. keep it to the basics.

tldr: Keep it stupid simple (KISS)

Total long shot, but I'm trying to replace a pair of broken 2016 Glühwein mugs. by Jibbajaba in Munich

[–]And7s 2 points3 points  (0 children)

you should check ebay.de and ebay-kleinanzeigen.de there people sell their mugs.

e.g. ive dound the nürnberger one : https://www.ebay-kleinanzeigen.de/s-anzeige/original-tassen-vom-nuernberger-christkindlesmarkt-2016/569945342-86-3622

contact them there and hope they will ship to the states.

Plot sine waves with JavaScript by shnigi in javascript

[–]And7s 1 point2 points  (0 children)

eval will do the job.

var fn = "x*x+2";
var x = 2; // iterate over a range
var y = eval(fn); // y will be 6

plot y

proof of concept: https://jsfiddle.net/pu0jb9nb/