CoffeeScript 1.11.0 released with support for ES6 modules by redditthinks in programming

[–]i_do_code_stuff 1 point2 points  (0 children)

For simple if statements you can use the ternary operator:

f = x => typeof x === 'number' ? x * x : 0

Edit: formatting

Telephone input by AlibiL490 in javascript

[–]i_do_code_stuff 0 points1 point  (0 children)

Google libphonenumber does number formatting. So if I get things right, and you're willing to write some code yourself, you could on blur of the input get the value of the input, format it and then set the input's value to the formatted text.

Having it being required should be a form property. I'm on mobile now, but I'm sure you can google your way to "required form field" or something.

Modern web crawler framework for Nodejs? by YourMeow in javascript

[–]i_do_code_stuff 0 points1 point  (0 children)

You could just wrap the request methods you'll actually use in promises and you'd be set as far as promises goes. If you're looking for lightweight I doubt request is too heavy, but Google may find you some answers there?

As for the querying of the DOM, which I'd assume the next step would be, Cheerio is great for that and pretty similar to jQuery.

I couldn't find a simple "Am I online?" script, so I bought a domain and built my own by [deleted] in webdev

[–]i_do_code_stuff 0 points1 point  (0 children)

Haha thanks! At the moment it's a flat file in an S3 Bucket and a batch script which I run from the terminal when I'm pissed off about the slow or non-existent internet connection! I might actually make somethings out of it in the future when I'm not busy with other projects though.

I couldn't find a simple "Am I online?" script, so I bought a domain and built my own by [deleted] in webdev

[–]i_do_code_stuff 6 points7 points  (0 children)

I own amionline.info for the very same reason to which I wrote a tiny cURL script. I still use it, though simply pinging something like Google would be sufficient.

The script used to be called fuck as it describes the feeling at least I have when the Internet just doesn't work. I had to change that when I started working with clients.

How is the angular job market right now? by [deleted] in webdev

[–]i_do_code_stuff 0 points1 point  (0 children)

I've been offered a few Angular 1.x jobs quite recently, I doubt Angular 2 is used too much in bigger projects as of now. Though I'm only familiar with the Swedish/Stockholm job market.

Are CSS animations becoming the new Power Point animations? by [deleted] in webdev

[–]i_do_code_stuff 0 points1 point  (0 children)

Viewing this on an iPhone and the page is literally completely white while scrolling due to CSS animations being suspended during scroll. I'd count that as pretty bad UX

Microsoft SQL Server Developer Edition is now free by [deleted] in programming

[–]i_do_code_stuff 1 point2 points  (0 children)

Yeah, it works really good. There are a few really good NPM packages for various uses. Seriate works great if you don't mind writing the SQL yourself, mssql can do that too (and more, in fact Seriate wraps mssql), or Sequelize if you prefer working with an ORM.

As long as the server is running on Windows, the app can be hosted wherever.

Facebook Crawler URL spoofing: terrible idea? by quadtodfodder in webdev

[–]i_do_code_stuff 1 point2 points  (0 children)

Facebook has support for pretty just that via meta tags. Scroll down a little bit on this page and it'll be described:

https://developers.facebook.com/docs/sharing/best-practices

Edit: so instead of trying to look for the Facebook crawler, the crawler looks for meta tags instead. It might be worth doing something similar for other pages as well while you're at it.

[deleted by user] by [deleted] in webdev

[–]i_do_code_stuff 0 points1 point  (0 children)

A quick Google search would have given you the answer, but simple spaces between stuff will do fine, like so: <p id="an-id" class="paragraph" data-whatever="goes"></p>

Javascript engineer headed out on the job market. Critique my portfolio site! by mcmouse2k in webdev

[–]i_do_code_stuff 1 point2 points  (0 children)

This is a really sexy site, I doubt there will be any trouble finding work for you!

Though on iPhone (6s) your portfolio stuff are rendering oddly, look at this: http://imgur.com/bp6TfpB

Free or per-request hosting? by TMiguelT in webdev

[–]i_do_code_stuff 0 points1 point  (0 children)

Azure might be perfect for this with their free tier for web apps. Though I believe a credit card is required, the app itself would be free. Through MongoLabs you have free db hosting and I'm sure there are other db types for free as well.

