Ask HN: Which coding guidelines do you use? - <AUTHOR>

Always interesting to see what code guidelines people use in what language.
Personally, I use the following for PHP: Basic Coding Standard: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md
Coding Style Guide: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md <comment><USER2> Oh, it's a question about PHP... Anyway, I either use the one that's official for the language, the one that applies to the project I'm just working on, or the one that seems the most sensible to me. For the latter I normally check a few very popular projects for the language and see what they agree on.

</comment><comment><USER3> You don't have to follow guidelines if you are using a modern IDE. Guidelines should follow your code. VS 2012 + ReSharper.

</comment><comment><USER4> K&R braces in all things. Because that is the One True Way to do it.

</comment><comment><USER5> PEP 8 for Python,

Go fmt all the things

</comment><comment><USER6> Spaces. Not tabs. No exceptions.

<comment><USER3> > No exceptions

try { ... } catch {}

Seems a bit radical, but hey, who am I to argue.

</comment></comment><comment><USER7> GNU for C/C++</comment>


The Node.js cpu blocking thing - <AUTHOR> http://blog.bitcartel.com/2012/05/nodejs-cpu-blocking-thing.html

<comment><USER2> You forgot one point:

After you used all cores on one machine with Go you have to use the another machine with another cores: how do you scale then? You have to build a cluster similar to Node in Go and at the end you have to manage co-routines + the cluster => Node is easier to scale because you just focus on clustering and not on both threading and clustering.

<comment><USER3> Author here. Go is easier. As demonstrated, a single Go process can take advantage of multiple cores on a single machine. With Node you launch multiple Node processes, one for each core, and manage them with the Cluster package.

To take advantage of multiple machines, it's pretty much the same for any language or platform, as the cluster of machines will need to be managed by yourself or a third party like Heroku. Except with Node, you not only have to manage a cluster of machines, you also have to manage a cluster of processes on every one of those machines!

<comment><USER2> > you also have to manage a cluster of processes on every one of those > machines!

you just set a number of cluster/processes per machine, that's it. there is no dedicated management for clusters on multiple cores. That's the benefit of clustering as scaling method with Node: one method scales on multiple cores and/or multiple machines. Not go-routines and clustering like Go—the application design will be much more coherent instead of using go-routines AND cluster where a reference implementation is missing (but I am repeating myself).

> as the cluster of machines will need to be managed by yourself or a third > party like Heroku.

Rather you should write your own cluster management in Node. You could take some kind of a web server or Heroku that starts all the app server processe per connection but that's old-school.

</comment></comment></comment><comment><USER4> good article! I agree with the last comment "node is great for javascript lovers", which I think says it all. Until now with node, how many js developers had to worry about concurrency or scalability? The fact is node allows the (originally js) developer to do everything he wants in one language, both on the server and browser side. And it works for most sites. If I get 1,000,000 visitors per month, and assume only 16 hrs a day of real activity, that gives me 1,000,000 / 30 / 16 / 60 / 60 = 0.58 request per second. Which is still easy enough for node to handle. I've been programming with Node a lot lately and find it easy since I can use my networking programming knowledge from C in another language I also know well i.e. javascript, but Go might be on the todo list of things to check out next.

</comment><comment><USER5> What a stunningly pointless article. Author writes code to achieve non-useful- goal exactly the same way in 2 languages and discovers that one is faster than the other. Different languages have different methods of efficiently achieving a goal.

<comment><USER3> I did think about putting in some "useful" code, like encrypting data, but then people would be complaining about the implementation of the crypto libraries. The point was to demonstrate how easy it is to block the Node event loop, and the impact on concurrency.</comment></comment>


Ask YC: Good place to play chess online - <AUTHOR>

I want to play chess with a family member over the internet. Can anyone recommend a simple place that allows me to do that? Preferably without registration. <comment><USER2> RedHotPawn has been fun for my friends and I.

One of my favorite features is one that we're also implementing for Chron X- The Game sends an email everytime your opponent makes a move.

This allows you to play a game slowly over time if you want, or play at the same time for hot and fast chess action ;)

<comment><AUTHOR> that's cool, I'll give that a go :) thanks</comment></comment>


Java data compression - <AUTHOR> http://www.theeggeadventure.com/wikimedia/index.php/Java_Data_Compression

<comment><USER2> The test data is 1M CONSECUTIVE integers? Really?

