archived
stringclasses
2 values
author
stringlengths
3
20
author_fullname
stringlengths
4
12
body
stringlengths
0
22.5k
comment_type
stringclasses
1 value
controversiality
stringclasses
2 values
created_utc
stringlengths
10
10
edited
stringlengths
4
12
gilded
stringclasses
7 values
id
stringlengths
1
7
link_id
stringlengths
7
10
locked
stringclasses
2 values
name
stringlengths
4
10
parent_id
stringlengths
5
10
permalink
stringlengths
41
91
retrieved_on
stringlengths
10
10
score
stringlengths
1
4
subreddit_id
stringclasses
1 value
subreddit_name_prefixed
stringclasses
1 value
subreddit_type
stringclasses
1 value
total_awards_received
stringclasses
19 values
True
xardox
null
My opinion at the time was the they should have used NeWS, not DPS. ;) DPS lacked the interactivity that NeWS supported (now known as "AJAX"). Now we're stuck with a host of random technologies mashed together that weren't originally designed to work together, with "AJAX" as an emergent after-thought, instead of a fundamental designed-in feature. But NeWS was dead by the time the web got popular. I developed a hypermedia browser with NeWS called [HyperTIES](http://www.donhopkins.com/drupal/node/101) at the University of Maryland Human Computer Interaction Lab for Ben Shneiderman in the late 1980's, and it supported downloadable (PostScript) code that implemented locally interactive "applets", many years before [Eolas](http://en.wikipedia.org/wiki/Eolas) patented that same idea and started suing everyone who made browser plug-ins. Here's some more info on [HyperTIES](http://www.donhopkins.com/home/ties/), and some [demo](http://www.youtube.com/watch?v=hhmU2B79EDU) [videos](http://www.youtube.com/watch?v=fZi4gUjaGAM). I've [scanned](http://www.donhopkins.com/home/ties/scans/) a lot of the design documents and other information about it -- let me know if you want to know more.
null
0
1317139713
True
0
c2myus1
t3_kssyt
null
t1_c2myus1
t1_c2mxvsh
null
1427653656
48
t5_2fwo
null
null
null
True
imMute
null
I like how they moved the "verify the sender IP/domain" step to **after** the "accept the incoming email" step. WAY TO PROMOTE BACKSCATTER SPAM, ASSHAT.
null
0
1317139714
False
0
c2myusd
t3_ksnfm
null
t1_c2myusd
t3_ksnfm
null
1427653656
0
t5_2fwo
null
null
null
True
mirashii
null
I have to agree. The ability to embed video in PDF has been particularly useful to me as a mathematician. When I want to demo some time evolving system during a presentation, I don't want to switch out of my presentation to load it. LaTeX -> PDF is pretty much the de facto workflow for formatting mathematics, so the ability to embed video in my beamer slides has been very useful.
null
0
1317139775
False
0
c2myv5h
t3_kssyt
null
t1_c2myv5h
t1_c2mxwdw
null
1427653662
30
t5_2fwo
null
null
null
True
kataire
null
You know it because of the way UTF8 works. Namely, values greater than 127 (the largest pure ASCII character) are written in a special way that identifies the character as consisting of multiple bytes. So if all characters can be represented within ASCII, UTF8 is indistinguishable form ASCII. If a UTF8 encoded file contains non-ASCII characters, you need to interpret it as UTF8 or else you'll get the wrong result. This is a problem regardless of which 8bit encoding you use. You'll notice that the bytes representing "á" in UTF8 are outside the ASCII range. This means without knowing the encoding, you can't tell how they should be represented. FWIW, even ASCII isn't strictly universal. There are 8bit encodings that are not based on ASCII at all.
null
0
1317139777
False
0
c2myv5s
t3_ksqu1
null
t1_c2myv5s
t1_c2mxcb0
null
1427653662
2
t5_2fwo
null
null
null
True
kyleflaherty
null
When we announced the winner of our JavaScript obfuscation challenge, I mentioned a couple of the big-picture lessons I learned from the successful entries. I’ve been asked to go a little deeper by sharing more specifics from some of the best entries we received, so I thought I’d highlight those here.
null
0
1317139928
False
0
c2myw3h
t3_kt22t
null
t1_c2myw3h
t3_kt22t
null
1427653674
1
t5_2fwo
null
null
null
True
shapul
null
Well, Acrobat already supports audio, video and 3D graphics playback in PDF files...
null
0
1317139930
False
0
c2myw42
t3_kssyt
null
t1_c2myw42
t1_c2mxjni
null
1427653676
4
t5_2fwo
null
null
null
True
ChangingHats
null
My biggest gripe is that you can't specify an ICC profile when printing.
null
0
1317139962
False
0
c2mywar
t3_kssyt
null
t1_c2mywar
t1_c2mx35p
null
1427653678
1
t5_2fwo
null
null
null
True
kataire
null
It is, if you think of strings as byte arrays. This is another reason I like Python (and Python 3 in particular). Byte strings are separate from unicode strings, which only contain the abstract code points rather than the specific byte representations. I'd take Unicode over the ANSI/ISO mess we'd have to deal with otherwise any day. At least it makes it relatively trivial to mix different scripts within the same string or file. EDIT: Language is hard, let's go shopping.
null
0
1317140058
False
0
c2mywvp
t3_ksqu1
null
t1_c2mywvp
t1_c2mwcg7
null
1427653685
1
t5_2fwo
null
null
null
True
genpfault
null
[Oh hey](http://charm.cs.illinois.edu/manuals/html/faq/manual.html). EDIT: Also, wtf is up with that license. It's as if they don't want people using it.
null
0
1317140067
True
0
c2mywx0
t3_ksm2f
null
t1_c2mywx0
t3_ksm2f
null
1427653685
1
t5_2fwo
null
null
null
True
smeezy
null
That's just the difference between the layers of implementation, isn't it? An AppInstaller should have members called AppState, PersistentStore, Path, etc. that it uses to perform its functions. But at the level of the "worker" objects, the intent is to encapsulate an *algorithm* rather than an object. In the ColorSpaceTransformer visitor case, the entire class may be nothing *but* algorithms, with all of the data coming from the visited object. The difference is emphasis: an OO class encapsulates data + operations. The emphasis should be normally on the data, which makes the class primarily a "thing". However, occasionally it is appropriate to emphasize the operations, where the data is merely an implementation detail. In that case, an "er" name is wholly appropriate.
null
0
1317140199
False
0
c2myxqq
t3_krzdp
null
t1_c2myxqq
t1_c2mx2zp
null
1427653696
1
t5_2fwo
null
null
null
True
aristeiaa
null
He seems to be inventing the wheel again ever so slightly - and not brilliantly. It's an interesting take though if you bear that in mind.
null
0
1317140223
False
0
c2myxvr
t3_krzys
null
t1_c2myxvr
t1_c2mytzi
null
1427653698
1
t5_2fwo
null
null
null
True
romwell
null
While this question is not directed to me, I believe that your suggestion would not have been practical because most people didn't have a NeXT, and text-mode browsing was the most accessible solution. Additionally, IIRC, first edition of HTML was very basic, and using PostScript for it would have been an overkill. Furthermore, HTML is meant to be rendered on screens of varying dimensions, which requires content to be in a format suitable for adjustment. PostScript is not such a format (in its basic usage, that is); it is something HTML document could be *rendered into*, but not a replacement for HTML. Yes, you could program anything in PS, but an upside of HTML is that it separates content from presentation (i.e. lets devices with varying display capabilities deal with displaying the content).
null
0
1317140311
False
0
c2myyex
t3_kssyt
null
t1_c2myyex
t1_c2mxvsh
null
1427653704
7
t5_2fwo
null
null
null
True
[deleted]
null
Is there an option to print out the embedded video as a flipbook?
null
0
1317140329
False
0
c2myyib
t3_kssyt
null
t1_c2myyib
t1_c2mxvx2
null
1427653706
14
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317140350
False
0
c2myyng
t3_krzdp
null
t1_c2myyng
t1_c2myuac
null
1427653707
1
t5_2fwo
null
null
null
True
xardox
null
Here's an example of [procedural PostScript graphics](http://www.donhopkins.com/home/archive/NeWS/leaf.ps).
null
0
1317140353
False
0
c2myyo4
t3_kssyt
null
t1_c2myyo4
t1_c2myoy0
null
1427653708
10
t5_2fwo
null
null
null
True
Timmmmbob
null
Yes but none as reliably viewable. For example, even Microsoft, who are the undisputed kings of compatibility have failed when it comes to powerpoint -- embed PDFs or movies on the mac version of powerpoint and they will completely fail to render on windows.
null
0
1317140464
False
0
c2myzbc
t3_kssyt
null
t1_c2myzbc
t1_c2myuip
null
1427653716
12
t5_2fwo
null
null
null
True
some_dev
null
It really depends. As far as I can tell, the linked article didn't really go into what kinds of algorithm problems were being given. Some algorithms are really simple to derive. If you can't come up with an iterative implementation of the Fibonacci sequence or traverse a tree without recursion, even without having seen it before, then I don't have any confidence in your ability to solve problems. Moreover, I do expect candidates to have a passing familiarity with algorithmic techniques and data structures. Not all algorithms are equal. On the other hand, I abhor "trick" problems that basically test whether the interviewee has seen the problem before. For example, finding a loop in a singly-linked list tends to fall into this bucket, along with swapping two numbers without a temporary variable. Utterly useless as a metric for determining programmer quality.
null
0
1317140511
False
0
c2myzjf
t3_ks1qu
null
t1_c2myzjf
t1_c2mr2kq
null
1427653719
1
t5_2fwo
null
null
null
True
generic_genus
null
OS X and linux do share the same printing system [CUPS](http://www.cups.org/), which is developed by Apple. And [this page](http://www.cups.org/articles.php?L205) indicates that PDF is natively supported by CUPS. I'd imagine all of Apple's print/e-mail/fax PDF functional mentioned by bondiblueos9 earlier will be based on CUPS, just Apple exposes the functionality beter than Gnome's way of selecting "print to file" (no setup is required for this I believe).
null
0
1317140516
False
0
c2myzmn
t3_kssyt
null
t1_c2myzmn
t1_c2my7yd
null
1427653720
8
t5_2fwo
null
null
null
True
fnmatrix
null
So you are doing the physics calculations (vector calcs) on the CPU alone? Why not try and use a GPU, or can you?
null
0
1317140591
False
0
c2mz02x
t3_ks62g
null
t1_c2mz02x
t1_c2mygd4
null
1427653727
1
t5_2fwo
null
null
null
True
migueldeicaza
null
It is not C++, but you did not read correctly my post. I said "They showed C++ doing xxx" then I say "When it comes to .NET this is how you do this". So the sample is C#, and was never intended to be a C++ sample.
null
0
1317140601
False
0
c2mz059
t3_kgl4f
null
t1_c2mz059
t1_c2kafie
null
1427653728
1
t5_2fwo
null
null
null
True
Taladar
null
It would be interesting to hear about those cases their algorithm supposedly handles better than git's does.
null
0
1317140686
False
0
c2mz0om
t3_kt058
null
t1_c2mz0om
t3_kt058
null
1427653734
7
t5_2fwo
null
null
null
True
aaronla
null
I suppose one can split the disciplines, but then you have graphical-artist | usability analyst. You can insist on calling graphical artists "designers" if you wish -- then the original semantic issue comes to the forefront. The OP's company trusted Dick to be a good graphical-artist-usability-analyist (maybe because his resume said "designer") but he was only a graphical-artist ("designer", alternate definition). Of course, trying to make a computer look like a book, I would also call into question his graphical-artist skills. He's neither a good designer nor a good designer.
null
0
1317140693
False
0
c2mz0q2
t3_krv1k
null
t1_c2mz0q2
t1_c2mus5f
null
1427653734
1
t5_2fwo
null
null
null
True
brianly
null
I've seen chemists embed video and another format (I forget the name) showing composition of molecules.
null
0
1317140761
False
0
c2mz15m
t3_kssyt
null
t1_c2mz15m
t1_c2mxuwp
null
1427653741
6
t5_2fwo
null
null
null
True
roju
null
> Almost no company would be OK with you sharing any part of their proprietary software, because the legal definition of what's OK and what's not OK would be too fuzzy. You will have to pry this permission from their cold, dead hands. I know people in TV, and they all have demo reels. *None* of the below-the-line people have official permission to use the footage for their reels, it's just one of those unspoken, unwritten ways the business operates. Perhaps software needs to be the same?
null
0
1317140983
False
0
c2mz2gz
t3_ks1qu
null
t1_c2mz2gz
t1_c2mumer
null
1427653758
1
t5_2fwo
null
null
null
True
brianly
null
You can until a user wants to put it in a PDF for "offline" use. This often starts "The web page looks great, but how can I...". I'm fairly good at handling these situations but when those type of requests are filtered by project managers you end up with feature requests for things like video.
null
0
1317140995
False
0
c2mz2jj
t3_kssyt
null
t1_c2mz2jj
t1_c2my7hb
null
1427653758
5
t5_2fwo
null
null
null
True
plasticscm
null
git does an excellent job but where we outperformed it is (IMHO) dealing with moved/renames during merge. Sample: divergent move: move a file or directory to two different locations on two branches and merge. It is handled as an specific conflict case by plasticscm, helping you to get it solved. Just an small example.
null
0
1317141167
False
0
c2mz3l1
t3_kt058
null
t1_c2mz3l1
t1_c2mz0om
null
1427653772
5
t5_2fwo
null
null
null
True
one-half
null
That would be awesome.
null
0
1317141213
False
0
c2mz3vy
t3_kssyt
null
t1_c2mz3vy
t1_c2myyib
null
1427653776
8
t5_2fwo
null
null
null
True
brianly
null
[Comparison of OpenXPS and PDF](http://en.wikipedia.org/wiki/Comparison_of_OpenXPS_and_PDF)
null
0
1317141286
False
0
c2mz4bb
t3_kssyt
null
t1_c2mz4bb
t1_c2mxox6
null
1427653782
3
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317141297
False
0
c2mz4dj
t3_ksqls
null
t1_c2mz4dj
t3_ksqls
null
1427653783
1
t5_2fwo
null
null
null
True
Maristic
null
Thanks. The PS version is 1721 bytes and human readable. Converting that to PDF on my machine, I find that a simple PDF version is 273061 bytes (almost 160 times bigger), and slightly more optimized (i.e., with internal flate compression), it's 129965 bytes (about 75 times bigger).
null
0
1317141325
False
0
c2mz4jz
t3_kssyt
null
t1_c2mz4jz
t1_c2myyo4
null
1427653788
7
t5_2fwo
null
null
null
True
jmdavis
null
It works really well overall, but it does mean that you have to be aware of the fact that slices can affect each other. If you really want a separate array, you use the `dup` function instead of slicing. But slicing really allows you to cut down on unnecessary memory allocations - especially when you're _not_ altering the slices' elements. It's one of the reasons that D1's Tango library is [incredibly fast at parsing XML](http://dotnot.org/blog/archives/2008/03/12/why-is-dtango-so-fast-at-parsing-xml/). And in D2, string is an alias for immutable(char)[], so string slices can't alter each others elements, so the whole issue of potentially altering other slices is eliminated (as it is with any array with const or imutable elements). But on the whole, if you're aware of the fact that slices affect each other, it can be quite useful. You just have to make sure that you actually dup arrays when you need them to be separate and that you restrict appending if you _do_ want slices to affect each other (since if one of the slices is reallocated, they're not slices of each other anymore). I can understand that slices are a bit odd at first though. I would really recommend reading [this artictle on D arrays](http://www.dsource.org/projects/dcollections/wiki/ArrayArticle) if you haven't already.
null
0
1317141332
False
0
c2mz4lf
t3_kqoz2
null
t1_c2mz4lf
t1_c2mwipu
null
1427653790
1
t5_2fwo
null
null
null
True
[deleted]
null
I love the idea of ZeroMQ. The implementation however... it's simply not possible to use it in a production environment. It's entirely too easy to crash it accidentally.
null
0
1317141385
False
0
c2mz4wq
t3_ksrsz
null
t1_c2mz4wq
t3_ksrsz
null
1427653792
1
t5_2fwo
null
null
null
True
rockum
null
It's not clear from the aricle, but for non-HTML5 browsers do they revert to Flash or to server-side generation of a PNG? They did mention that if HTML5 cannot do a good job with a page, they'll generate a PNG. Sounds interesting, so I looked at the Careers page. Lots of openings in New Delhi and less so in San Francisco. Who thinks us US programmers will be working in 10 years?
null
0
1317141403
False
0
c2mz50j
t3_kt17p
null
t1_c2mz50j
t3_kt17p
null
1427653792
4
t5_2fwo
null
null
null
True
romwell
null
>Yes but none as reliably viewable Which is why they decided to make PDF one of these? That aside, I am surprised that you can even embed a PDF into Powerpoint.
null
0
1317141425
False
0
c2mz55l
t3_kssyt
null
t1_c2mz55l
t1_c2myzbc
null
1427653794
4
t5_2fwo
null
null
null
True
kkiran
null
Yes!
null
0
1317141640
False
0
c2mz6em
t3_ks1qu
null
t1_c2mz6em
t1_c2mvqcn
null
1427653809
1
t5_2fwo
null
null
null
True
nascent
null
> you can have references to them Didn't remember that one, sorry. > I am actually saying C++ is better than D in this domain, because it is simpler, while having the same functionality. I don't really consider having two types that are exactly the same to be simpler. But you seem to be arguing that D should have done away with both and only had one, rather than C++ is perfect here. > D has rules to remember for the same thing. Remembering the differences of two different types, should not be much overhead for learning a language, especially since the type influences come from other commonly used languages. >> Right, I meant that it would use the GC, which is what you wanted. > But then it would not collect resources deterministically. You either want your struct to use the GC or you don't. We can argue about how the GC behaves, but that is an implementation detail with the expectation that D will be receiving updates that will make memory management easy with or without the GC. > I don't want polymorphic value types class MyDialog : Dialog { Button button; }; I may be mistaken on this, but if Button is a polymorphic class, then here is a button that is a polymorphic value type. In which case I am confused why you are saying you don't want this, when you clearly said you'd like to be able to do this. In case the response is similar to, "Its my choice." I'd like to reiterate that having polymorphic values is considered to be a bad idea, while I don't know the details I believe it was because special care must be taken as they cannot be used the same as a polymorphic reference type.
null
0
1317141668
False
0
c2mz6kv
t3_kljc0
null
t1_c2mz6kv
t1_c2mxs8z
null
1427653812
1
t5_2fwo
null
null
null
True
one-half
null
My favorite abuse of postscript is rendering the [mandlebrot set](http://emarsden.chez.com/downloads/mandel.ps) on your printer. Although I just found this [postscript raytracer](http://www.physics.uq.edu.au/people/foster/ps/psRay.ps) I'll need to look into.
null
0
1317141704
False
0
c2mz6s2
t3_kssyt
null
t1_c2mz6s2
t1_c2mx9um
null
1427653814
7
t5_2fwo
null
null
null
True
xardox
null
Here's an excerpt from Ben Shneiderman's [proposal for HyperTIES from 1988](http://www.donhopkins.com/home/ties/scans/UMIACSHyperTIESProposal.pdf), describing some of the stuff we did with PostScript in the NeWS version of HyperTIES: > 5) Invoking Procedures by Embedding Menu Selections > Selecting an embedded menu item currently produces a text, graphic or videodisk image, but the idea could be generalized to produce a procedure invocation. This would permit movement to a spreadsheet, graphics package, simulation, etc. Another important possibility is that the hypertext system becomes the user interface front end for almost any application. Each embedded menu selection could produce a command language operation, fill in part of a form, or make selections from traditional menu systems. A major application would be to provide easier to learn interfaces, which are less error prone, and possibly even faster to use if a rapid pointing device such as a touchscreen is used. > A further extension would be to develop a full control language to descibe complex sets of operations, in the style of HyperTalk in the HyperCard application on the Macintosh. Expansion in the direction of a User Interface Management System is a possibility. Later at Sun and the Turing Institute, we explored the idea of programming interactive hypermedia user interfaces with PostScript with a system called [HyperNeWS](http://www.donhopkins.com/home/ties/scans/HyperNeWSBrochure.pdf) and later [HyperLook](http://www.donhopkins.com/home/ties/scans/HyperLookScreenShots.pdf) ([manual](http://www.donhopkins.com/home/ties/scans/HyperLookManual.pdf)), which I used to port [SimCity](http://www.art.net/~hopkins/Don/hyperlook/HyperLook-SimCity.gif) to the Sun workstation.
null
0
1317141727
True
0
c2mz6wx
t3_kssyt
null
t1_c2mz6wx
t1_c2mxvsh
null
1427653816
15
t5_2fwo
null
null
null
True
grauenwolf
null
I can do the same thing in Windows, all I need to do is select PDF from the list of printers.
null
0
1317141744
False
0
c2mz711
t3_kssyt
null
t1_c2mz711
t1_c2my64b
null
1427653817
-1
t5_2fwo
null
null
null
True
joeycastillo
null
Ease of use, mainly. When I print to a CUPS virtual printer it puts the generated PDF into a folder for generated PDFs. OS X displays a "Save As..." dialog that lets the user save the document where they want it, and attach metadata like title, author and keywords. EDIT: Just out of curiosity, does anyone have an idea why this is downvote-worthy? I'd assume it's the usual PC-Mac pissing contest stuff, but to me this is more a matter of usability and delivering good UX. The CUPS way of doing it is a poor user experience; it's an engineer's solution. Mac OS X and some virtual printers on Windows offer something that's much less hostile to the user, and that's something I think we as programmers should celebrate and strive for.
null
0
1317141864
True
0
c2mz7px
t3_kssyt
null
t1_c2mz7px
t1_c2myeu6
null
1427653826
3
t5_2fwo
null
null
null
True
bonafidebob
null
I've always had to specially prepare the crappy code examples to get the the bug to statement ratio high enough. ...here's an opportunity to give awards for worst code that will be prized!
null
0
1317141877
False
0
c2mz7s9
t3_ks1qu
null
t1_c2mz7s9
t1_c2mukzz
null
1427653827
1
t5_2fwo
null
null
null
True
theeth
null
I understand your point quite well. Mine, which you did seem to miss, was that a PDF renderer with enabled javascript support could be used implement a PS interpreter. Nothing more, nothing less.
null
0
1317142129
False
0
c2mz9by
t3_kssyt
null
t1_c2mz9by
t1_c2my0z7
null
1427653847
3
t5_2fwo
null
null
null
True
[deleted]
null
...touche. Well, the rest of my point stands!
null
0
1317142225
False
0
c2mz9vs
t3_krv1k
null
t1_c2mz9vs
t1_c2myupo
null
1427653854
2
t5_2fwo
null
null
null
True
Liquid_Fire
null
Hm, well I use CutePDF on Windows and it also displays a Save as dialog even though it's a virtual printer, so this is not really a limitation of virtual printers but of either CUPS or of the specific PDF virtual printer.
null
0
1317142324
False
0
c2mzahl
t3_kssyt
null
t1_c2mzahl
t1_c2mz7px
null
1427653863
2
t5_2fwo
null
null
null
True
DrBartosz
null
You can follow me on Twitter @BartoszMilewski or on Google+ "Bartosz Milewski" or you can subscribe to my personal blog http://BartoszMilewski.wordpress.com. I announce new tutorials on all three.
null
0
1317142385
False
0
c2mzavp
t3_krzd8
null
t1_c2mzavp
t1_c2mwo4n
null
1427653867
2
t5_2fwo
null
null
null
True
kkiran
null
Yep, I am sure. I can sense it already. I try to follow industry standards whenever I can. Small teams and crazy deadlines - fewer options.
null
0
1317142532
False
0
c2mzbsf
t3_ks1qu
null
t1_c2mzbsf
t1_c2mrt5w
null
1427653880
0
t5_2fwo
null
null
null
True
zzzeek
null
putting a slash in "ORM"? Yes that's an anti-pattern. Using ORMs? Not at all, they are massively productive if you choose wisely and take care to know what you're doing.
null
0
1317142557
False
0
c2mzbxg
t3_kt1yb
null
t1_c2mzbxg
t3_kt1yb
null
1427653882
3
t5_2fwo
null
null
null
True
prelic
null
I completely agree, and some of my most prestigious interviews (read: most popular jobs, hardest to get) loved these kinds of problems.
null
0
1317142581
False
0
c2mzc2v
t3_ks1qu
null
t1_c2mzc2v
t1_c2myzjf
null
1427653884
1
t5_2fwo
null
null
null
True
axilmar
null
> I don't really consider having two types that are exactly the same to be simpler. You mean struct and class? the only thing to remember about those is that struct has all the members public by default, and class private by default. That's the only difference. Actually, you don't need to remember that. You can use class everywhere. > rather than C++ is perfect here. Yes. Ideally, C++ shouldn't have 'struct'. > Remembering the differences of two different types, should not be much overhead for learning a language, especially since the type influences come from other commonly used languages. There are lots of little differences between struct and class, which make the language inconsistent and non-orthogonal. > You either want your struct to use the GC or you don't. Or you want sometimes to use the GC, sometimes you don't, for the same type. > In which case I am confused why you are saying you don't want this, when you clearly said you'd like to be able to do this. You have to read the whole sentence to understand it. I wrote: "I don't want polymorphic value types, I want value types that can be polymorphic and that I define their allocation on a need basis." > is considered to be a bad idea, while I don't know the details I believe it was because special care must be taken as they cannot be used the same as a polymorphic reference type. That's exactly the point of my rant. No special care is required. C++ does fine with it. Separating structs and classes like D does caters for one need, while ignoring other needs.
null
0
1317142587
False
0
c2mzc4d
t3_kljc0
null
t1_c2mzc4d
t1_c2mz6kv
null
1427653884
1
t5_2fwo
null
null
null
True
axilmar
null
The tab says "C++" at the top of it, then it goes on to show a class declaration that starts with "public sealed".
null
0
1317142642
False
0
c2mzcga
t3_kgl4f
null
t1_c2mzcga
t1_c2mz059
null
1427653887
1
t5_2fwo
null
null
null
True
xardox
null
EPS (Encapsulated PostScript) is not just a way to embed a preview in a PostScript file, but also a way of segmenting a PostScript file into header and pages, so you could print all or some of the pages, or print or preview them in any order. Not nearly as much structure as a PDF file, but more than "free form". The PostScript Distillery (the precursor to PDF) could "partially execute" and optimize any PostScript program, even one that didn't conform to EPS, and produce a properly paginated EPS file (sans preview -- there was no way to read an image back at the time) that used a standard header file, and drew all graphics in the global coordinate system (stripping out all the gsave/translate/scale/rotate/grestores and redundant graphics state modification).
null
0
1317142693
False
0
c2mzcr3
t3_kssyt
null
t1_c2mzcr3
t1_c2mxsuz
null
1427653891
8
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317142787
False
0
c2mzdb7
t3_kt3m0
null
t1_c2mzdb7
t3_kt3m0
null
1427653899
1
t5_2fwo
null
null
null
True
frud
null
Pure speculation: maybe something like "yum install mariadb && yum install mariadbmigrate && mariadbmigrate && yum erase mysql" would be better.
null
0
1317142865
False
0
c2mzdpn
t3_kpecl
null
t1_c2mzdpn
t1_c2m6360
null
1427653906
1
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317142871
False
0
c2mzdqp
t3_ks1qu
null
t1_c2mzdqp
t1_c2mxrvi
null
1427653906
1
t5_2fwo
null
null
null
True
mistralol
null
Add Why they like the new tech or Why they used X to solve problem Y Too many times people know X because its Hip to know X. Then apply it to the wrong problem.
null
0
1317143118
False
0
c2mzf3x
t3_ks1qu
null
t1_c2mzf3x
t1_c2mrjo3
null
1427653924
1
t5_2fwo
null
null
null
True
ysangkok
null
For Windows, Evince at 32 MB (>70MB installed) is pretty heavyweight, compared to Sumatra PDF at 4.7 MB.
null
0
1317143153
False
0
c2mzfb1
t3_kssyt
null
t1_c2mzfb1
t1_c2mxaf1
null
1427653926
3
t5_2fwo
null
null
null
True
hackerfoo
null
> Most service bureaus that are "PDF-friendly" will have third-party applications that take PDF files and impose them, trap them, preflight them, and send them to the RIP. Doesn't sound very friendly to me.
null
0
1317143257
False
0
c2mzfw9
t3_kssyt
null
t1_c2mzfw9
t3_kssyt
null
1427653934
-4
t5_2fwo
null
null
null
True
prelic
null
But that certainly doesn't deter them from doing it anyway. Read my 2nd edit above for the example that left a sour taste in my mouth.
null
0
1317143302
False
0
c2mzg69
t3_ks1qu
null
t1_c2mzg69
t1_c2mwsul
null
1427653938
1
t5_2fwo
null
null
null
True
Amadiro
null
I suspect thats because the installer contains the GTK+ libraries and whatnot. On a gnome system, evince only chips in a few KiB or so, I think -- because you already have GTK+, the gnome libraries and whatnot.
null
0
1317143414
False
0
c2mzgu8
t3_kssyt
null
t1_c2mzgu8
t1_c2mzfb1
null
1427653945
7
t5_2fwo
null
null
null
True
prelic
null
I think candidates should pick a problem from a bank of a handful of problems, and then should design and code a solution in about an hour...on a real computer, with a real compiler, where they will (if hired) actually be working. Example problems I've seen are simple games (poker, blackjack), simple web-apps, file manipulation, etc. depending on the job description.
null
0
1317143429
False
0
c2mzgxr
t3_ks1qu
null
t1_c2mzgxr
t1_c2mrb4j
null
1427653946
1
t5_2fwo
null
null
null
True
VikingCoder
null
Dear /r/programming - why does this have -6 points right now? No, seriously, why?
null
0
1317143467
False
0
c2mzh4m
t3_krzys
null
t1_c2mzh4m
t1_c2mq6re
null
1427653950
1
t5_2fwo
null
null
null
True
BitRex
null
Sun/James Gosling did the same thing with Postscript many years ago.
null
0
1317143477
False
0
c2mzh67
t3_kssyt
null
t1_c2mzh67
t1_c2mx6fw
null
1427653951
4
t5_2fwo
null
null
null
True
prelic
null
Ironically, I do now work for a defense contractor, and have already seen some code that makes me go "eh, this doesn't look so good". Fortunately, I've also seen some really cool code too, so it's all good.
null
0
1317143501
False
0
c2mzhav
t3_ks1qu
null
t1_c2mzhav
t1_c2muqcg
null
1427653952
2
t5_2fwo
null
null
null
True
strolls
null
The difference is that the PDF(ish) rendering is done even before the graphics are displayed on the screen. You might not notice the difference, but it's "more native".
null
0
1317143510
False
0
c2mzhc9
t3_kssyt
null
t1_c2mzhc9
t1_c2my0ol
null
1427653952
3
t5_2fwo
null
null
null
True
thedufer
null
I just used a radix sort implementation that someone submitted (via HN comments). I didn't realize there were multiple algorithms by that name. I believe the one there currently is a MSB radix. I'll make the distinction and put both in.
null
0
1317143666
False
0
c2mzi6a
t3_ksqls
null
t1_c2mzi6a
t1_c2mxx16
null
1427653964
1
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317143729
False
0
c2mzijp
t3_ks1qu
null
t1_c2mzijp
t1_c2mr2kq
null
1427653968
1
t5_2fwo
null
null
null
True
[deleted]
null
i indent, but everyone follows their own conventions.
null
0
1317143734
False
0
c2mzil2
t3_krpem
null
t1_c2mzil2
t1_c2mss97
null
1427653970
1
t5_2fwo
null
null
null
True
ErstwhileRockstar
null
> You are the one that has to implement resource allocation and deallocation Once, only once.
null
0
1317143735
False
0
c2mzil4
t3_krrz1
null
t1_c2mzil4
t1_c2mynff
null
1427653970
1
t5_2fwo
null
null
null
True
humanmanguy
null
Google it
null
0
1317143761
False
0
c2mziqj
t3_krzys
null
t1_c2mziqj
t3_krzys
null
1427653972
-1
t5_2fwo
null
null
null
True
mandelheaderanswer
null
The size field in the header is in bytes, so it's (width * height * 3) as each pixel is represented by a 3-byte colour value (R, G, B). The 26 is the number of bytes taken up by the header - 14 bytes of standard bitmap header and 12 bytes of OS/2 BITMAPCOREHEADER. See [here](http://en.wikipedia.org/wiki/BMP\_file\_format) for more info.
null
0
1317143798
False
0
c2mziyq
t3_krpem
null
t1_c2mziyq
t1_c2mwspk
null
1427653974
2
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317143835
False
0
c2mzj5x
t3_ksqls
null
t1_c2mzj5x
t1_c2mz4dj
null
1427653982
1
t5_2fwo
null
null
null
True
vdub_bobby
null
No prewritten bogosort is disappointing.
null
0
1317143849
False
0
c2mzj97
t3_ksqls
null
t1_c2mzj97
t3_ksqls
null
1427653978
2
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317144217
True
0
c2mzlfp
t3_krv1k
null
t1_c2mzlfp
t1_c2mtdq8
null
1427654006
1
t5_2fwo
null
null
null
True
computers_in_space
null
Yeah, I have read how it is different than MPI. My question was how well the tradeoff works. That is a standard license for code supported by a university. They have serious issues with tech transfer and usually can't do anything about it.
null
0
1317144249
False
0
c2mzlm0
t3_ksm2f
null
t1_c2mzlm0
t1_c2mywx0
null
1427654008
2
t5_2fwo
null
null
null
True
Propagation
null
Damn, I'm just glad Sumatra is around
null
0
1317144390
False
0
c2mzmge
t3_kssyt
null
t1_c2mzmge
t1_c2myg6r
null
1427654019
13
t5_2fwo
null
null
null
True
jeffdavis
null
"Ad hoc SQL or Stored Procedures? You want to call that better?" Yes, actually (of course, assuming you're using parameters and not concatenating literals into sql strings). If you know SQL reasonably well, then putting together an OLTP data collection/presentation app using SQL works well. In the case where you are doing very simple CRUD, it looks pretty clunky to use SQL. But the reason all the ORMs aren't a good abstraction is because what looks like a simple CRUD application rarely is, so they offer all sorts of escape hatches. And when the complexity is only very slightly higher than the simplest CRUD app, then SQL quickly outdoes ORMs. This is my opinion of course. SQL isn't perfect, but it's incredibly important, based on sound theory, and worth learning[1]. And for those that do learn it, and then try using it the way it's meant to be used, they may find the overall development results surprisingly good. [1] After all, if you are writing applications that collect, manage, and present data; it's almost negligent to not make a reasonable attempt to understand relational theory and SQL. EDIT: I should clarify that I think it's totally reasonable to use ORMs for very simple CRUD operations to save a few lines of code. However, you should define your schema independently of whether the ORM likes it or not, and go back to using SQL for any operations that start to exceed the CRUD operations. Trying to push an ORM further by using escape hatches and hacks just doesn't make sense to me.
null
0
1317144450
True
0
c2mzmtz
t3_kt1yb
null
t1_c2mzmtz
t3_kt1yb
null
1427654025
2
t5_2fwo
null
null
null
True
computers_in_space
null
So charm++ seems more flexible, and I love the idea of virtualizing processors. But I bet there's an issue of overheard for HPC applications. Unfortunately, it seems like for the same amount of dev time, the custom parallelism will still win out in performance.
null
0
1317144451
False
0
c2mzmuc
t3_ksm2f
null
t1_c2mzmuc
t1_c2mw0rj
null
1427654025
1
t5_2fwo
null
null
null
True
novacoder
null
This is just a re-stating of the anemic domain problem, where you have a bunch data holder objects that are manipulated by Manager, Service, DAO, or Controller objects. In many applications, all it's doing is fetching data from somewhere, holding it or maybe converting it to xml or json and then serving it to some client requesting it. I've come to conclusion that trying OO-ify this type of app leads to excess complexity and code bloat.
null
0
1317144522
False
0
c2mznah
t3_krzdp
null
t1_c2mznah
t3_krzdp
null
1427654031
1
t5_2fwo
null
null
null
True
the-fritz
null
Which one? And can I generate it from LaTeX?
null
0
1317144611
False
0
c2mznqj
t3_kssyt
null
t1_c2mznqj
t1_c2myuip
null
1427654037
1
t5_2fwo
null
null
null
True
randomdestructn
null
Not much experience, but I've read that virtual printers do a poor job due to insufficient information about the document. Things like links in tables of contents don't work properly. Someone correct me if I'm way off
null
0
1317144770
False
0
c2mzoqy
t3_kssyt
null
t1_c2mzoqy
t1_c2mzahl
null
1427654049
-1
t5_2fwo
null
null
null
True
DeepDuh
null
You're right, those are still good points pro Lion. I'm still holding off because of some bug reports though. About Ubuntu: I think for itself it would be a great desktop OS, what's missing is more hardware vendor support and a good office suite that can match MS Office or iWorks. Their cloud sync is very interesting though, I really want iCloud and even Skydrive to catch up to this.
null
0
1317144869
False
0
c2mzpc8
t3_krv1k
null
t1_c2mzpc8
t1_c2myl79
null
1427654056
2
t5_2fwo
null
null
null
True
I_TYPE_IN_ALL_CAPS
null
> Except that it is valid. HARD AND FAST RULES ARE NEVER VALID. REPLACING THOUGHT WITH POLICY IS NOT CONDUCIVE TO GOOD SOFTWARE. > The "er" rule isn't simply there to restrict... YES, I READ THE ARTICLE. > The Person/PersonManager example is there to illustrate THE PERSON/PERSONMANAGER EXAMPLE IS BULLSHIT. PEOPLE DON'T WRITE CODE LIKE THAT IN REAL SITUATIONS. RELIGIOUS DOGMA ABOUT OOP WORKS GREAT WITH OOP AS LONG AS YOU STICK TO SILLY EXAMPLES TAKEN FROM REAL-WORLD OBJECTS, BUT WE DON'T SPEND MOST OF OUR TIME MODELING SUCH REAL-WORLD OBJECTS. > violates encapsulation, a core concept of OOP. NOT ENOUGH INFORMATION WAS GIVEN TO CONCLUDE THAT ENCAPSULATION WAS VIOLATED. IF PERSONMANAGER IMPLEMENTS BUSINESS LOGIC THAT DOESN'T MAKE SENSE TO BE INSIDE PERSON, AND IF IT'S NOT DIRECTLY ACCESSING PROTECTED MEMBERS, IT'S NOT VIOLATING *ENCAPSULATION*. > OOP (which is what the article is about) and you split things up into a data/manger class, you're doing it wrong and don't get it. YOUR ASSERTIONS ARE JUVENILE. YOU CAN GO SPEND YOUR TIME REWRITING THINGS TO COME UP WITH A SENSELESS, NOUN-PURE HIERARCHY OF CLASSES (WHICH SHOULDN'T BE HARD, SINCE IT SOUNDS LIKE YOU DO ACADEMIC EXERCISES), I'M GOING TO BE OVER HERE CREATING REAL VALUE, AND OCCASIONALLY EMPLOYING -ER CLASSES WHEN IT'S AN APPROPRIATE BALANCE. > the hoarde is enamored by your novelty account UH. NO. NOT ANY PROGRAMMING-RELATED POST, THEY AREN'T.
null
0
1317145270
False
0
c2mzrow
t3_krzdp
null
t1_c2mzrow
t1_c2myajj
null
1427654088
1
t5_2fwo
null
null
null
True
haskell_rules
null
It's because the tone of my comment is negative, condescending, and presumptuous.
null
0
1317145338
False
0
c2mzs31
t3_krzys
null
t1_c2mzs31
t1_c2mzh4m
null
1427654094
2
t5_2fwo
null
null
null
True
cartlemmy
null
Erroe Handling? :)
null
0
1317145363
False
0
c2mzs7q
t3_kt17p
null
t1_c2mzs7q
t3_kt17p
null
1427654095
-3
t5_2fwo
null
null
null
True
royrules22
null
Uhh you sure about that? I just tried it on the developer preview and it worked.
null
0
1317145387
False
0
c2mzsc6
t3_krv1k
null
t1_c2mzsc6
t1_c2mwy9u
null
1427654096
1
t5_2fwo
null
null
null
True
scrotch
null
OpenDoc (1992) and OLE (1990) are other instances of the "competing formats" I was referencing. I was more familiar with OpenDoc because I remember articles in MacWorld about it being integrated into Mac OS at some point. OLE is probably much more familiar to most people and would have been a better example. I mentioned them because the OP (day_cq) talks about leaving browsers for multimedia documents. Historically, it browsers took the steam out of these other multimedia document formats.
null
0
1317145400
False
0
c2mzsff
t3_kssyt
null
t1_c2mzsff
t1_c2mytkc
null
1427654097
2
t5_2fwo
null
null
null
True
bramblerose
null
The Insertion sort seems wrong: when inserting, it scans the entire sorted range (i.e. O(n)), while finding the place to insert could be O(log n).
null
0
1317145466
False
0
c2mzsrx
t3_ksqls
null
t1_c2mzsrx
t3_ksqls
null
1427654103
1
t5_2fwo
null
null
null
True
thedufer
null
Someone else mentioned this. This makes it inefficient, but still technically an insertion sort. I coded up whatever was easiest, rather than the most efficient (see quicksort on sorted data). Feel free to send me an improved one and I'll put it in!
null
0
1317145620
False
0
c2mztl6
t3_ksqls
null
t1_c2mztl6
t1_c2mzsrx
null
1427654112
1
t5_2fwo
null
null
null
True
xardox
null
It has nothing to do with the printer driver -- that is a different layer -- it's about which API is used to draw versus print. Transparent PDF integration means the application writer does not have to write separate drawing code to support printing. Traditionally the screen graphics model (i.e. X11) was much different that the printer graphics model (i.e. PostScript), so you have to write totally different code to print, and it was a huge pain to make them look the same (i.e. X "half open" discrete pixel coordinate system -vs- PostScript continuous stencil/paint real coordinate system, especially with it came to the way that stroked lines and filled regions interacted). Now the API you use to draw is much higher level that XLib, and much more like PDF or the PostScript imaging model. So drawing to a window can be captured as high fidelity PDF commands, and dumped to a file just as well as displayed on the screen.
null
0
1317145693
True
0
c2mztzk
t3_kssyt
null
t1_c2mztzk
t1_c2myeu6
null
1427654118
14
t5_2fwo
null
null
null
True
pallytank
null
I work in IT, I change these settings everyday, never with a restart. I'm not sure if you're making shit up or these folks that you claim have issues haven't upgraded to the latest service packs. If xp is your best example, please keep in mind it is 10 years old! Even the government agencies I work with have upgraded to win7, and win7 certainly does not request a reboot. Also, this post is 2 months old, jeez!
null
0
1317145745
False
0
c2mzu9w
t3_irt4s
null
t1_c2mzu9w
t1_c2mw7rm
null
1427654121
1
t5_2fwo
null
null
null
True
mnp
null
What would be the chances of reviving NeWS in an open source capacity at this point? Is the IP still locked inside Sun/Oracle? People are starting to rethink the whole X11 thing now (cf [Wayland](http://wayland.freedesktop.org/) as a GTK backend) and I wonder if it's not time to reopen the discussion?
null
0
1317145923
False
0
c2mzv9b
t3_kssyt
null
t1_c2mzv9b
t1_c2myus1
null
1427654134
12
t5_2fwo
null
null
null
True
valleyman86
null
It what way does a manager manage? It hires, fires and organized/keeps track of. Manage(r) is not a tricky word unless you make it one.
null
0
1317146088
False
0
c2mzw89
t3_krzdp
null
t1_c2mzw89
t1_c2mwt89
null
1427654148
1
t5_2fwo
null
null
null
True
xardox
null
Wow! Print that out and burn it.
null
0
1317146221
False
0
c2mzx1o
t3_kssyt
null
t1_c2mzx1o
t1_c2mz4jz
null
1427654159
2
t5_2fwo
null
null
null
True
Timmmmbob
null
> That aside, I am surprised that you can even embed a PDF into Powerpoint. Yep. Very useful for science, since all my figures are PDF. That, and the fact that videos actually work make the mac version of powerpoint *significantly* better than the windows version.
null
0
1317146383
False
0
c2mzy1d
t3_kssyt
null
t1_c2mzy1d
t1_c2mz55l
null
1427654171
3
t5_2fwo
null
null
null
True
greyfade
null
I think making semicolons optional was a *huge* oversight. I don't recall exactly what the reasoning was, but I believe someone suggested to Eich that he should make semicolons optional to make learning the language easier for new developers. This was a **huge** mistake, as it has led to more bugs creeping into the language than would otherwise be possible. He should have made them mandatory, or should have had a hard-and-fast rule of statements ending on newlines (with multi-statement lines delimited with semicolons). Otherwise, it's just a mess. It's one of the few things I actually despise about Javascript.
null
0
1317146401
True
0
c2mzy4r
t3_kswql
null
t1_c2mzy4r
t3_kswql
null
1427654172
2
t5_2fwo
null
null
null
True
greyfade
null
As long as you're consistent, who are we to judge? :)
null
0
1317146452
False
0
c2mzyff
t3_kswql
null
t1_c2mzyff
t1_c2mynzu
null
1427654176
1
t5_2fwo
null
null
null
True
crackanape
null
That's like saying that HTML4 can do video, because you can embed a Flash object in it.
null
0
1317146476
False
0
c2mzyk1
t3_kssyt
null
t1_c2mzyk1
t1_c2mxla9
null
1427654177
1
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317146484
False
0
c2mzylx
t3_kt17p
null
t1_c2mzylx
t3_kt17p
null
1427654177
1
t5_2fwo
null
null
null
True
sigzero
null
That is awesome. My company has a poor flash blocker...it reboots my laptop every time.
null
0
1317146535
False
0
c2mzywn
t3_kt17p
null
t1_c2mzywn
t3_kt17p
null
1427654182
-2
t5_2fwo
null
null
null
True
ramses0
null
Send to /r/git as well?
null
0
1317146615
False
0
c2mzzch
t3_kt058
null
t1_c2mzzch
t3_kt058
null
1427654188
8
t5_2fwo
null
null
null