|
Not every code is refractored. There are some decompilers for .Net apps to. Even if the decompiled ones do not compile, they give you an overview of classes and concepts used.
Many cool web apps uses javascipt and invariably their reference is present in the html form and typing javascipt with site address loads the source file itself.
I dont hack, I use these common sense knowledge when I am struck
|
|
|
|
|
This post/program (as I’m writing it in literate style) is a continuation of my previous posts about functional programming in C++. I promise I’m not going to post about doing it in assembly language (I think). I came to like the simplicity of C very much and got interested in how you could write functional code in it.... So, in summary, this post is about how you can write functional code in C, perhaps with some gcc extensions and certainly with some macro tricks. Let’s call it funkyC (thanks Ian ). I’m going to show how to use it first. A very opinionated piece. I like it.
|
|
|
|
|
Luca Bolognese's introduction to F#[^] is probably one of the funniest technical videos I've seen.
|
|
|
|
|
In languages whose syntax is derived from C (e.g.: C ← C++ ← Java ← JavaScript), two brace styles are most common: Allman style and 1TBS. In JavaScript, you should use... Pro tip: when someone pays you to write code for them, use whatever style they prefer.
|
|
|
|
|
Yes, but those are both wrong.
|
|
|
|
|
Indeed, symetrical bracing is the only way to go, and for gods sake use tabs instead of 4-spaces - super way to bloat your code files...
|
|
|
|
|
TABs look horrible in Notepad or when typed to the command line or for code I copy to OpenVMS. SPACEs always look right.
|
|
|
|
|
Fair enough if you're a programmer that actually does code in differeent environments...but if you only ever code in VS (and/or use a Notepad replacement like Notepad++) then space-spacing is awful.
TBH - I always code with whitespace showing and I a bit anal about extraneous whitespace - I hate it, it's untidy
|
|
|
|
|
I use SPACEs in VS too and they're great.
Kyudos wrote: I hate it, it's untidy
I lurve whitespace. Yum yum yum.
|
|
|
|
|
I like whitespace, just not unecessary whitespace. Nothing is more irksome than a blank line with whitespace on it...
|
|
|
|
|
Oh, sure, so my editor trims when it loads and saves.
|
|
|
|
|
PIEBALDconsult wrote: but those are both wrong
There is no right or wrong when it comes to opinions.
|
|
|
|
|
You're wrong, in my opinion.
|
|
|
|
|
|
I’m a full visually-able user and I love looking at websites. I know though, that not everyone experiences websites in the same way. Browsing websites at different screen sizes is a hot topic at the moment, but lets not forget that it’s not just mobile users that experience websites differently, blind users experience them in a way you might not even realise. So I started using a screen reader to see (I suppose I should say “experience”) how a blind user navigates a website. In the country of the blind, the Lynx-compliant site is king.
|
|
|
|
|
"I think we’ve got a moral obligation however to help blind users navigate the web"
That's an interesting comment - but the reality is that this isn't just a moral obligation, in some countries this is also a legal obligation. Here, in the UK, this is covered by the Disability Discrimination Act.
|
|
|
|
|
Yes, but as far as I'm aware nobody has yet been prosecuted for failing to comply with this on a website.
I've tried arguing for this at a couple of previous employers, but their attitude is its not worth the hassle as there's little chance of prosecution.
Morally objectionable, but seems to be standard business practice.
|
|
|
|
|
Rob Grainger wrote: Morally objectionable, but seems to be standard business practice.
Indeed, but the RNIB is beginning to make moves on this here in the UK.
|
|
|
|
|
I'm really glad to hear that.
Interestingly, good accessible web design often overlaps with good web design anyway - not only do you improve accessibility, but as a side effect your site is easier to search, more adaptive to browser differences, ...
|
|
|
|
|
In this post I use ScriptCraft, Minecraft, and L-systems to create fun in-game fractals and discuss how you can too. ScriptCraft is a Minecraft mod that allows you to run JavaScript inside the game using the Java Rhino library. L-systems were originally created by a Hungarian botanist named Aristid Lindenmayer who was interested in modeling plant growth. You can model arboreal growth, brush and shrubs, and also roots (by changing the modeling environment a bit to bring about different tropisms). You can do more than model trees though – there are tons of interesting fractals to make... Pro tip: make you sure experiment with lava and water for cool 2D fractals turned 3D.
|
|
|
|
|
Free apps are dangerous, yet free is the dominant business model most mobile apps are taking these days. The roadmap is simple: grow as quickly as possible, then insert ads of some kind or get acquired. For consumers it offers a crummy set of choices: either losing the countless hours you put into the app or have your private data sold to marketers — since as well all know, when the product is free, you are the product. So how are we to trust investing time (our most valuable asset) in free apps that seem to inevitably "jump the shark," no matter how cool they start out? Are paid apps the answer, or will we need something more complex to keep developers in business? Once again, with feeling: You get what you pay for.
|
|
|
|
|
I find it annoying when people complain about advertising/other ways of selling user information in a free app. Why should someone take the time to create and (probably more importantly) support an application if they get nothing from it? App developers need to eat too (and web developers too, since the mobile app ecosystem pretty closely mimics the web ecosystem). It's a service like any other, real people have to use their real time to make it, real time that they could use for work, play, or anything else.
Don't get me wrong, I'm not saying there isn't anyone out there who wouldn't want to just make an app for fun. Even in assuming there are people who would both create and support it for nothing, they'll probably get bored with it at some point (and decide, "I don't really care enough that it doesn't display properly on your obscure phone model"), and they aren't likely in the majority. But, I find, at least for me personally, once I have a working version of a personal project, I don't care to waste time making bug fixes (beyond the glaringly obvious), and I usually move onto something new. I couldn't see supporting an app if I wasn't getting something for it.
|
|
|
|
|
What about the other option? Paid apps. I'd happily pay for my apps/services if I never had to see another ad (*cough* Code Project *cough*).
I suppose the problem is that the general masses prefer free/ads. Because of them, we all have to deal with free garbage jam packed with ads.
It's always nice when a developer releases a free/ad app, but also releases a paid/adless version. I wouldn't be opposed to making this a required model for a given ecosystem (e.g., iOS).
Disclaimer: I didn't read the article... maybe it says something similar.
|
|
|
|
|
Sure but people who pay for apps usually aren't making those complaints. Personally, I prefer the free-with-ads for most things (especially if I don't know if I'll like it), but I completely understand that I will be advertised to, and some of my personal information sold, and consciously accept that (of course, I never give an app any information it doesn't need, for example if a game asks for my phone number and it isn't optional, I delete it or give it a fake number if it doesn't verify it). It's just the whiny self-entitled people who think they should get something for nothing that bother me.
|
|
|
|
|
We all know now that Windows 8 sales have been.... disappointing. You can blame the hardware. You can blame Windows 8's mixed-up interfaces. You can blame the rise of tablets and smartphones. Whatever. The bottom line is Windows 8 PC and laptop sales have been slow. So, what, according to Amazon, in this winter of Windows 8 discontent has been the best selling laptop? It's Samsung's ARM-powered, Linux-based Chromebook. Shocked? Amazed? Why? The Chromebook has several things going for it. Its interface is primarily the Chrome Web browser. Who can't use a browser?
|
|
|
|