I don't know for a fact that that leads to some weird optimizations for certain algorithms, but I would have at least picked some data sets that seemed more realistic.

</comment><comment><USER3> What a waste of time.</comment>


Ask HN: How do I sell my bootstrapped business? - <AUTHOR> I have 6 year old web app, with 600k users, 40k unique visits per day, gross around 120k per year, and net around 70k. It's bootstrapped, I'm the only employee, and I own 100% of the company. It takes very little work to keep it going, and it's a sweet gig.
However, I'd like to eventually exit if I could. Honestly, I enjoy starting businesses, but my interest wanes, and I'd like to be emotionally freed up to work on other projects and not feel guilty for neglecting my golden-goose.
Ideally I'd like to sell in the next year or two for $3-4 million in cash. Is that ridiculously optimistic or might it be possible?
The only thing I know to do is cold contact my competitors and pitch the acquisition to them, but I hate the idea of giving them confidential information about my business if they actually have no interest, or no means to purchase.
I suppose I could also cold contact lateral businesses that my app might compliment. But does cold contacting in this case work?
Any advice on how I could sell my business? Should I find a broker to help me, or something? <comment><USER2> I worked in M&A in the valley for years. A 6 year old app with tiny revenue. You'd be lucky to get 1x the net. Unless you have some sort of IP that's patented or patentable, what would an buyer be purchasing that would justify such a multiple? Your user list is worthless, unless they are purchasers. I recommend you automate whatever you can an keep it or hire some hungry Cal student to keep it up relevant and get a job and put the cash into another app or into the market.

</comment><comment><USER3> For stable business you normally look at a P/E multiple of 10. So in your case it will be around the $700k mark. However, if it is growing, and growing quickly, then $3 - to $4 mil is possible.

