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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
null | PalaceOfLove706 | null | "I interviewed a graduate once for a development position who had written a production web application for their university. The developer did not know to hash or salt the passwords before storing them in the database."
Wow that's bad. Here I am cringing everytime I come across an app that hashes with MD5...Didn't even realize the students of today weren't even being taught such basic things. | null | 0 | 1491189134 | False | 0 | dfr7mdf | t3_6344ep | null | null | t3_6344ep | null | 1493745202 | 13 | t5_2fwo | null | null | null |
null | UglyLiar | null | I only watch Starcraft (both 1 and 2), and at least the streams I watch seem to prefer if you watch their VODs on Youtube rather than on Twitch. At least one has explicitly said so. It still surprises me, I can't imagine the ad income being noticeably higher on Youtube? First, the income per ad, second, people with adblocker on on Twitch will also have it on on Youtube. So I don't know the reason for the preference for Youtube. The actual streams always are on Twitch though, but the main reason here is that there they will be found because this is where people are looking. | null | 0 | 1491189162 | False | 0 | dfr7n7h | t3_62zdsh | null | null | t1_dfqchyy | null | 1493745215 | 1 | t5_2fwo | null | null | null |
null | hawleyal | null | Validating sessions server side is no more or less exhaustive than other requests. The server is receiving a request anyway, there's no reason it can't validate the session ID with a tiny bit of data in the headers. In fact, even with client-side cookies sending the entire cookie value encrypted is probably a much larger request than just the session ID.
In my opinion, this has nothing to do with DOS at all.
Literally the only advantage to client-side cookies is not storing sessions on the server-side. Which sometimes helps with distributed systems. | null | 0 | 1491189198 | False | 0 | dfr7o6m | t3_62ul90 | null | null | t1_dfr1xv1 | null | 1493745228 | 1 | t5_2fwo | null | null | null |
null | hzhou321 | null | Assuming "good programmers" automatically excludes "bad programmers", logically it means it is *not* designed for bad programmers. Probably means that only "good" programmers can appreciate its designs. Logically it doesn't say anything about C. And even it implies C is not designed for good programmers does not imply C is designed for bad programmers. C can be designed for both good and bad programmers. | null | 0 | 1491189319 | 1491189571 | 0 | dfr7rh0 | t3_631p99 | null | null | t1_dfqvsqr | null | 1493745273 | 2 | t5_2fwo | null | null | null |
null | oridb | null | It's an old codebase, as tends to happen when projects have been around for a while. Still, after a quick poke, there's C++11 in there. For example: https://github.com/KDE/kdenlive/blob/78a1d89f40fc31d2ac480890f2ae6fc4173412f6/src/profiles/profilerepository.hpp | null | 0 | 1491189403 | 1491192272 | 0 | dfr7tu1 | t3_632wq6 | null | null | t1_dfr6zli | null | 1493745307 | 3 | t5_2fwo | null | null | null |
null | devraj7 | null | > This is more of a philosophical debate and is completely dependent on the programmer's view.
Not really. It's a debate that was settled about 20 years ago when exceptions became mainstream.
Nobody seriously uses return values to signal errors since the late 90s, but don't tell the Go team that.
| null | 1 | 1491189502 | False | 0 | dfr7wu7 | t3_631p99 | null | null | t1_dfqvnnb | null | 1493745362 | 0 | t5_2fwo | null | null | null |
null | thedeemon | null | How long are typical compile times for Odin?
I presume if you use LLVM it's not that quick anyway. | null | 0 | 1491189508 | False | 0 | dfr7x0c | t3_631p99 | null | null | t1_dfqy7bw | null | 1493745365 | 2 | t5_2fwo | null | null | null |
null | kibwen | null | That's entirely fair. :) I only wanted to point out that this isn't something that's perma-unstable or years away; it's on the roadmap, and can be expected in the near term. Releases happen every six weeks, and 1.18 will be stable in June (or, pessimistically targeting 1.19, July). | null | 0 | 1491189580 | False | 0 | dfr7z4r | t3_62wye0 | null | null | t1_dfr4s1t | null | 1493745396 | 2 | t5_2fwo | null | null | null |
null | AkashaSecurity | null | > Here I am cringing everytime I come across an app that hashes with MD5
We still have big problems with password quality and storage. Not only is there wide variation in how well passwords are stored (plain md5 like you mentioned), we still encourage relatively short passwords that are difficult to remember. Two-factor authentication is a really good feature that everyone should use these days, but we still have to use passwords for some things. I encourage using passphrases and trying to replace the word "password" whenever we can. I wrote more about passwords in particular here:
Thinking Differently About Passwords - http://www.akashasec.com/thinking-differently-about-passwords | null | 0 | 1491189649 | False | 0 | dfr810d | t3_6344ep | null | null | t1_dfr7mdf | null | 1493745425 | 1 | t5_2fwo | null | null | null |
null | coolfolder | null | I think it looks pretty cool. | null | 1 | 1491189660 | False | 0 | dfr81bh | t3_630cgb | null | null | t1_dfqhe7t | null | 1493745431 | 5 | t5_2fwo | null | null | null |
null | codebje | null | I'm sorry, I don't think I understand what you're suggesting. Does `union<reference to structure>` mean that you explicitly (or via inference) have a type that says the value must be the structure, not the int, in that context? | null | 0 | 1491189862 | False | 0 | dfr879p | t3_62wye0 | null | null | t1_dfr2mcg | null | 1493745514 | 1 | t5_2fwo | null | null | null |
null | DnBenjamin | null | I've seen worse. It's consistent, which is a good thing. I'm not a huge fan of how spread out everything is to get it aligned. I think vertical alignment can be helpful in small doses, but that's a bit overboard. I like the minimalist >> vs << markers, but it seems like just "in" and "out" would have sufficed.
Edit: okay, well, EntryPointFunc() kinda crapped on the consistency thing... | null | 0 | 1491190054 | 1491190574 | 0 | dfr8d8a | t3_63405x | null | null | t3_63405x | null | 1493745595 | 1 | t5_2fwo | null | null | null |
null | arturaz | null | Is reactive extensions frp? | null | 0 | 1491190092 | False | 0 | dfr8efc | t3_62yl50 | null | null | t1_dfqc2o6 | null | 1493745610 | 1 | t5_2fwo | null | null | null |
null | balefrost | null | I don't just mean that you have to exit to a calling stack frame; I mean that the technique outlined in that paper requires that the act of parsing be somewhat reversible. While perhaps `setjmp`/`longjmp` can help with that, they're far from sufficient. | null | 0 | 1491190289 | False | 0 | dfr8jz4 | t3_62ixbc | null | null | t1_dfoqo7t | null | 1493745690 | 1 | t5_2fwo | null | null | null |
null | [deleted] | null | [deleted] | null | 0 | 1491190321 | False | 0 | dfr8kv3 | t3_62xwba | null | null | t1_dfq4u1p | null | 1493745701 | 1 | t5_2fwo | null | null | null |
null | alexmullans | null | We'll be decommissioning the current TFS, Git, and Mercurial servers after 12/15/17. The CodePlex archive will serve static content, including the state of your repo as of the day CodePlex goes read-only. | null | 0 | 1491190385 | False | 0 | dfr8mmi | t3_62n5mx | null | null | t1_dfoz27f | null | 1493745726 | 2 | t5_2fwo | null | null | null |
null | dropkickninja | null | this is awesome. bookmarked so i can start from the beginning. | null | 0 | 1491191048 | False | 0 | dfr94bh | t3_6346wn | null | null | t3_6346wn | null | 1493745976 | 2 | t5_2fwo | null | null | null |
null | Calavar | null | Having a decent "elevator pitch" and code snippets available on the homepage is not an issue of manpower. The Wren website looks like it took a lot less time to make then those hours-long videos on the Odin website, and yet I find the Wren website to be much more informative.
If you go to the Wren homepage, you instantly see
1. A code snippet that shows simple use of classes, methods, IO functions, fibers, array literals, iterators, and flow control all in just 13 lines of code. It's not a complete tutorial, but it gives an at-a-glance idea of what the language is like and what it can do.
2. Five things that make Wren different from other languages.
3. A link to a getting started guide.
4. A link to a live demo in the browser.
In contrast, the Odin Homepage is three or four links to a two hour long video. There's a link to the GitHub project, but no clear link to a getting started guide or installation instructions. There is no elevator pitch. There is no example code. | null | 0 | 1491191331 | 1491191797 | 0 | dfr9bnm | t3_631p99 | null | null | t1_dfqzgx7 | null | 1493746074 | 24 | t5_2fwo | null | null | null |
null | PalaceOfLove706 | null | I couldn't agree with you more.
As a lead, one of the first things I do with the junior developers is introduce them to our whitelisted packages. They are taught to look towards the various communities and libraries to get help solving their problems.
I once had someone show me this application they had worked on and within their login page, they had decided to write their own password hashing method. I proceeded to lecture that person for the next ten minutes on how that is probably the worst thing they can do and explained that there are a host of security experts who spend their life's work doing that so we don't have to. | null | 0 | 1491191355 | False | 0 | dfr9c8y | t3_6344ep | null | null | t1_dfr7iob | null | 1493746081 | 7 | t5_2fwo | null | null | null |
null | shipdestroyer | null | Do you think it looks realistic? | null | 0 | 1491191597 | False | 0 | dfr9j6k | t3_630cgb | null | null | t1_dfr81bh | null | 1493746173 | 19 | t5_2fwo | null | null | null |
null | shmauk | null | Blizzard send changes in Heroes of the Storm but it sucks when you disconnect and take ages to reconnect | null | 0 | 1491191811 | False | 0 | dfr9pc0 | t3_62yl50 | null | null | t1_dfq7kta | null | 1493746256 | 2 | t5_2fwo | null | null | null |
null | tmahmood | null | Infinality is discontinued unfortunately, As I read the maintainer disappeared :-/
I hope he is well. | null | 0 | 1491191943 | False | 0 | dfr9t64 | t3_62qrve | null | null | t1_dfpfn6q | null | 1493746307 | 1 | t5_2fwo | null | null | null |
null | [deleted] | null | [deleted] | null | 0 | 1491191947 | False | 0 | dfr9tap | t3_62yl50 | null | null | t1_dfqknrs | null | 1493746308 | 0 | t5_2fwo | null | null | null |
null | nican | null | What I love about Source Engine's implementation as well is how easy it is to use it. The server is able to listen to variable changes, and replicate to the clients with little C++ boilerplate.
Here is the 3 line macro used: https://gist.github.com/Nican/40034ec7ae9d688cefbc to share one variable in one object, and the macro expansion after the proceprocessor. I also wrote about it a long time ago here: http://sharpmod.blogspot.com/2012/11/networking.html
| null | 0 | 1491192344 | False | 0 | dfra51h | t3_62yl50 | null | null | t1_dfq66ak | null | 1493746465 | 26 | t5_2fwo | null | null | null |
null | salgat | null | If you can set aside hundreds, possibly thousands of hours developing a language, you sure as shit can maintain a small example for users. | null | 0 | 1491192465 | 1491193596 | 0 | dfra8ci | t3_631p99 | null | null | t1_dfqzgx7 | null | 1493746508 | 10 | t5_2fwo | null | null | null |
null | pixel4 | null | And what was your reaction? #shitpost | null | 0 | 1491192686 | False | 0 | dfrae1y | t3_63405x | null | null | t3_63405x | null | 1493746584 | 4 | t5_2fwo | null | null | null |
null | xxxmuffinflavoredxxx | null | Hypothetically, would something like the server engine for a FPS (maybe like the Source engine) perform better in Haskell than C++? | null | 0 | 1491192732 | False | 0 | dfrafba | t3_62yl50 | null | null | t1_dfqkcer | null | 1493746602 | 1 | t5_2fwo | null | null | null |
null | tmahmood | null | Loving it :) | null | 0 | 1491193175 | False | 0 | dfraqit | t3_62qrve | null | null | t1_dfozeq1 | null | 1493746751 | 1 | t5_2fwo | null | null | null |
null | Antrikshy | null | I know some of these words... | null | 0 | 1491193329 | False | 0 | dfrau4r | t3_62yl50 | null | null | t1_dfq5gpx | null | 1493746799 | 3 | t5_2fwo | null | null | null |
null | Antrikshy | null | Should be posted to r/gamedev if it hasn't already been. | null | 0 | 1491193354 | False | 0 | dfraupm | t3_62yl50 | null | null | t1_dfq3dza | null | 1493746807 | 1 | t5_2fwo | null | null | null |
null | rimu | null | I've been using multisite on Drupal since version 5, back in 2009. Maybe Drupal had it before then but I wasn't around to know.
I haven't used multisite on Wordpress so I'm not real sure when Wordpress started doing it. | null | 0 | 1491193466 | False | 0 | dfrax8f | t3_62mxpp | null | null | t1_dfosetu | null | 1493746841 | 1 | t5_2fwo | null | null | null |
null | [deleted] | null | [deleted] | null | 0 | 1491193499 | 1491400283 | 0 | dfraxzb | t3_631p99 | null | null | t1_dfqzgx7 | null | 1493746851 | 10 | t5_2fwo | null | null | null |
null | sisyphus | null | I really admire everyone with the balls to go all in on server-side Dart like Angel and Aqueduct and whatnot--it would be such a better 'isomorphic' story than JS with its standard library and its integers and its ubiquitous integrated async and observatory and so on but it is hamstrung by the lack of anything like Python's dbapi and that the big G doesn't give a fuck about traditional web applications. You would think they would at least give one fuck about Dart supporting the services in their own cloud('cloud native or gtfo, schmidt states, we puttin' 30 billion into this here cloud!') like spanner/datastore et. al but you'd be wrong--Dart for the longest time had no grpc because it had no http2 library(that situation may persist to this day for all I know); when they announced GA for flexible app engine they didn't so much as mention Dart, etc. From all appearances it's a compile-to-JS only language in there. | null | 0 | 1491193568 | False | 0 | dfrazly | t3_632937 | null | null | t3_632937 | null | 1493746873 | 2 | t5_2fwo | null | null | null |
null | mayur-lohite | null | Its handy when we need to perform something on cookies. I created this class for my project. | null | 0 | 1491193746 | False | 0 | dfrb3kt | t3_634hyp | null | null | t3_634hyp | null | 1493746925 | 1 | t5_2fwo | null | null | null |
null | ReversedGif | null | I wish that whenever people introduced the diamond-square algorithm, they also mentioned what it really does: generate 2D [Brownian noise](https://en.wikipedia.org/wiki/Brownian_noise).
If you know what an FFT is, you can use it to generate heightmaps much more straightforwardly, with more control. | null | 0 | 1491193793 | False | 0 | dfrb4n2 | t3_630cgb | null | null | t3_630cgb | null | 1493746940 | 10 | t5_2fwo | null | null | null |
null | user93849384 | null | > They didn't implement state saving.
Can an RTS really handle state saving for multiplayer? I remember the biggest complaint about SC2 was the fact that you couldn't rejoin a game once you were disconnected. And you're right about Heroes of the Storm, if you get disconnected you have to rejoin and the game needs to catch back up. Although, I think they improved it, if you get disconnected the game keeps the last moment in time you were in the game so when you reconnect it just simulates everything from that moment on but if you close the client you have to resimulate the entire game. So many people asked why DOTA2 could have you easily drop and reconnect but you couldn't in SC2.
But state saving for an RTS is way different from a MOBAA. In a MOBAA you might have at most 100 objects to handle in a single transmission but typically it might only be like 20-30 objects to handle. But in an RTS game, you can easily have 200+ objects per player in the game. That is a lot of data you need to gather, compress, transmit, uncompress, and process in real time. I mean sure you can optimize the transmission so it only sends updates to objects that are "moving" but you would get huge hiccups once hundreds of objects start moving. | null | 0 | 1491194314 | False | 0 | dfrbfx2 | t3_62yl50 | null | null | t1_dfqhnzx | null | 1493747093 | 2 | t5_2fwo | null | null | null |
null | mayur-lohite | null | Yes! Developers doesn't take the security that much seriously because I have seen they are more focus on generating the required output rather than how its coming and how it will affect to security.
| null | 0 | 1491194411 | False | 0 | dfrbhyv | t3_6344ep | null | null | t3_6344ep | null | 1493747121 | 2 | t5_2fwo | null | null | null |
null | sisyphus | null | The rich people running, investing in and starting tech companies want to live in cool places and so do the generally younger people who make up their workforce. | null | 0 | 1491194482 | False | 0 | dfrbjfr | t3_62zrgk | null | null | t1_dfr12nh | null | 1493747140 | 5 | t5_2fwo | null | null | null |
null | tambry | null | True. I only support Windows and Linux (and possibly in the future Android), so there are a few compiler-specific flags, but that's about it. | null | 0 | 1491194505 | False | 0 | dfrbjwt | t3_62zk1i | null | null | t1_dfqpk71 | null | 1493747147 | 2 | t5_2fwo | null | null | null |
null | naasking | null | Ada has some amazing features that Rust seriously needs to steal. It also has some serious cruft that Rust should really avoid. I think Rust has a better ergonomic balance over all, and I think many programmers recognise this after a few weeks of programming in Ada. Of course if the choice were merely between C and Ada, it's no contest. | null | 0 | 1491194554 | False | 0 | dfrbkyl | t3_62wye0 | null | null | t1_dfq4q7n | null | 1493747161 | 2 | t5_2fwo | null | null | null |
null | tetrabinary | null | That was my 3rd point, basic knowledge of data structures. | null | 0 | 1491194912 | False | 0 | dfrbsa9 | t3_62xwba | null | null | t1_dfqp1w4 | null | 1493747258 | 1 | t5_2fwo | null | null | null |
null | skulgnome | null | This thread and others show NIH, which continues to happen as it has before and won't stop until people cease breeding. | null | 0 | 1491195192 | False | 0 | dfrby19 | t3_62zk1i | null | null | t1_dfqm576 | null | 1493747336 | 3 | t5_2fwo | null | null | null |
null | skulgnome | null | Having to explicitly kill a reference to avoid leaking cyclically self-referencing chains of memory is exactly equivalent to manual memory management. This is why very few scripting languages rely on it alone, and why Haskell is GC-only. | null | 0 | 1491195346 | False | 0 | dfrc17k | t3_62wye0 | null | null | t1_dfqfs8d | null | 1493747378 | 2 | t5_2fwo | null | null | null |
null | [deleted] | null | [deleted] | null | 0 | 1491195376 | False | 0 | dfrc1vz | t3_62wye0 | null | null | t1_dfqaxj7 | null | 1493747387 | 1 | t5_2fwo | null | null | null |
null | skulgnome | null | > This is true, but...
That's to say: yeah, that's true -- cycles can and will form, because an indeterminate number of references is the bloody point of having reference counting. Otherwise you'd have a reference that determines object lifetime, and borrowed pointers all over; which Rust people call something besides manual management because of "reasons" and "waffling until sufficiently smeared". | null | 0 | 1491195529 | False | 0 | dfrc5au | t3_62wye0 | null | null | t1_dfq4lno | null | 1493747433 | 1 | t5_2fwo | null | null | null |
null | skulgnome | null | >Rc types are very much invisible to the programmer.
Besides having to set them up in declarations and so forth? Which is basically the same thing as manual memory management, except that the compiler will call `free()` for you and refuse the program if/when it can't. (but no worries, there's `unsafe` for tha\~t!) | null | 0 | 1491195616 | False | 0 | dfrc7c2 | t3_62wye0 | null | null | t1_dfqaxj7 | null | 1493747462 | 1 | t5_2fwo | null | null | null |
null | dyu_ftw | null | I learned music before programming. I would definitely say the former is more fun to learn than the latter.
When you're building robust/reliable systems, programming takes longer to master, to get right (unless you're building it with a team).
"Both music and programming can be and are often self taught"
I'm self-taught on both.
| null | 0 | 1491195825 | False | 0 | dfrcbji | t3_633o3y | null | null | t3_633o3y | null | 1493747520 | 35 | t5_2fwo | null | null | null |
null | stesch | null | Being good at software development is another skill set from being a good interviewer. Most companies aren't big enough to have a large enough pool of good employees to chose one with both skill sets.
| null | 0 | 1491195846 | False | 0 | dfrcbyy | t3_62xwba | null | null | t1_dfqang2 | null | 1493747526 | 2 | t5_2fwo | null | null | null |
null | stesch | null | Sometimes you would be lucky to even get this answer. :-(
| null | 0 | 1491195868 | False | 0 | dfrccdu | t3_62xwba | null | null | t1_dfqh1ph | null | 1493747532 | 1 | t5_2fwo | null | null | null |
null | JDeltaN | null | If you have access to some continuous noise function, just use fractal noise.
value = 0.0
freq = 1.0
applitude = 1.0
for (octave = 1 ; octave < OCTAVES ; octave += 1.0) {
value += noise(x * freq, y * freq) * applitude
freq *= 2.0
applitude *= 0.5
}
return value
You can get similar result. | null | 0 | 1491196000 | False | 0 | dfrcewh | t3_630cgb | null | null | t3_630cgb | null | 1493747566 | 8 | t5_2fwo | null | null | null |
null | megablast | null | So then we will have one more to add to the list? | null | 0 | 1491196185 | False | 0 | dfrcijw | t3_62z7p7 | null | null | t1_dfqz4ke | null | 1493748095 | 1 | t5_2fwo | null | null | null |
null | davidk01 | null | Dart is actually a pleasant language to work with and its VM is state of the art. The stuff they're doing with Flutter is pretty amazing. It is kinda annoying that they're not pouring more resources into it though. | null | 0 | 1491196227 | False | 0 | dfrcjax | t3_632937 | null | null | t1_dfrazly | null | 1493748179 | 2 | t5_2fwo | null | null | null |
null | davidk01 | null | Another fucking YAML DSL. Why? Why yet another fucking YAML DSL? Just use Rake and be done with it. Or if you like Haskell go with Shake. Both are DSLs/libraries in actual programming languages instead of bastardized external DSLs. You've just re-invented another wheel very poorly and thrown out all of the benefits you get with a real programming language like actual syntax, debugging tools, modules, packages, etc.
Is it faster than make? Does it have some extra capabilities beyond what make provides? Does it have first class support for something make doesn't provide for? Is it easier to debug failures in this DSL instead of make? I'm gonna guess the answer is no to all of these things.
Unlike some other comments I'm gonna come out and say you wasted your time. You should not have made yet another external YAML DSL. | null | 1 | 1491196381 | 1491196803 | 0 | dfrcm8r | t3_62zk1i | null | null | t3_62zk1i | null | 1493748220 | 0 | t5_2fwo | null | null | null |
null | 3ba7b1347bfb8f304c0e | null | Your friend must be very new to software. | null | 0 | 1491196513 | False | 0 | dfrcoxj | t3_63405x | null | null | t3_63405x | null | 1493748256 | 7 | t5_2fwo | null | null | null |
null | astrobe | null | I'd say it's good enough. I know a game that use this kind of algorithm to generate planet textures. What is missing though is "terrain features" like forests, deserts or cities. | null | 0 | 1491196829 | False | 0 | dfrcv1a | t3_630cgb | null | null | t1_dfr9j6k | null | 1493748337 | 8 | t5_2fwo | null | null | null |
null | FrozenCow | null | I've done this for a few games in JavaScript as an experiment. Basically, I only send the input of players and their timestamps. The gamestate is updated using a reducer function that accepts the previous gamestate and list of events that have occurred the previous frame. Events are for instance inputs of a certain player or a player connecting/disconnecting.
The client sends its input to the server with it's current timestamp, the server forwards the input as an event to the other clients. Other clients can 'rewind' their gamestate, insert the event at the timestamp where it initially occurred and fast forward the gamestate to the time the player was viewing.
It results in a very minimal amount of messages between clients and servers.
Of course there were some major downsides:
* Multiple gamestates need to reside in memory, because we need to rewind to a time when playerinput has happened.
* The processing time of a particular player input depends on how far back in time it happened. When players with high latency are connected, the game can lag because it needs to process input. Removing high latency players does circumvent this somewhat.
* It only works for simple games with small gamestate. Large gamestate and slow gamestate updates is just not viable.
* Every player has the gamestate of the whole game as it needs to simulate the whole game. That means there cannot be any information in the game that is hidden for the player. Practically though, this already seems to be the case for most games.
* The game needs to be fully deterministic *across multiple machines*. Every update of the game needs to be processed exactly the same way on every client. This is a very hard one, as I found out the hard way that number/floating point calculations differ not just between processor architectures, but also across JavaScript engines. The way to circumvent this in the browser is by not doing any floating point calculations. It happens very rarely, but once states differ, the butterfly effect kicks in.
Especially that last one was nasty. Keeping the server as the authority and syncing state, optionally in addition to input, seems to be the most stable solution. | null | 0 | 1491197025 | 1491197951 | 0 | dfrcysu | t3_62yl50 | null | null | t1_dfq4yqq | null | 1493748390 | 5 | t5_2fwo | null | null | null |
null | ryanstephendavis | null | I've drawn this parallel before. One of the biggest I've noticed is the teamwork aspect of programming and playing with a musical group. One has to emulate the style of everyone one else and also had a"place"where they fit. Structuring/writing a song or an entire album is much like setting up the architecture of a program and then allowing the other musicians record/fill in their spots is like having the other coders come in and write their code. | null | 0 | 1491197064 | False | 0 | dfrczjt | t3_633o3y | null | null | t3_633o3y | null | 1493748401 | 7 | t5_2fwo | null | null | null |
null | kankyo | null | So? Do you know which design their code is? | null | 0 | 1491197198 | False | 0 | dfrd21x | t3_62yl50 | null | null | t1_dfr9pc0 | null | 1493748435 | 2 | t5_2fwo | null | null | null |
null | kankyo | null | Not really. But look at my lib instar for a nice API for updating data structures :P | null | 0 | 1491197246 | False | 0 | dfrd2x8 | t3_62yl50 | null | null | t1_dfqqiss | null | 1493748447 | 1 | t5_2fwo | null | null | null |
null | FrozenCow | null | It is still possible to have the gameplay itself being implemented as a pure function. The engine itself doesn't need to be pure. | null | 0 | 1491197355 | False | 0 | dfrd4zo | t3_62yl50 | null | null | t1_dfqjd7g | null | 1493748476 | 2 | t5_2fwo | null | null | null |
null | Rodot | null | Just seed it the same way and reset it each time? | null | 0 | 1491197393 | False | 0 | dfrd5oh | t3_630cgb | null | null | t1_dfqqncn | null | 1493748485 | 7 | t5_2fwo | null | null | null |
null | delias_ | null | https://twitter.com/allspaw/status/847416865727029251 | null | 0 | 1491197617 | False | 0 | dfrd9rc | t3_62yxur | null | null | t3_62yxur | null | 1493748540 | 1 | t5_2fwo | null | null | null |
null | [deleted] | null | [deleted] | null | 0 | 1491197718 | False | 0 | dfrdbme | t3_630cgb | null | null | t1_dfqwnui | null | 1493748565 | 5 | t5_2fwo | null | null | null |
null | [deleted] | null | [deleted] | null | 0 | 1491197723 | False | 0 | dfrdbpi | t3_630cgb | null | null | t3_630cgb | null | 1493748566 | 1 | t5_2fwo | null | null | null |
null | frenris | null | yes you understand what I'm suggesting.
You have a type which has the width of the union but is typed to say which field it is. For each field of the union. In this case it says this value is the struct ref and not an int.
| null | 0 | 1491197808 | False | 0 | dfrdd8p | t3_62wye0 | null | null | t1_dfr879p | null | 1493748586 | 1 | t5_2fwo | null | null | null |
null | [deleted] | null | [deleted] | null | 0 | 1491197942 | 1491400288 | 0 | dfrdfry | t3_634f0e | null | null | t3_634f0e | null | 1493748620 | 3 | t5_2fwo | null | null | null |
null | woutske | null | Maybe add the programming language in the title next time ;) | null | 0 | 1491197997 | False | 0 | dfrdgsw | t3_634hyp | null | null | t3_634hyp | null | 1493748634 | 1 | t5_2fwo | null | null | null |
null | evincarofautumn | null | Presumably in the first example, `(>=) 0.` should be `(<=) 0.`, because the original was `x >= 0.`, not `0. >= x`.
> Point-free implementations also tend to be brittle, with slight alterations to either implementation or type signature often prompting substantial rewrites and introduction of new classes of combinators.
This is true 1. in languages that weren’t really designed for point-free programming, but where people do it anyway (e.g., Haskell) and 2. in languages that *were* designed for point-free programming, but where people do it too much (e.g., Factor).
It’s not a silver bullet, but it is a very useful code structuring technique. I like concatenative programming languages, and I think they have a lot to offer the programming world in terms of simplicity, expressiveness, concision, code reuse, and performance.
| null | 0 | 1491198004 | 1491285970 | 0 | dfrdgws | t3_632jqy | null | null | t3_632jqy | null | 1493748635 | 2 | t5_2fwo | null | null | null |
null | skulgnome | null | How simple your programs must be for a compiler's say-so to make them correct again. | null | 0 | 1491198513 | False | 0 | dfrdq03 | t3_62wye0 | null | null | t1_dfqhpdr | null | 1493748757 | 2 | t5_2fwo | null | null | null |
null | beohoff | null | Can you point me to a reference for ring 1, ring 2, etc? I've never seen that nomenclature before | null | 0 | 1491198703 | False | 0 | dfrdt9a | t3_623ftt | null | null | t1_dfjvl4x | null | 1493748800 | 1 | t5_2fwo | null | null | null |
null | nosewings | null | In Haskell, you'd use `State GameWorld` inside of `IO`. Or, if you're really lazy, you'd keep an `IORef GameWorld`. | null | 0 | 1491198726 | False | 0 | dfrdtn5 | t3_62yl50 | null | null | t1_dfq4yqq | null | 1493748805 | 2 | t5_2fwo | null | null | null |
null | LTS1287 | null | No of course not and C still dominates the world of high performance computing and systems programming.
I always thought of specifying the use of features by pre-defined namespaces.
using namespace safe{
// code adhering to rules defined by "safe"
// namespace here
}
I know it looks crazy. I'm not sure if anyone will get what I'm trying to say. | null | 0 | 1491198855 | False | 0 | dfrdvvu | t3_62091n | null | null | t1_dfjwjsf | null | 1493748834 | 1 | t5_2fwo | null | null | null |
null | gott_modus | null | > There was a time when there was only one supported architecture in C too.
C's community was initially C.S. wizards at Bell Labs. Everyone else just used BASIC or some such other faggotry.
Furthermore, C's community at that time wasn't notorious for having excessive masterabatory practices and evangelical programmers who came from backgrounds that had very little to do with writing systems software. The cargo culting was minimal, if at all.
So it was quite clear that the direction they went in terms of platform support had a rational basis.
Rust's core group today consists of a 19 year old boy genius, a pun^k social activist, and some guy who works (worked?) for Mozilla, among others.
So, meh. I think that by comparing C's evolution to Rust's you seem to be under the expectation that Rust *will* have as much impact on the C.S. industry as C.
But I see very little reason to assume that.
| null | 0 | 1491198907 | False | 0 | dfrdwqq | t3_62wye0 | null | null | t1_dfq7n36 | null | 1493748847 | -3 | t5_2fwo | null | null | null |
null | LTS1287 | null | Most likely but I always thought that there's a way to do things without so much line noise. | null | 0 | 1491198938 | False | 0 | dfrdxb1 | t3_62091n | null | null | t1_dfjnub4 | null | 1493748855 | 1 | t5_2fwo | null | null | null |
null | dobkeratops | null | Sorry I can't remember which video it was specifically - and I dont think it wasn't in his initial intros. I think he said:-
(i) he associates it mentally with 'everything being an object',hence OOP (IMO - false - in UFCS it is just syntax, nothing semantic).
(ii) when asked for UFCS, he specifically retorts this. ('I dont subscribe to everything to be an object'). 99% of what he says is intelligent but this is just false. the point of UFCS is to allow the syntax when things re NOT objects! It's just his preference and mental associations.
(iii) He insists that parameter autocompletion could still work in an IDE. (IMO yes, but messily: the IDE would have to go re-arranging your text if you wanted to start with a variable rather than a function, or the cursor would have to jump forward and backward)
(iv) He says people email him continuing to ask for it, and re-states why he doesn't like it.
IMO... I can certainly see why people might object to the asymmetry; but for me pragmatism wins. the separation of parameters lets you identify what is what (trailing prepositions referring to subsequent params e.g. "a.copy_from(b)"; the expressions read more naturally. it's like having |> in F#, making it easier to write chains of function calls repeatedly operating on the last value | null | 0 | 1491199002 | False | 0 | dfrdygn | t3_62ixbc | null | null | t1_dfnww3h | null | 1493748870 | 1 | t5_2fwo | null | null | null |
null | OracleJDBC | null | Hey guys could you help?
I feel like pbt is useful, but I don't understand how I could only use it for my program without unit test. Because if takes a lot of time to run them and the feedback is so much longer.
I feel like the only use I have for pbt is for algorithms that could use the fuzzer. But to be honest, algorithms are a very very small part of my work. | null | 0 | 1491199140 | False | 0 | dfre0tm | t3_631rz0 | null | null | t3_631rz0 | null | 1493748901 | 2 | t5_2fwo | null | null | null |
null | StrangeAeons | null | If you haven't seen it yet, this talk by Idris' creator, Edwin Brady, is very interesting:
https://m.youtube.com/watch?v=X36ye-1x_HQ | null | 0 | 1491199148 | False | 0 | dfre0yn | t3_62scvv | null | null | t3_62scvv | null | 1493748903 | 3 | t5_2fwo | null | null | null |
null | sonictk | null | Could you elaborate on pros/cons of the other popular ones out there(Allegro, SDL2, SFML, vs. rolling your own)? I'm starting to just experiment with dev-ving on Linux/OSX after being on Windows exclusively for a while. I'm specifically interested in performance characteristics between them. (yes I know I should just roll my own then, but so far I am gravitating towards SDL2 for being lightweight enough and still helpful for handling xplatform differences.) | null | 0 | 1491199473 | 1491199672 | 0 | dfre6cj | t3_634f0e | null | null | t1_dfrdfry | null | 1493748975 | 1 | t5_2fwo | null | null | null |
null | NoMoreNicksLeft | null | Because their intelligence is concentrated into a rather narrow range of talents called "programming" and similar, and very little is left over for things like "why do I want to live like some college student with 4 roommates in a tiny apartment that costs way too much". | null | 0 | 1491199951 | False | 0 | dfree8v | t3_62zrgk | null | null | t3_62zrgk | null | 1493749082 | -2 | t5_2fwo | null | null | null |
null | NoMoreNicksLeft | null | How are they well-paying? The cost of living is to ridiculous, that the salaries are quite modest.
You'd do better framing it as "they're all hoping to win the stock option lottery". Though, how any of them could be quite dumb enough to believe they'll get in on the ground floor of the next Google or Facebook isn't all that obvious to me. | null | 0 | 1491200043 | False | 0 | dfrefsk | t3_62zrgk | null | null | t1_dfq940u | null | 1493749102 | 1 | t5_2fwo | null | null | null |
null | floodyberry | null | How the fuck does something this basic with a major lack of details get 1600 upvotes? | null | 0 | 1491200088 | False | 0 | dfregh6 | t3_62yl50 | null | null | t3_62yl50 | null | 1493749111 | 6 | t5_2fwo | null | null | null |
null | buaya91 | null | I believe so, although I develop my game as a web game, this article does not assume any platform, so p2p is possible, also with WebRTC we can achieve p2p communication, but it's a pain in the arse, so I never tried it yet, I think it's doable. | null | 0 | 1491200126 | False | 0 | dfreh3b | t3_62yl50 | null | null | t1_dfqyt1g | null | 1493749120 | 1 | t5_2fwo | null | null | null |
null | lithium | null | This is why i've always preferred [cinder's](http://libcinder.org) approach, where objects backed by a GL handle are required to be allocated via a factory method and are returned as `std::shared_ptr<>`, which are a perfect fit for this kind of thing. e.g:
gl::Texture2dRef t = gl::Texture2d::create ( ... )
where `gl::Texture2dRef` is a `std::shared_ptr<gl::Texture2d>` | null | 0 | 1491200229 | False | 0 | dfreiqj | t3_634f0e | null | null | t1_dfrdfry | null | 1493749141 | 1 | t5_2fwo | null | null | null |
null | tscs37 | null | Atleast my university teaches it. Basically anyone after second semester can tell you that you need to use bcrypt or stronger. | null | 0 | 1491200277 | False | 0 | dfrejhq | t3_6344ep | null | null | t1_dfr7mdf | null | 1493749151 | 3 | t5_2fwo | null | null | null |
null | [deleted] | null | [deleted] | null | 0 | 1491200282 | 1491514718 | 0 | dfrejkx | t3_6350ax | null | null | t3_6350ax | null | 1493749152 | 15 | t5_2fwo | null | null | null |
null | NoMoreNicksLeft | null | London, the place where they're limiting the cars that can drive into it? | null | 0 | 1491200327 | False | 0 | dfrek9n | t3_62zrgk | null | null | t1_dfqqhb8 | null | 1493749162 | -1 | t5_2fwo | null | null | null |
null | codebje | null | What's the difference between `union<ref to struct>` and just straight up `ref to struct` ? As in, what code could you write using the former that wouldn't be precisely the same as with the latter?
I suspect that if you must specify the contained type of the union, and the compiler enforces this for you, that you don't actually have a distinct type at all: you've got to match up the union fields on all return, argument, variable types everywhere, so while you can never receive a union with an int in it instead, you also can't use the same variable to store either an int or a reference, because it's got to be typed one or the other.
If the compiler doesn't enforce it, then you have an untagged union again, and at the point the compiler lets you take an arbitrary union value and call it a reference, you've done an unsafe thing. | null | 0 | 1491200575 | False | 0 | dfreo4j | t3_62wye0 | null | null | t1_dfrdd8p | null | 1493749213 | 2 | t5_2fwo | null | null | null |
null | axilmar | null | When people will learn that new programming languages shouldn't be introduced via youtube videos...
That killed any desire of me to see what this language is all about... | null | 0 | 1491200774 | False | 0 | dfrer7q | t3_631p99 | null | null | t3_631p99 | null | 1493749254 | 7 | t5_2fwo | null | null | null |
null | [deleted] | null | [deleted] | null | 0 | 1491200776 | 1491400296 | 0 | dfrer94 | t3_634f0e | null | null | t1_dfre6cj | null | 1493749255 | 3 | t5_2fwo | null | null | null |
null | roffLOL | null | english speakers are not dimwits then. thanks. | null | 0 | 1491200822 | False | 0 | dfres09 | t3_62ls64 | null | null | t1_dfqwh4w | null | 1493749265 | 1 | t5_2fwo | null | null | null |
null | kaeedo | null | In my experience, pbt are not a replacement for unit tests. They are an additional set of tests to be used along with unit tests, integration tests, and e2e tests. That being said, I'm a big fan of them, but I also find it difficult using them for a lot of things | null | 0 | 1491200945 | False | 0 | dfretxs | t3_631rz0 | null | null | t1_dfre0tm | null | 1493749291 | 2 | t5_2fwo | null | null | null |
null | andrew_on_tech | null | Thanks! Hope you enjoy :) | null | 0 | 1491201030 | False | 0 | dfrevaz | t3_6346wn | null | null | t1_dfr94bh | null | 1493749309 | 3 | t5_2fwo | null | null | null |
null | [deleted] | null | [deleted] | null | 0 | 1491201038 | False | 0 | dfrevex | t3_632937 | null | null | t1_dfrcjax | null | 1493749310 | 1 | t5_2fwo | null | null | null |
null | shevegen | null | > Go to ~/.emacs.d/personal/custom.el and add following two lines at the end of the file.
> (require 'recentf)
> (recentf-mode 1)
> (setq recentf-max-menu-items 50)
Yikes - so ugly.
Not that vim uses anything prettier... | null | 0 | 1491201056 | False | 0 | dfrevp2 | t3_630rew | null | null | t3_630rew | null | 1493749314 | 1 | t5_2fwo | null | null | null |
null | codebje | null | https://en.wikipedia.org/wiki/Protection_ring
http://unix.stackexchange.com/questions/94663/rings-and-run-levels (Linux monolithic kernel, including drivers, is entirely in Ring 0, userspace code entirely in Ring 3)
Of interest is perhaps the hardware assisted virtualization mode called "Ring -1", where the OS runs in Ring 0 thinking it has full control of the hardware, but there's a sneaky hypervisor running beneath it faking it out. | null | 0 | 1491201086 | False | 0 | dfrew68 | t3_623ftt | null | null | t1_dfrdt9a | null | 1493749321 | 2 | t5_2fwo | null | null | null |
null | mayur-lohite | null | Yes! Sorry I will keep it in mind next time. But this time forgive me. | null | 0 | 1491201113 | False | 0 | dfrewlf | t3_634hyp | null | null | t1_dfrdgsw | null | 1493749326 | 1 | t5_2fwo | null | null | null |
null | G00dAndPl3nty | null | Of course they don't. Security is an entire incredibly complex field that one doesn't just pickup on the side while making android apps and websites.
Its like UI design. Every dev thinks they can do it, when in reality they don't know shit. | null | 0 | 1491201208 | 1491202202 | 0 | dfrey2u | t3_6344ep | null | null | t3_6344ep | null | 1493749345 | 201 | t5_2fwo | null | null | null |
null | G00dAndPl3nty | null | MD5 hashes are fine.. so long as you don't use them for security purposes | null | 0 | 1491201249 | False | 0 | dfreyoo | t3_6344ep | null | null | t1_dfr7mdf | null | 1493749354 | 4 | t5_2fwo | null | null | null |
null | crashC | null | Tried following the instructions in the readme on a linux mint machine, and I can suggest a couple of additions to those installing on linux mint:
1. Run sudo apt-get update and sudo apt-get upgrade before you start. If your install of dart is not up-to-date, it might not work, I'm not sure.
2. Have mongodb installed before you start, too. The server connects to it.
| null | 0 | 1491201468 | False | 0 | dfrf20y | t3_632937 | null | null | t3_632937 | null | 1493749398 | 2 | t5_2fwo | null | null | null |
null | nanodano | null | It is true that security as a whole is a broad field with many specializations, but you can learn to write secure code and know what to be aware of without having to specialize in a security discipline. | null | 0 | 1491201506 | False | 0 | dfrf2kc | t3_6344ep | null | null | t1_dfrey2u | null | 1493749405 | 27 | t5_2fwo | null | null | null |
Subsets and Splits
Filtered Reddit Uplifting News
The query retrieves specific news articles by their link IDs, providing a basic overview of those particular entries without deeper analysis or insights.
Recent Programming Comments
Returns a limited set of programming records from 2020 to 2023, providing basic filtering with minimal analytical value.