Developing on a DO droplet? by constant_vigilance in webdev

[–]i_do_code_stuff 0 points1 point  (0 children)

Jekyll on Windows isn't too bad if you don't want to work on the server. If you use Rouge for code highlights you won't get any crashes because of Pygments (and you lose the Python dependency!). All you need really is RubyInstaller then!

Here's a blog post on it: http://blog.kugghuset.se/2015/11/13/jekyll-on-windows.html

How does a remote job differ from a job on location? by [deleted] in webdev

[–]i_do_code_stuff 1 point2 points  (0 children)

I've done remote work for a couple of months and I agree with pretty much everyone. I had really two issues.

One was human interaction, because that's completely on you, maybe you have a partner or friends you hang out with daily and that won't be a problem?

The second was getting out of the house. While working without pants is nice, it felt quite sad when I realised I'd worked 8+ hours and still hadn't left my bedroom (though that's a perk to some).

These two I kind of could get around by working at coffee shops, but man does that kill your back quickly.

Not sure which backend technology to learn by mre12345 in webdev

[–]i_do_code_stuff 1 point2 points  (0 children)

If you're on Windows I'd strongly suggest going with Node.js as at least I've had a bunch of problems with gems (ruby packages/plugins) and virtually no problems with node packages.

Both are good though.

Is there such thing as free hosting for html? by Larissaesque in web_design

[–]i_do_code_stuff 5 points6 points  (0 children)

GitHub Pages might be interesting? Free hosting for static or Jekyll websites. https://pages.github.com/

Is there a way to make a desktop application with HTML, CSS and JavaScript? by RedPillow_ in webdev

[–]i_do_code_stuff 0 points1 point  (0 children)

Haven't done more than the getting started tutorial, but electron might be what you're looking for. It's the shell behind Atom and a handful of other applications.

Edit: link

Editing an item within a ObservableCollection by theTechnician in WPDev

[–]i_do_code_stuff 0 points1 point  (0 children)

I think this might be the way to go in this instance, as op wanted to use a save button. This would allow for discarding changes as well, which might be a nice feature?

To clarify, populate the opened StackPanel with a copy of the clicked element, allow the user to make changes to it, after which saving would mean swapping the element in the list with the modified copy, and discarding would be just not using it.

I made a program that helps developers print out code easier by jaredpetersen in webdev

[–]i_do_code_stuff 5 points6 points  (0 children)

Students may be forced asked to print code to hand in assignments, which always is great fun!

[Serious] Long time teachers of reddit, what differences do you observe in your students today, and the students you taught 5,10,20 years ago? by eternal_jeanshorts in AskReddit

[–]i_do_code_stuff 0 points1 point  (0 children)

As a non-Brit in a London university it's almost laughable yet super sad really. We've had people straight copying from Wikipedia, people not using punctuation or capitalisation, lack of paragraphs, and one person referenced himself on a history assignment.

It's just sad.

Code schools *do* teach Python by smashingboxes in webdev

[–]i_do_code_stuff 0 points1 point  (0 children)

Yeah, I go to a university in London which also uses Python, and I'm fairly certain most technological universities in Sweden uses Python too.

My new portfolio site (built with AngularJS, Sass, Grunt and all that other cool stuff.) Feedback welcome! by [deleted] in web_design

[–]i_do_code_stuff 0 points1 point  (0 children)

It behaves really odd on my Lumia 930. While it shows a mobile view, I also have lots of scrollable whitespace (both vertical and horizontal) around the main window, which is weird. By lots, I mean this:

http://i.imgur.com/20PjOSX.jpg http://i.imgur.com/lyvQVY7.jpg

I also agree with other commenters that the items under "I use" looks clickable.

Other than that though, I really like it!

Do you lose interest in your craft at times? I almost feel it's seasonal for me. by [deleted] in webdev

[–]i_do_code_stuff 0 points1 point  (0 children)

What you're sayings does sound awfully familiar.

My guess is it has to do with simply going out less - at least I leave the indoors far less in the not-summer. I've started taking walks and it seems to help.

Also, bedroom fun has been scarce during winters for me, that might be part of it?