</comment><comment><USER4> Probably [https://www.sideprojectors.com](https://www.sideprojectors.com) owner will come here and will promote his site ;)

</comment><comment><USER5> Yes, find a business broker. Even if you are not ready to sell they can help put the company in a better position to sell in a year or so. If you can't find a broker, do some basic PR about the company... they will find you.

Broker or no, expect to give out confidential info to your competitors as they are the ones most likely to buy. That's just part of the risk of selling.

</comment><comment><USER6> You can always try a site like flippa.com. As for the valuation, it's probably a bit optimistic but I guess it never hurts to see what someone might be willing to pay. But my personal guess is it's going to be a lot less than that

</comment><comment><USER7> A business making 120k a year with a net of 70k a year is only worth 210k. Think 3x net. How many of the 600k are paid users if you have 40k uniques per day? If it's all as rev than it's lower than 3x.</comment>


Ask HN:Would you build or use such a service? - <AUTHOR>

If you are a web developer then you have no doubt rolled your eyes more than once at a suggestion by some wannabe entrepreneur like me that you should work on his brilliant idea for equity. We all know what your answer was - naff off or some less polite variation of the phrase. That was certainly the sort of response I got.
So now I get it, you developers are the salt of the earth and your time is worth more than any half-baked idea could possibly offer. Be that as it may, there is obviously quite some demand for this sort of thing and what follows is a suggestion for how both parties might meet half way.
So my idea is for a unique marketplace that brings people with knowledge together with people in search of it. I know there are many of these but this will have the following key differentiators or unique selling points:
1.  Learning will be project based in that a pupil will be able to propose a project that they wish to accomplish and tutors will bid to guide them through it. My thinking here is that if I want to learn Ruby on Rails for examples, I may have a project in mind that I want to use it for. I am likely to learn better by working on a project but even more so if that project is my great and brilliant start-up idea. For pupils without project ideas or tutors that prefer to work with their own projects, tutors will also be able to define standard projects that they prefer to use in their lessons.
2. Pupils and tutors will have the option of paying and accepting payments respectively in equity instead of cash or part equity part cash. The difference between this and the often frowned upon request to work for equity is one of time. It is one thing to be asked to work full time on and take responsibility for developing an application; it is quite another thing to be asked to guide someone through doing it. The difference as I say is one of time I think. The latter should take less time. The tutor will review the project, devise a plan for the pupil and prepare lessons or gather text or relevant examples for each lesson in the plan. Basically, the tutor will tell the pupil what to do and offer text, examples and general guidance on how to do it. Bids will include how long the tutor thinks the project will take, how much they will charge and how involved they will get etc.
3. The marketplace could also offer pupils the option of charging fees back to their employers who will in turn have the ability to approve or reject project proposals as they may want to insist on the projects being of some benefit to the company. This feature would not have to be available at launch if at all but it could help the marketplace gain traction. I envision companies becoming more willing to allow their employees to do side projects and gain knowledge in doing so, as part of their development plans etc. Rather than actively market to enterprises though, their employees could do the job for you.
So what do you think? Is it feasible, would you use it, will you build it (for equity?)? By the way, if you don't buy the pay by equity feature, what do you think of this as a cash-only marketplace? Oh and one last thing, the marketplace will of course make money by taking a share in cash payments or a no-loss stake in resulting start-ups for equity payments.
So can we build it? Yes we can! <comment><USER2> It's not that programmer time is worth more than any idea. The issue is that an equity agreement requires a lot of trust that both of you will put a lot of work into this venture. Too often equity-for-programming deals are offered by an MBA type who doesn't have the ability or desire to add value to a business themselves, but still wants to be a founder. If you can't prove that you're not going to abandon the project in a month, you're going to have a hard time convincing people to put any value on your equity. Providing some cash is one way you can prove you are serious. Another is to actually do a big chunk of the work yourself.

I recommend that you find an idea that is simpler and less "meta", put some work into it, and then try to attract more developers.

</comment><comment><USER3> At its heart, the "just in time mentoring" or "rent-a-mentor" aspect is interesting and might be popular.

I think the injection of impossible-to-value equity into the payment model confuses things. The kind of talent looking to pick up semi-anonymous part- time piecework over the internet wants cash, not promises of shares in some unknown startup. What you're proposing is freelancing more than founding/investing.</comment>


Introducing Android Studio - <AUTHOR> https://plus.google.com/+GoogleDevelopers/posts/ffufAvz9zcz <comment><USER2> This is huge. I've held out on Android development for many reasons, but my visceral hate for Eclipse is one of them. I know I've been able to use IntelliJ before now, but Eclipse was Google's example in tutorials, etc.

Now I'm very excited to make an Android app.

<comment><USER3> Why does everyone seem to hate Eclipse? I've been using for a while and I can't find reasons to dislike it.

<comment><USER4> I use Eclipse extensively personally, but the one thing that drives me nuts about it is it's general speed. Conversely I'm so well versed it in I don't have a strong desire to replace it at the center of my work flow. Just been getting better/faster machines over the years.

<comment><USER5> They took a step back with the CSS theming disaster which seemed to slow down the UI dramatically. Other than I have never hated Eclipse. It's very productive for Java development. That said I use SublimeText for every other language...

<comment><USER4> For quick edits I will turn to jEdit or vim. I've also been giving LightTable a try and enjoying the early stages.

</comment></comment></comment></comment></comment><comment><USER6> The early access preview (<http://developer.android.com/sdk/installing/studio.html>) is _definitely_ prettier than Eclipse. Not that that's a high bar to clear. It also seems to be less stable, which _is_ a high bar to clear. ;)

Yeah, I know, pre-release software.

The windows seem to take a long time to load, too. That strikes me as odd -- it's one thing when you're starting up some sort of interpreter, but several seconds to scan the project directory or open a file? Perhaps that's another pre-release issue.

The layout XML editor looks like a big win, though. The syntax awareness, suggestions, documentation access, formatting and just all around general helpfulness seem to be about 1000x better than Eclipse. That alone would make it worth the switch! I think the biggest time sink for me while working on layouts is remembering "what's the darn attribute for..." It's all right there in glorious detail.

The realtime WYSIWYG view is . . . cool, I guess. ADT already had that, though you had to switch to a different tab for it. Maybe I'm missing something; it doesn't seem _that_ revolutionary to me. It still doesn't handle custom views, which I use a lot of. (And I mean a lot! Custom container views, too.) And I don't really like feedback while typing, anyway. YMMV, of course, but it looks to me like the big win is the text editor itself, not the graphical display.

I've been meaning to get off of Eclipse for a while now, so I'll play with it more and watch how it changes. For now, color me experimental and cautiously optimistic.

<comment><USER7> Every time I open eclipse I feel like crying. Is just that awful (usability- wise).

On my search to replace Eclipse for my android development I think I came across IntelliJ and it was very resources-heavy compared to eclipse which in the end made me give up on it. Let's hope it's more efficient now...

<comment><USER8> Make sure you disable any plugins you don't need for IntelliJ Idea otherwise it will just load every plugin for doing almost everything under the sun which can make it a bit bloated.

</comment></comment></comment><comment><USER9> Early access preview available now:

<http://developer.android.com/sdk/installing/studio.html>

<comment><USER10> Just a head up: you will need to edit the configuration to run on device (the default only launches on AVD). Took me a while to figure that out.

</comment></comment><comment> k-mcgrady I've just finished building my first proper Android app. I've built simpler things before but this was the first one that took significant development time. I would guess that about 20% of my time was spent debugging and fighting Eclipse. I thought Xcode sucked but it looked flawless compared with eclipse. Freezes, crashes, multiple emulators launching and none of them actually running the app. Errors in my code that weren't actually errors and were fixed through rebooting Eclipse.

If Google can make Android Studio good it's huge news for Android development.

</comment><comment><USER11> I am excited for this. In my mind the importance of having a simple and targeted IDE can't be overstated. The best part of developing in C# or Objective C is Visual Studio and Xcode. Hopefully this does for Android development what those IDEs do for their respective platforms.

</comment><comment><USER12> Starting at about 35 min in <https://www.youtube.com/watch?v=9pmPa_KxsAM>

<comment><USER12> The killer feature that they showed is an integrated UI layout preview tool, in a pane alongside the editor. Click on a widget in the preview to select the element in your layout file. This is neat but fairly ordinary; the great part is that it can show multiple previews at once, for different device sizes. Or for different locales. These all appear to update very quickly, if not live, when you change your code.

</comment></comment><comment><USER13> This sounds great. Google should've built their own IDE for Android a long time ago. It even has live code updates, and it can show how the app looks on different form factors.

TC has a summary on it:

[http://techcrunch.com/2013/05/15/google-launches-android- stu...](http://techcrunch.com/2013/05/15/google-launches-android-studio-a- development-tool-for-apps/)

<comment><USER14> "It's an IDE based on IntelliJ."

I'm in.

<comment> brown9-2 I wonder if they've licensed something from JetBrains or if this "IDE" is an extensive plugin on top of the free version of IntelliJ.

<comment><USER15> It's this, they said it was based on the community (free) edition of intellij.

<comment><USER16> That makes me angry. I really like Jetbrains as a company and you would think Google could spare some money and pay Jetbrains something.

<comment><USER17> CTO of Jetbrains is talking about this at the moment at Google IO. It could have been a collaboration.

<comment><USER18> Hell, imagine all the PR at the moment. They don't just do Java, they have IDEs for PHP, iOS, etc. I wouldn't be surprised if their sales took off as a result of this keynote.

<comment><USER19> I agree. I see it as a massive win for JetBrains!

</comment></comment></comment></comment></comment></comment></comment></comment><comment><USER20> Eclipse is a constant source of small annoyances for me, none of which by itself is a huge deal but when taken together color my view of the editor negatively.

Unfortunately, switching to Android Studio presents a different set of issues, like lack of Perforce integration (using Perforce is out of my control here, unfortunately).

I'd assume some sort of hybrid Android Studio/IDEA setup is possible, but even still the Pro version of IDEA that I would seemingly need to get any Perforce integration working is priced at a point ($499 and up) where I'm not sure I could make a justification for the purchase. Eclipse kinda sucks, but it also mostly works and the perforce integration on it is free (and also quite good, I have no idea if IDEA's is any good).

I could, of course, just eschew IDE/VCS integration, but editor integration is, in my experience, kind of a big deal with Perforce because of the rather old-school model it uses of checkouts. It becomes really annoying to merge code in if you don't preemptively check things out before you change them, and having the IDE manage this by just checking things out when you first start editing them is a huge win. Pseudo-ironically, if the VCS I used were any of the ones Android Studio/IDEA gives you for free having support for it in the IDE would be less of a big deal for me, I'd just do all the VCS stuff at the command line.

<comment><USER21> I don't get it. Perforce is ~$200/seat/year. IDEA at $500 seems like a no- brainer compared to limping on with Eclipse.

<comment><USER20> I work at a company that mandates Perforce for political reasons and getting budget for a $500 purchase when I can't reasonably articulate the benefits over the free thing we've been using all this time would be an uphill battle that I'm honestly not sure is worth it, because while I find Eclipse annoying I don't have enough experience with IDEA to know that it is not annoying in a different set of ways.

I suppose I will try the 30 day demo of IDEA and see if it is worth fighting for, but probably not until Android Studio is more baked because I've played around with it enough to know that the 0.1 designation is warranted at this time.

<comment><USER21> I can't even begin to calculate the amount of time I wasted on Eclipse. I hated it. I tried to use eclim, which kinda work, but started crashing vim (infrequently) which is worse than not having anything. At least once every two weeks (for three years) I would get so fed up with how slow it is that I'd spend an hour or two trying to fix it.

It's hours and days wasted, and that's before I consider any difference in productivity while actually using each IDE. If any of this sounds familiar, do spend a couple of weeks in the free version of IDEA. It was night-and-day for me. The worst part will be your muscle memory (e.g. stepping through the debugger).

</comment></comment></comment></comment><comment><USER22> I've been developing Android apps for a couple of years now. On my machine, Eclipse degenerated to the point where building and running an app would lock up my machine for about a minute. So I made the switch to IntelliJ. It's been great so far, much more responsive. But there have been a few Android tools from Eclipse (the layout preview is worse in IntelliJ) that I've missed. So I'm insanely excited that the Android team is going to be building off of IntelliJ now.

The next thing I'm waiting for is the new, Gradle based, build system. <http://tools.android.com/tech-docs/new-build-system>

</comment><comment><USER23> Many of us game devs use C++ for performance and especially cross-platform support, so I am very interested in seeing how NDK support turns out in this. Debugging native code in particular has always been a pain point even for people who don't hate Eclipse.

<comment><USER24> This will be make or break for me as well. I'm able to code C++ with Visual Studio (and Visual Assist X) and compile it directly in the IDE with vs- android.

The only thing that could make be switch over would be a robust NDK debugger.

<comment><USER25> Try Nsight Tegra VStudio. <https://developer.nvidia.com/nvidia-nsight-tegra>

It's still rough and hampered by ndk's buggy gdb. But when it works it's beautiful! Visual Studio stepping between java and C++!!

</comment></comment></comment><comment><USER26> The resource preview seems to be the best feature of the new Android Studio - the multi-device layout preview is already available in the latest version of the Android development tools for Eclipse, so I'm not sure why that was such a big announcement.

I'm a huge IntelliJ fan from my days doing server side Java, so I'm definitely looking forward to ditching Eclipse. I just hope it handles Android libraries better than IntelliJ used to.

</comment><comment><USER27> So stoked, I love Intellij, Rubymine, and PyCharm but for some reason setting up Intellij to do Android dev is always so difficult (and the Jetbrains pro version is not cheap at around 600 bucks iirc). If Google has made any of the env setup better I am all about this.

<comment><USER28> The personal license (aka a person owns it, not a company) is €179. From time to time they have huge discounts - they had a Black Friday discount of 75%. Recently there was a 50% discount.

Just watch the news on reddit or here :)

<comment><USER29> Your company can't buy a personal license for you, so you have to pay for it on your own.

I first got a pro license of phpstorm at work and liked it so much i got a personal license for my hobby projects. For me the inspections are what make the difference with any other IDE or editor, with the refactoring and code navigation functionality in close pursuit. Phpstorm runs fast enough even on my clunky old atom netbook, and the UI fits on its 1024x600 screen.

</comment></comment></comment><comment><USER30> I switched to IntelliJ from Eclipse for Android development a few months ago. Best decision I've ever made.

</comment><comment><USER31> Well after the 300MB download, I tried to create a hello world project on fully updated Mac 10.8.3 and my friend on a Windows 7 machine. Punch in a project name and go. Failed on both.

Preview or not, you don't expect such dribble from Google.

Mac error was:

Can't register given path of type 'SOURCE' because it's out of content root.

Windows error was:

(After env var fix) "There must not already be a project at this location" and would not let a new one be created.

If they can't test enough to guarantee basic project creation on stock standard OS's they shouldn't release it.

</comment><comment><USER32> I havent kept up with Android development much, but have they addressed the simulation and UI building issues (when compared to IOS or Windows Phone development tools)?

<comment><USER33> > have they addressed the simulation and UI building issues

I don't know what UI building issues you're referring to but the intel based emulators run very quickly and I have no problems using them. Though I still prefer testing directly on hardware, for different form factors that isn't always an option.

<comment><USER32> I just remember some of my old co-workers who were developing cross-platform mobile apps complaining about how difficult it was to do UI stuff on Android compared to IOS/Winphone. It looks like they have addressed those concerns though

[http://www.theverge.com/2013/5/15/4333534/google-android- stu...](http://www.theverge.com/2013/5/15/4333534/google-android-studio)

</comment></comment></comment><comment><USER34> Any indications of when this will be released?

<comment><USER35> There'll be a session about the new tools in a few hours, so there'll probably be more news then.

<comment><USER5> Arg, missed that! Can you post a link?

<comment><USER35> It doesn't look like the videos are up yet.

</comment></comment></comment></comment><comment><USER36> Lately I've been forced to use eclipse for Android development to create a demo app for our technology(* ). The general lack of responsiveness of the UI was so annoying that I basically took to doing all my editing in emacs and just manually refreshing eclipse windows for UI changes, build and DDMS views for debugging. A lot of my development is C/C++ code (NDK build) which I'm doing completely in emacs anyway, it mostly worked out for me.

Can someone who has experience in IntelliJ tell me how well it might support a workflow involving an external editor ? Basically I'm trying to decide whether it's worth investing the time to switch over for my use-case. Many thanks in advance for an informative answer.

(* ) for this -> packetzoom.com

</comment><comment><USER37> The news is that they're switching from Eclipse to IntelliJ as the base for the Android tools. The demo didn't really show too much that was new, today's Eclipse tools can show multiple screen form factors and languages just like in the demo.

</comment><comment><USER38> I wonder if these guys are going to be asked to change the name of their app: [https://play.google.com/store/apps/details?id=com.kaushal.an...](https://play.google.com/store/apps/details?id=com.kaushal.androidstudio)

<comment><USER39> I wouldn't be surprised since they're not following the brand guidelines.

[http://developer.android.com/distribute/googleplay/promote/b...](http://developer.android.com/distribute/googleplay/promote/brand.html)

</comment></comment><comment><USER40> This could be what pushes me to start Android development. I just traded one of my spare iPhone 4s for a Galaxy Nexus, and started to dig into dev. But from my admittedly brief foray, it looked like a lot more fiddling than I cared to undertake right now. Sure, I use a combination of vim, xcodebuild, and a small bit of Xcode _now_ , but if Xcode didn't exist as an IDE when I started iOS/Mac dev I wonder how far I would've gotten. As soon as the download link for the Android IDE is published, I'll be taking a concerted look into it.

</comment><comment><USER41> Now I only need a VI plugin for this IDE.

<comment><USER42> ideavim is your friend

<comment><USER43> That is fantastic, thanks! Idea just became my default IDE.

</comment></comment></comment><comment><USER44> While I'm quite excited about this, I'm surprised by all the hatred for eclipse in this thread.

I develop in Java for both fun and profit using eclipse and it's been running solid ever since I followed the tips given in this SO thread (esp putting the jvm in a ramdisk) [http://stackoverflow.com/questions/316265/tricks-to-speed- up...](http://stackoverflow.com/questions/316265/tricks-to-speed-up-eclipse). Perhaps those whose sole complaint with eclipse is its performance should try some of those suggestions.

<comment><USER45> Those are good suggestions that can make a difference, but if you haven't tried IntelliJ you really should. I used eclipse for years. Wish I could get those years back now. Eclipse is great, but IntelliJ is better.

<comment><USER44> Okay, I've been using it since yesterday and I think it's _amazing_.

</comment></comment></comment><comment><USER46> This is encouraging news. I hope the rest of the industry catches on to IntelliJ tooling.

Being offered Eclipse/Netbeans tools is the equivalent of getting a Dell laptop for work.

</comment><comment><USER47> Is Eclipse worse or something when doing Android dev? It seems just fine to me doing normal Java dev, but to hear people talk it is the worst IDE ever invented.

<comment><USER48> I hate its workspace concept with passion.

Most IDEs just use some kind of project file, or are able to use directly build tools. But Eclipse always has to create this workspace full of metadata that it likes to corrupt every now and then!

<comment><USER49> you can specify the workspace locn at startup (with -d iirc) so with an alias and/or some bash scripting you can use a separate workspace for each project (I have my projects in ~/proj as subdirs with commands to select which is current - although I only use eclipse for c dev work, intellij idea for java + python).

also, use a separate build tool (eg ant) and don't store build info in eclipse (basically, use as default a config as possible and "import from" the build tool). then if you do need to start from scratch you lose very little (and don't add the eclipse metadata to git).

<comment><USER48> All nice advices, except they don't work in Fortune 500 corporate environments where the tooling allowed in "your" computer is project dependent.

</comment></comment></comment></comment><comment><USER50> I would not be surprised if Google now acquires Jetbrains.

</comment><comment><USER51> This is definitely awesome. I look forward to the stable release and moving away from Eclipse.

Does anyone know if Android Studio will also be available as a plug-in for people who already have IntelliJ installed? I'm not too keen on having multiple versions of the same IDEs, that I have to each customize and maintain.

<comment><USER51> This post answered my question: [http://blog.jetbrains.com/blog/2013/05/15/intellij-idea- is-t...](http://blog.jetbrains.com/blog/2013/05/15/intellij-idea-is-the-base- for-android-studio-the-new-ide-for-android-developers/)

"You can see the updated Android support in the Early Access Preview of IntelliJ IDEA v13 that is opened today...This EAP build includes all of the new features of Android Studio except for the new project wizard and the AppEngine cloud endpoints integration. These latter features will also appear in our EAP builds in the coming weeks."

</comment></comment><comment><USER52> And here I thought I'd regret switching to IDEA due to the lack of official Google support. How serendipitous.

</comment><comment><USER53> Looks great, too bad it won't even launch for me on Windows 7. Anybody else running into problems running it?

<comment> tomh- Doesn't launch in windows 8 either

<comment> tomh- Try to add a JDK_HOME environment variable which points to your JDK e.g. C:\Program Files (x86)\Java\jdk1.7.0_07

</comment></comment></comment><comment><USER54> This is easily the most exciting thing to happen to Android developers in a long time. I am super jazzed.

</comment><comment><USER55> JetBrains Company Blog gives details on Android Studio: [http://blog.jetbrains.com/blog/2013/05/15/intellij-idea- is-t...](http://blog.jetbrains.com/blog/2013/05/15/intellij-idea-is-the-base- for-android-studio-the-new-ide-for-android-developers/)

</comment><comment><USER56> Android Studio, at present, embeds Eclipse...

./sdk/tools/lib/monitor-x86_64/

This seems to be the DDMS view of the Eclipse ADT.

</comment><comment><USER57> I've done one Android app for a college project using Eclipse a couple years ago. I've been wanting to get back into developing for the platform. Anyone have an opinion on a novice Android developer trying out an early access preview for this IDE?

</comment><comment><USER58> Anyone that needs a color scheme, here is mine [https://github.com/prignano/Obsidian2-IntelliJ-Android- Studi...](https://github.com/prignano/Obsidian2-IntelliJ-Android-Studio) already tested on Android Studio.

</comment><comment><USER59> Does no one see that this is an obvious transition to make a proprietary Android dev environment?

Sure, Eclipse can be a little buggy, but it's FREE.

I'd rather take a free, third party IDE over something that will just push Google closer to world domination.

</comment><comment><USER60> IntelliJ also just released IDEA 13 preview with all of the features. <http://confluence.jetbrains.com/display/IDEADEV/IDEA+13+EAP>

</comment><comment><USER61> This looks interesting. I've an iOS app for a local art group, and they've been bugging me for an android version. I'm going to take this as an opportunity to jump in.

</comment><comment><USER62> The BIG question in my mind is: will this work on ChromeOS?

<comment><USER63> I don't mean to jump on you personally, but your question is typical of something I don't understand: why do so many people seem to want to do desktop-type things on ChromeOS? It's not meant for that kind of work, and there are plenty of other OSs that are.

</comment></comment><comment><USER64> It doesn't seem to run on Windows 64-bit, here's the fix: <http://www.twosquared.com.au/blog/6>

</comment><comment><USER65> I was excited (tired of Eclipse), but after a test run, I think it is still slow, and still lack of native code debugging that just works, as in xcode.

</comment><comment><USER66> They're making it similar to developing Windows Phone applications, but in some ways even better!

The live preview of different layouts is FANTASTIC! I'm super excited!

</comment><comment><USER67> Is this to replace Eclipse or just be an option?

<comment><USER68> I think they will switch to this but Eclipse will always be option.

</comment></comment><comment><USER69> The great thing about Android Studio based on IntelliJ is that Kotlin plugin should work with no or minimal change to work there.

</comment><comment><USER70> Download link?

<comment><USER71> <http://developer.android.com/sdk/installing/studio.html>

</comment></comment><comment><USER72> This is exciting. My biggest headaches with Android stem entirely from Eclipse.

</comment><comment><USER73> Any word on if this will be free or paid?

<comment><USER68> This is based off the Free Community Edition from InteliJ so I think it will remain free like Eclipse.

</comment></comment><comment><USER74> Anything to not use eclipse!

</comment><comment><USER65> any improvement on ndk debugging ould be highly appreciated

</comment><comment><USER75> They finally ditched that horrible thing called Eclipse!</comment>


Five Black Fridays at the mall food court - <AUTHOR> https://www.vox.com/the-goods/2018/11/21/18104973/black-friday-mall-coffee-worker-experience-gloria-jeans <comment><USER2> "Gloria Jean's was the best job I ever had, because it was the only time I felt like there was community to be found in an unnatural environment built solely for the purpose of buying things. I care more about the women who worked there than I do, no offense, about anyone I met in school or from Twitter"

Makes me think of the movie Clerks, and other depictions of this spirit of community in a unnatural commercial environment. Somehow the environment greatly strengthens these human connection. I do have nostalgia for these days. Corporations, instead of perfecting this kind of warmth and making the working environment tolerable, perfected exploitation. Always short sighted short term profit.

<comment><USER3> Brings to mind one of my favorite Onion articles:

"Partygoers Mocked By Catering Staff"

[https://www.theonion.com/partygoers-mocked-by-catering- staff...](https://www.theonion.com/partygoers-mocked-by-catering- staff-1819566273)

 _Experts say mockery of the well-to-do by the serving class is a millennia- old tradition._

<comment><USER4> That reminds me of one of my favorite comedy series, Party Down. It was canceled largely because two of the actors (Adam Scott and Jane Lynch) were pulled into two major network shows (Parks & Recreation and Glee, respectively).

You can watch the first episode free here: [https://www.starz.com/series/partydown/episodes/5131/details](https://www.starz.com/series/partydown/episodes/5131/details)

</comment></comment></comment><comment><USER5> Best article I've read in a long time.

</comment><comment><USER6> meh

TLDR: his boss at a mall coffee shop was great and being a teen, he loved working for pocket cash on black fridays. i think the author has it all wrong and is mistaking his nostalgia and youth experience for the reality of modern day black friday. the fact he liked working is not a consequence of a particularly good boss.

not really worth the 5 minute read.

<comment><USER7> If you thought the author was a "he", you obviously didn't read it very closely.

<comment><USER8> yeah, this was very clear.. I mean there were even pictures.

</comment></comment></comment><comment><USER9> Is it just me, or is HN becoming a dumping ground for worthless stories from internet "media" rags like Vox, The Atlantic, etc.? Are these outlets spamming their stories to HN, or are people simply karma-whoring?

<comment><USER10> The perception is common but inaccurate. HN has always had plenty of general- interest articles.

HN's mandate is "anything that gratifies intellectual curiosity". As people's curiosities differ, so do their opinions about what's on topic. When you run into a streak of articles you don't like—and randomness guarantees such streaks—it starts to feel like HN has gone off the rails. The underlying system is more stable than that makes it seem.

Fortunately, if you don't like one article, there are others. For example, you can always look at what you missed yesterday: [https://news.ycombinator.com/front?day=2018-11-21](https://news.ycombinator.com/front?day=2018-11-21).

<comment><USER11> Oooh this link should totally go into the bar at the top of the screen.

I am often anxious about missing some important piece of news and it makes me keep reading, feeding my HN "addiction". If I knew I could just come back later and check yesterday's new I would feel a lot less compelled to finish reading the front page before it expires.

<comment><USER10> If we did that, what should the label be?

<comment><USER11> "Recently popular" or "popular yesterday" or just "yesterday", or "the day before".

<comment><USER10> Those are all too long. Perhaps 'recent'? But then the history goes back all the way, so that's a bit misleading.

<comment><USER11> I'd prefer "recently" then. Recent works too.</comment></comment></comment></comment></comment></comment></comment>


No, but I Saw the Game (1989) - <AUTHOR> https://www.criterion.com/current/posts/5794-no-but-i-saw-the-game <comment><USER2> Great movie. Stylistically it's aged quite a bit, but that in itself was interesting to think about when I watched it recently. If you're ever in Durham don't miss a Bulls game...great newer facility and the old one from the film is still available to see not far away.</comment>