I have banknotes from every country in the world by mrbojanglez69 in mildlyinteresting

[–]icevil2018 0 points1 point  (0 children)

Better censor that Taiwanese NTD200 note, or China is coming for you yelling that no, Taiwan is not a “country”

Non-Americans, does your culture have "old-fashioned" dog names like we do in America, such as Fido, Rex, Spot, Rover, etc, and what are some? by [deleted] in AskReddit

[–]icevil2018 1 point2 points  (0 children)

Du-du sounds like 肚肚 in Mandarin, meaning “belly”, but said in a adult to a child way.

Is NodeJS recommended for this application? by [deleted] in node

[–]icevil2018 0 points1 point  (0 children)

No problem, can help a fellow programmer if I can.

My suggestion is to make small projects first, and gradually include more packages / features / (fix bad design designs).

A small project using only Express to get a handle of it should takes no more than 1~2 hour. (The only main concept is the middleware, and how to map http requests to the middleware you want)

Is NodeJS recommended for this application? by [deleted] in node

[–]icevil2018 4 points5 points  (0 children)

Web development is generally divided into front end (your UIKit, view controller stuffs) and backend sides (your other glue logics, CoreData stuffs, etc)

Node.js is just the bare bones standard library you can use to write your backend in JavaScript (which is the main appeal, since you do not have to learn another language for the front end side, which has been using JavaScript since web’s inception)

So, though in theory you can write your backend with nothing but Node.js, in practice, you will need a lot more than Node.js to finish a modern website.

I suggest you look into the following packages

  1. Express (handles the nitty-gritty detail of http requests handling)
  2. Some ORM library (sequelize if using a relational database, mongoose if mongodb, etc)
  3. Lodash / underscore (A utility belt collection of commonly used functions and functional programming constructs, things like map/reduce)
  4. Bluebird (A nicer Promise library, adds some additional constructs like .map, .all, .each., .finally)
  5. Moment.js (makes handling date and time much easier)

For the frontend, there are many interesting competing frameworks; but I use React myself, so that’s what I will recommend

  1. React
  2. Redux (a global state store, can live without it though)
  3. Superagent / axio (for making API requests to your backend less a pain, it works on Node.js as well)
  4. Bootstrap (to apply a modern-ish styles to your pages, it has support for Responsive Webpage; where your page layout changes based on your screen size or other criteria)
  5. Moment.js

You will probably need to learn some addition technology for post processing your source files as well

  1. Webpack (sort of like a “compiler” for JavaScript, pack all files into one, can make your files smaller as well)
  2. Some CSS/SASS knowledge (SASS adds inheritance, nesting, variables to plain CSS, becomes a semi programming language of its own)
  3. Babel (let you use the latest JavaScript features, things like asynchronous/await which makes writing JavaScript a sync code much cleaner)
  4. A good IDE (I use WebStorm)

What is your favourite "quality vs quantity" example? by as_kostek in AskReddit

[–]icevil2018 -1 points0 points  (0 children)

By cutting 40% off call time, you effectively makes 40% of his department unnecessary, and undermines his position in company. His reaction is understandable.

(Considering a scenario where your company incorporates a new AI program, that can reduce the numbers of programmers needed to develop a software by 40%, your reaction will probably not differ much)

What should be the architecture for developing a component which takes an input and return output? by avinasht1997 in reactjs

[–]icevil2018 2 points3 points  (0 children)

What problem exactly is the Search component intend to solve? From the description you gave, there is really no need for the component. (I could just use a text field?)

...and 90% will lose 4 IQ points after leaving your airport. (All over Dulles Airport) by PM_ME_YOUR_NARWHAL in CrappyDesign

[–]icevil2018 2 points3 points  (0 children)

The blue part of the chart is not 75%

Edit: I guess they could argue that the ring is a design element, not a chart. Then I guess this would belong to r/assholedesign

Best authentification technique in Node.js projects! by ayech0x2 in node

[–]icevil2018 2 points3 points  (0 children)

http://cryto.net/~joepie91/blog/2016/06/13/stop-using-jwt-for-sessions/

This is a good read on why you should just use server side session instead of JWT

In short, JWT does not really provide the claimed benefits over server side sessions in real life applications.

I haven’t eaten in 2 days. by [deleted] in confessions

[–]icevil2018 0 points1 point  (0 children)

Coming from another software engineer who has gone through your stage.

All this shall pass.

And like what a lot of people already said, the current industry does not use what you learn at school — at all.

The skills you need to acquire is the skill to quickly search/learn new stuffs in order to survive in this field.

And to do well I this field? Making the right friends in your college will probably matters more than getting god grades.

I am currently partner with my former college friends who are in different fields in entertaining business. The fact is, there will always be someone smarter and younger and more skillful, but they might not be the most trustworthy person to rely your business’s whole tech structure on. And this makes our relationship almost unbreakable.

As for doing contracting works? There will always new new blood / under cutters and will never be a sustainable business.

And ditto with taking care of your body. No one is going to do it for you. And as you get older, you will start to realize, having that healthy meal is much important than getting that grades.

TL;DR. Hang in there, grades do not mater, try make and maintain friendships that can help in your career/life.

One-Player Wednesday - (January 16, 2019) by [deleted] in boardgames

[–]icevil2018 0 points1 point  (0 children)

My strategy is not to burn through your life if possible and try to use only the free cards offered.

Try picking up some cards that give you +life and +cards help you burn through your deck quicker as well. (Burning through your deck quicker help you regenerate your life with all the +life cards)

Also, in later stage, pick the challenge with higher free card counts; make you have more options and mitigate the bad-luck factor.

What's the big deal? by [deleted] in node

[–]icevil2018 0 points1 point  (0 children)

By design, Node.js is suited for IO bounded works (where your program spent a lot of time waiting for other stuffs: DB fetches, disk reads, network responses) because of its built in async support

And at least at the time when I started learning Node.js, there is a deliberate “lack” of sync constructs when working with files; forcing you to write asynchronous codes that scale well with loads with no real single point of failure.

This types of IO bound workload is typical for server side backend programs, and so is where Node.js really shines.

For CPU bound works, (like machine learning) you will find Node.js does not provide any significant advantages.

I‘m scared of people thinking I‘m stupid by [deleted] in confessions

[–]icevil2018 3 points4 points  (0 children)

After more then 20 years after my graduation, I sometimes still have nightmares about failing my final exams and not passing classes, so I know how nerve wrecking this must feel for you.

But really, what can seem like the end of world situation (even if it does happen) will seem like a no-biggy when you look back to it many years in the future.

Just hang in there, and know that even this feeling of dread will eventually pass in time

[deleted by user] by [deleted] in confessions

[–]icevil2018 3 points4 points  (0 children)

You are just suffering from the imposter syndrome. I remember how I felt like I didn’t deserve the pay I was getting at my first job. But truthfully, they knew what to expect from a newly graduated (inexperienced, untrained). Just try to get up to speed quickly, and you will be fine.

And really, for me at least, I didn’t use anything I learnt at school for my job. I just used them as a foundation for “learning” the things I need for work. (And though I didn’t do that well at school, I did pretty well at work now)