Play with it here, if you desire to fully immerse yourself in the circlejerk:
https://codepen.io/PicturElements/full/XaqdRd
Edit: audio doesn't seem to work when I try it on Android. Clearly Android is poorly implemented.
Context: http://www.businessinsider.com/gitlab-outage-due-to-human-error-2017-2
Official blog post: https://about.gitlab.com/2017/02/01/gitlab-dot-com-database-incident/
> ...a GitLab system administrator tried to fix a slowdown on the site by clearing out the backup database and restarting the copying process. Unfortunately, the admin accidentally typed the command to delete the primary database instead, according to a blog entry.
>And by the time he noticed and scrambled to stop the deletion "of around 300 GB only about 4.5 GB is left," the blog explains.
>Making matters worse, they couldn't just restore: "Out of 5 backup/replication techniques deployed none are working reliably or set up in the first place" the blog said. "We ended up restoring a 6 hours old backup." Which means that any data created in that six-hour window may be lost forever, Anglade says.
>The good news, says Anglade, is that the database that was affected didn't actually contain anyone's code, just stuff like comments and bug reports. Furthermore, Anglade says that the many customers who installed GitLab's software on their own servers weren't affected, since that doesn't connect up to GitLab.com. And paying customers weren't affected at all, the company said, which minimize the financial impact.
Emphasis is mine.
Sounds like it's a lot worse for their public image than for their customers, if no actual code was lost.
It's obviously ((i*i*i)+(11*i)-6)/6
for the first number in the line i and then just + 2 for all further numbers in the same line.
You have still a lot to learn to become a good programmer. I am a good programmer because I found the solution using google ;-D https://www.sololearn.com/Discuss/2320099/write-a-program-in-c-to-print-the-pattern
I assume the term is for general video game "AI", which technically works. However, practices for applied AI typically involve search algorithms, value iteration, q learning, networks of perceptrons, etc.
Berkeley has some nice slides available for free if you want to get a better idea: http://ai.berkeley.edu/lecture_slides.html
If you want to learn more, I highly suggest reading Artificial Intelligence: A Modern Approach by Stuart Russell and Peter Norvig.
You’ll be pleasantly surprised by AT&T fiber. We have had it for about 1.5 years after moving to the area. We had Comcast prior to that. Night and day difference.
Edit: Seeing as this has drawn a lot of comments, here's a speedtest being on day 9 of my billing cycle w/ 600GB+ usage - https://www.speedtest.net/result/7808727971.png. Some people don't trust speedtest.net so I checked fast.com (netflix CDN) and got 580Mbps down, 540Mbps up.
Image Transcription:
[Two programming reference books from O'Reilly laid side-by-side. On the left is C# 5.0 In A Nutshell: The Definitive Reference. On the right is JavaScript: The Good Parts. The C# book is thicker than the JavaScript book by a factor of approximately 5 or 6.]
^^I'm a human volunteer content transcriber for Reddit! If  you'd like more information on what we do and why we do it, click here!
IIRC there was some Java code a guy commented about that had something along those lines - I think it had to do with the amount of time the JVM took to parse it forcing it to slow down and force something else to happen, preventing a race condition. Edit: As /u/Jedakiah said, this is what i'm remembering
This is why presubmit scripts are great.
> Error: Messages.strings updated but no corresponding diff found for Plurals.strings
and if Person Who's Not Here Anymore wrote it, just blame the script to find the commit that added the error and read the description to understand why.
As a bonus you can use lolcommits to take a lolcat-style photo from your webcam with every commit.
Eve online had a file called boot.ini located in its local directory, a patch was created to overwrite that file.
The command was listed as del "boot.ini" in the script instead of del "$GAMEPATH\boot.ini". Windows interpreted this as the script wanting the current drive's /boot.ini file deleted and did so. Killing the system of any eve players who had the game installed to their boot drive.
full write up here: https://www.eveonline.com/article/about-the-boot.ini-issue/
Practice questions here:
They ask questions like the ones listed on the site, and you have to work on them on a whiteboard. You can ask questions from the interviewer and small mistakes are okay, but to get into certain companies you have to master this style of question.
If you do a question a day you'll be in pretty good shape in a few months.
Ask /r/cscareerquestions for more info and read up on the process.
Basically it doesn't have generics which means you have to do a lot of fuckery with interfaces to get to a level of abstraction that you get with generics. And it's still not really possible. You end up with a lot of duplicated code for compatibility with different types.
Best example is https://golang.org/pkg/sync/atomic/ the atomic package used for asynchronous arithmetic.
You have AddInt32, AddInt64, AddUint32....
Protip: Make a more-or-less formal style guide. Enforce it. Make sure its rules are not set in stone, but are as hard to bypass as a stone wall; as not allowing a single well-thought exception is almost as bad as not following a guide.
People doing this in a project are only losing time, and as The Mythical Man-Month says, a project gets late one day at a time.
yeah there's a little miscommunication between unicode and the emoji standard there. According to unicode it is "Face With Look of Triumph". The emoji standard doesn't interpret the emotion of the emoji (anymore) and calls it "Face With Steam From Nose" and its description reads: >A face with air coming out of its nose, in a proud yet disdainful way.
>Commonly used for representing frustration at a situation, or a being “in a huff”.
It is exactly what /u/contactlite was looking for.
To clarify even more; it's TunnelBear, a VPN service that has had a bunch of pretty big marketing campaigns in the past but actually doesn't live up to the hype or cost. It's just a mediocre service with plenty better alternatives.
If you read this comment and happen to be looking for a VPN service: TunnelBear is decent and has a quite alright free trial, but be sure to do a speedtest and a traceroute on every service you try to make sure you're not routed through some far away country on every request.
"The answer to that is that if you need more than 3 levels of indentation, you’re screwed anyway, and should fix your program"
A linter would be my guess. Most linters wont let you compile your code with more than 1 blank line between 2 blocks, but sometimes you just need to separate them with 3 or more lines. With this, you can circumvent it.
Highly recomment ESLint for JS-based apps btw.
Hey, Matt from Stackify here. We created the game as a fun marketing giveaway. First seen at the DevIntersection show. They aren't actually for sale as I believe that violates CAH's terms for special editions like this and was never our intent.
If you are interested in getting one, they are free to those who sign up for a free trial and installs our software. We provide server monitoring, app metrics, error tracking, log management, and APM for software developers.
FYI, Our version is not related to the DevOps one that dryfunfish pointed out.
This is not right! There are no arrays in lua.
Code like this would be completely valid
local t = { }
for i = 0, 2, 1 do t[i] = i end
And you would have your "array" t
start at 0.
Although, as stated by the lua.org page, "arrays" in lua are allowed to start at any index they want, but guess why, it's because they are not arrays, they are tables
You don't joke with code.
This is a real issue, as seen here: https://searchcode.com/?q=if%28version%2Cstartswith%28%22windows+9%22%29
And here:
http://thedailywtf.com/Articles/Wheres-Windows.aspx
And this is public code. Imagine all the enterprise code that nobody ever sees anymore, nor maintains. Probably a lot of old Fortran or VB code that is extremely vital, but horribly written. If MS want enterprise to embrace their next version, they cannot break backwards compatibility.
This problem is already solved by Creative Commons Zero.
Basically it says "This is public domain unless public domain doesn't hold water in your jurisdiction in which case here's a list of all the stuff you can do with it which is the same as public domain"
dynamic range compression? Windows has it as an option built in I think.
It was a while ago and can't check right now but I think I had some success using MPC-BE which has a similar function, so at least when watching movies it would compress the range (I had a PC hooked up to TV/Surround Sound)
Reminds me of this one guy who posted a lot of sample code in the Pygame documentation years ago. His function and variable names randomly had shit like "HE_HE_HE" and "WEEE" and "WOW" all over the place. Looks like it's still there in the comments for pygame.draw.circle(). Truly a sight to behold.
As a Java developer, I don't get why all the hate. :(
Oracle can be a pain with the stupid offers, but it's not like you can't disable them.
(https://www.java.com/en/download/faq/disable_offers.xml)
Or use a different JDK
I like my checked exceptions. :(
That site has a very spammy appearance. I also like that the video downloader you ~~are paid for to link to~~ recommend has a fake download counter on their website. The elements id is "myTargetElement" as if it was copied from some JS introduction course. They even left the comment with the playground URL in there: https://stackblitz.com/edit/countup-typescript
It's a totally valid option in some languages and for some semantics. It's among Kotlin's official idioms, for example.
+1, don't just circle jerk and pretend you're above learning patterns before you even understand why they exist. They can be abused, but they exist for good reasons.
I strongly recommend going over Head First Design Patterns to anyone interested.
It's Structure and Interpretation of Computer Programs by Abelson and Sussman. There is a PDF version here but I'm reading a physical copy.
Also, on an unrelated note you can reference (and summon) specific users by just typing their username out as: /u/paullik
It isn't Javascript that we're trying to avoid - it's having to learn whatever the framework du jour that is being used - and CSS.
I mean, a few years back, Angular was all the rage, currently React seems to be queen of the hill, even as Vue is making a charge for the top. And now there some skinny new weirdo on the scene.
Nobody fears node, what people fear is framework churn and having to redo a lot of work for reasons - that and having to learn CSS.
... vs Esoteric Languages:
_"Hello World!
Yes, that's a complete program. Yes, it doesn't have a closing quotation. Pyth doesn't care. Pyth just keeps on trucking. Pyth just interprets _
as reversal. Pyth just implicitly prints the output. Pyth is also a very real programming language, although god help you if you write production code in it.
It also has online interpreters so you can verify that it works.
But we can do better. We can avoid writing "Hello World!"
entirely.
Enter...
“,ḷṅḳȦ»Ṛ
I swear, I didn't just smash the keyboard. I'll give you the online interpreter first, even.
Now do talk about why this works. Jelly is... Well, Jelly just is. It has strings. Strings aren't like most languages. There's a language construct (not even a function, it's built into the syntax) specifically made to compress strings, especially those that have English words (like, what do you know, "Hello World!"). “,ḷṅḳȦ»
is that string; »
marks it as a compressed string, ,ḷṅḳȦ
is the compressed content (that decompresses to Hello World!
... Don't ask me how, I don't exactly know)... And Ṛ
reverses it.
Fun C pedantry!
A null pointer in C is not guaranteed to have any particular integer value. What is guaranteed is that comparing a pointer for equality to 0 (or to the NULL macro) constitutes a null pointer check, and will return true if the pointer is a null pointer. The actual bit representation of a null pointer is implementation defined. See here.
Learn how to create your very own Wix site on my website which I made using Squarespace. You too can learn how to create great websites on Squarespace using Skillshare, and you can keep your Skillshare password safe using Dashlane, but what good is having a secure password if your connection is not safe? So I recommend NordVPN. I found a great audiobook on how to set up NordVPM on Audible.
Visit to get your discount now.
And remember to like, comment and subscribe to keep up on all my latest posts and press the bell icon to get notifications when I post new stuff. Check out my Patreon to vote in polls for my new content ideas and access to my Discord.
If you have good bandwidth and you’re willing to help others you could “donate” compute time like for example SETI or other open source projects like AI. I am not talking about crypto mining but actual scientific projects.
https://en.wikipedia.org/wiki/List_of_distributed_computing_projects
So what is the cause of this? Does one of them not have a trailing newline character? Because that just means someone is using a broken editor
Linux kernel coding style: "Tabs are 8 characters, and thus indentations are also 8 characters. There are heretic movements that try to make indentations 4 (or even 2!) characters deep, and that is akin to trying to define the value of PI to be 3."
God... Reading that link, I disagree with basically every one of Linus' style preferences.
For reference:
Golang's reference time for formatting is "Mon Jan 2 15:04:05 MST 2006" or "01/02 03:04:05PM '06 -0700"
Internally time is: > The zero value of type Time is January 1, year 1, 00:00:00.000000000 UTC.
I’m sorry, but is our job as developers to do the needful and spread the gospel of eradicating light themes, not spending time being productive and just writing code, but going overboard with editor configuration until you’ve completely forgotten about why you even installed a text editor.
It’s worrisome that this thread is over an hour old and nobody has come to spread the good word of the one true editor, our lord and savior VSCode, the free and open source messiah that doesn’t try blinding you when you first greet it like other false prophets, but instead greets you with solid contrast and power saving dark colors. How can anyone deny that VSCode isn’t the true path to righteousness when out of the box it is able to autocomplete better than any other without consuming one’s entire available RAM and CPU time like other heathen IDEs (like the antichrist eclipse with it’s light theme blinding you so it can wreak havok upon your machine). And once equipped with the VIM extension, there’s no doubt that it is the true successor to the original divine editor as it possesses all the power of the original while still allowing you to exit it without having to sacrifice your first born child (but that option is still available as it understands the old magic of :wq
and :x
and :wofjspleaseexit
.
^(But seriously, give them the link to VSCode, ignoring the dark theme circlejerk, out of the box it’s seriously one of the best — if not the best — HTML editors available)
Personally, after reading the beginning of Structure and Interpretation of Computer Programs, I like to refer to myself as a Code Sorceror.
When someone asks, "What do you do for a living?" I reply, "I invoke the spirits of the machines, and make them do my bidding."
This was one of the problems faced by Ion Storm, the developers of Daikatana.
At tremendous expense, John Romero had leased out the two-story penthouse of the Texas Commerce Building to transform it into the ultimate gaming development palace, with wraparound floor-to-ceiling views of the entire city.
But the developers ended up stapling thick black felt sheets all over because the 60-foot arched glass ceiling was causing too much glare.
You're probably not the original poster, but to anyone tempted to do this, don't take a picture of your screen, use windows snipping tool (or take a screenshot!)
https://support.microsoft.com/en-us/help/13776/windows-use-snipping-tool-to-capture-screenshots
Comments are easy enough to ignore. Just as long as some cockwomble with a high reputation doesn't decide to put "Try switching to C# and see the light" as an answer.
The SO community can be fairly brutal to newcomers if they don't even attempt to search the site before they post the question beforehand or show their code and what they've got so far.
Ultimately though, I've got to say that the question reads quite badly, and the commentards (including one mod) definitely don't help.
Edit: It seems like some of the original commenters spotted this post since they've removed their comments on SO in the last 24 hours.
It's a pretty good example of the fact that a lot of software development doesn't happen in a vacuum where only performance and efficiency matter.
VSCode's greatest strength is it's own ease of development. There's tons of developers who can contribute to the project rapidly and create extensions. Their update log speaks for itself.
Of course Electron has a lot of overhead, but at the end of the day providing value for your end-users is key and a tool like Electron may easily be cost-efficient in that regard. The project switching to C++ for incredibly efficient code would be a disservice to it's users.
I used to trust ProtonVPN, but they actually broke their own policy of not logging user data and handed the email of a climate activist to the Swiss government.
Edit: They seem to be under legal obligations, and they can only be forced to give info for ProtonMail and not ProtonVPN. So, yeah, they're good.
My suggestion: Use integer values. Store the value in cents.
TLDR integer values in js lose precision only after 2^53
The point of a VPN is so that all your traffic is made anonymous via the VPN so that nobody who is intercepting your traffic can monitor your activity, such as your ISP.
An IP/DNS leak is if somewhere, your computer establishes requests before the VPN can catch them and establish them through its own anonymous server. Therefore, your computer would still be sending connections that somebody who is monitoring your internet (like your ISP) could track.
As far as TunnelBear goes, I have heard of no DNS leaks and I'm pretty sure they even have a page that claims they have no leaks, so I'm not sure what that person is talking about, though I could be wrong.
LUA? What's LUA? I only know of Lua.
> "Lua" (pronounced LOO-ah) means "Moon" in Portuguese. As such, it is neither an acronym nor an abbreviation, but a noun. More specifically, "Lua" is a name, the name of the Earth's moon and the name of the language. Like most names, it should be written in lower case with an initial capital, that is, "Lua". Please do not write it as "LUA", which is both ugly and confusing, because then it becomes an acronym with different meanings for different people. So, please, write "Lua" right!
Don't forget Alt+PrintScreen to get only the currently focused window 😁
I personally have been using https://getgreenshot.org/ for about 5 years or so and it is still one of my favorite. It can replace PrintScreen with a snipping tool that then allows simple edits like adding text, colored rectangles or arrows (amongst other features). Very useful for quick sharing!
Sure, I work in a team project which uses Platformio. Admittedly it does have a VS Code extension, but firstly I couldn't get it to work when I tried, secondly Platformio kinda takes over your whole editor putting buttons everywhere even when you don't have a project open, and thirdly, when I asked the "team leader" guy about using VS Code, he told me to just use Atom. So, yeah, I'm not "forced" to use Atom but it's pretty much required.
Also I originally used Sublime Text 3 but decided to switch to VS Code, I use IntelliJ a lot and I like it's feature where when you type method names or start typing after an object, it will bring up similar sounding methods or the list of methods the object has. VS Code has this but I never found anything for Sublime Text that did, if there was an extension for Sublime that did that I'd probably switch back.
CGI stands for both "Common Gateway Interface" and "Computer Generated Imagery". In the early days of web development, you might have some perl script a cgi-bin directory to do server-side scripting. http://www.tutorialspoint.com/perl/perl_cgi.htm
1.229.388.964,65 earths
9.223.372.036.854.775.807(unsigned 64bit int)/7.502.403.472 souls on earth right now according to this site = 1.229.388.964,65
He needs a huge phonebook
It's just some crappy game I made a few years ago in my free time. There's a reason the person in the picture uninstalled it shortly after installing it, lol. https://play.google.com/store/apps/details?id=com.LaggyAppleStudios.SteadyShot
Holy crap, I was trying to figure out how to report it to Amazon...
Edit: Still an issue, but only for Postgresql
Edit2: I tweeted @awscloud letting them know.
What I find funny about this is that you cannot accurately Google a lot of programming constructs as it ignores symbols. When I need to search for symbols, for example "=== vs ==" I use http://symbolhound.com/
Rumour has it that this actually happened to British Airways recently. The story says that they fired all their Western developers and moved all their software dev to India. When they handed over the project the Indians said they understood everything. Cue massive outage because the main system went down and nobody knew how to fail over to the secondary.
Here's a write up I found in a quick Google search - I'm sure there's more information elsewhere.
It is just a class that creates objects.
Imagine you wanted to build your own car. It's pretty complex, requires a lot of parts and the knowledge of how a car works. But what if you could go to a car factory and just get a car that is built and ready to use...
This is the basic idea of the factory. It will generally provide some utility methods for getting an instance of a class, and is often used to hide some of the complications around creating those classes. Rather than complex instantiations dotted around your code base, you have a simple call to a factory method.
*Edit: A very simple example: http://www.tutorialspoint.com/design_pattern/factory_pattern.htm
You just figured out the formula for the sum of the first n positive integers! The formula is n(n+1)/2 and you realized that the sum is equal to the last number(n) multiplied by the middle number((n+1)/2).
in PHP: http://php.net/manual/en/language.operators.comparison.php
= is used for definition
$a == $b Equal TRUE if $a is equal to $b after type juggling.
$a === $b Identical TRUE if $a is equal to $b, and they are of the same type.
it's a joke that ==== becomes a thing
I don't know why(*) but the volume seemed to scale weirdly, it was already pretty well hearable at 1% overlap, and 20% to 100% seemed to have only a small volume difference.
I tuned the line JS line 54:
audio.volume=Math.pow(overlap,2.5);
This way it scales a bit better than with linear function, with 0-20% being really silent compared to 100%.
Direct link to tweaked version.
^(*check /u/Ph0X's reply for why it doesn't really work that well with linear growth.)
> death sentence: “i shall sentence you to a 5 year course of assembly.”
Plot twist: you just gave the future developer of RollerCoaster Tycoon all the training he’d need.
> What language was RollerCoaster Tycoon programmed in?
>> It's 99% written in x86 assembler/machine code (yes, really!), with a small amount of C code used to interface to MS Windows and DirectX.
I think that is due to the fact, that the # operator is more like a max index operator, than a length operator http://i.imgur.com/HdRBm8p.png
what I don't really understand is the last one though
edit: from https://www.lua.org/manual/5.1/manual.html#2.5.5
"The length of a table t is defined to be any integer index n such that t[n] is not nil and t[n+1] is nil"
so it is like the "max index"
Edit2: added "like" to the last statement.
I always preferred http://www.downforeveryoneorjustme.com for my go to "Is this site down for everyone or am I just retarded and configured my shit wrong?" site.
Edit: Just found out it the same as isup.com which has already been posted. I'm still going to type the whole URL.
I'd like to introduce you to ngrok which is kinda like Hamachi but more than 5 people can join the server
You might need to do a bit of brute forcing for the covered bits but it's definitely possible.
These guys were able to recover a QR code that was almost completely covered up.
Not necessarily. I have no problems reading it when it's formatted like this:
thing = (conditionA) ? A : (conditionB) ? B : C;
This all assumes you're not using something shitty like PHP with it's left associativity.
well i also have a solution for that, just use google's GBoard. you can set it to have a dedicated emoji key that brings up the usual categories and a search bar. i just found out you can even search by drawing the emoji.
Obviously you wouldn't be coding truth tables into a typical program, but it's a pretty valuable concept to learn when dealing with ~~lower level systems~~ the weird-ass bool logic used by co-workers who desperately need you to buy them a copy of Robert Cecil Martin's Clean Code.
These error reports are misleading if you don't know Todoist (which is a great app).
When you type a task, Todoist parses the text and extracts due date, time, priority, etc. from what you've typed. It's quite nice.
So, this ad:
Has correct and clean JS code
Can be understood even by people who don't know any programming languages.
Is actually pretty funny
And still some people hate it, because hurr durr durr "targeting tech workers with its desperate attempt at making ice cream high-tech."
Also whoever wrote this ad knows more about code than article's author. "ersatz CSS-type code" my ass, it's a goddamn javascript (and perhaps some other languages too) program. What even is "CSS-type code"?
Nah, download caffeine.exe. It presses the f15 key every 59 seconds. What is f15 you ask? A valid key in Windows which is mapped to absolutely nothing, so it doesn't affect any program. But it does keep your computer awake ;)
Instructable I followed for the hardware. Didn't make it specifically for this obviously.
Audio control using Audio Switcher API
Sometimes, yeah, but there's tools that help emulate those environments. One example of a paid tool used to test on different environments is Browserstack.
And also you could create a virtual machine and set it up with the same OS and browser (and any other specific configuration) that the target user has.
Essentially yes. This is why in C you never need a parameter for array offset while in other languages like C# you do, because you can simply supply the offset you want as the start parameter. <code>memcpy</code> is such an example.
What you have to know though is that C is aware of the size of an element. If your pointer is an int
it will offset it properly. The Number you supply is not the number of bytes but the number of elements regardless of its position. You can destroy this though with void*
The original meme was funnier, because Boo is actually a python-like programming language.
Before there were skin colours the default wasn't yellow, it was white.
If you go to, for example, https://emojipedia.org/thumbs-up-sign/ and click any of the styles you can see what it was in old versions: note how in most platforms it was white.
When they decided that was a bit... you know... not cool... they decided to add options for other races, and they figured they should make the default a "non-standard skin colour" (the specification doesn't say yellow, though that seems to be what most platforms adopted*) and nobody stopped to think "hey, why don't we just do that and not bother with a skin tone option".
*Microsoft actually tried grey to start with before realising that made everyone look like zombies.
JS is an amazing language that can do everything from adding two numbers together to powering full blown operating systems.
There's really nothing quite like it!
^^^^^^^^^^^^^^^Which ^^^^^^^^^^^^^^^is ^^^^^^^^^^^^^^^probably ^^^^^^^^^^^^^^^for ^^^^^^^^^^^^^^^the ^^^^^^^^^^^^^^^best...
Easy, just download a few hundred fake faces from https://thispersondoesnotexist.com/ once and just flash those on the screen randomly. Seeing as those faces are randomly generated by an AI, they definitely aren't going to be a match because those people don't exist in real life.
Many pieces of text-to-speech software such as the one included with Windows 10 can actually read emojis and use the names found on Emojipedia.
^^I'm a human volunteer content transcriber for Reddit and you could be too! If&#32;you'd&#32;like&#32;more&#32;information&#32;on&#32;what&#32;we&#32;do&#32;and&#32;why&#32;we&#32;do&#32;it,&#32;click&#32;here!
> imagemagik
Why that? Couldn't you just use "GIMP batch mode" to perform any actions you want on an image? ~~Hell I accidentally found a video how-to while searching.~~
Edit: Video is of using GUI. I will now commit sudoku for my ignorance.
When I need a test image with specific size, I usually use picsum photos, it can be really helpful. If you use windows, you can put url directly into filename, so you can directly write "https://picsum.photos/width/height.png" and it will use random image from pexels. Really helpful.
Before you commit to Dart maybe check out TypeScript. You get most of the benefits of Dart but with a much larger community, better tooling, tons of libraries, much better JS interop, etc.
Get a book, get a little girl - legally if possible - and do her hair.
You can maybe grab a good book about data structures and algorithms: /r/learnprogramming wiki about it. Many people recommend "Introduction to Algorithms" - I read it and it's a good one. Start with trees (binary search trees) and graph theory (Breadth-first search and Depth-first search).
because it's being rendered using RGB. of Red, Blue, and Green, which two do you combine to make yellow? the answer is red and green in an Additive Color Structure. But it makes for a pretty piercing yellow, which is often illegible against white. Here's a quick example of their yellow
Actually, it is often the best practice to not rebase. There are a set of rules of thumbs regarding rebasing by Linus himself:
https://www.kernel.org/doc/html/latest/maintainer/rebasing-and-merging.html
Abuse of rebasing is extremely dangerous
VSCode also has autosave, you just need to turn it on. It's like you guys just give up on trying to solve a problem if the solution is not a simple checkbox on the first tab of the Settings dialog.
Tabs don't have a specific width and those style guides specify column limits (79 +/- 1 or 100).
The Linux kernel uses 8 character tabs. The width is specified because otherwise you'll wrap in the wrong place.
You can see an overview of the differences here: https://www.jetbrains.com/idea/features/editions_comparison_matrix.html
The main difference is extended support for WebFrameworks. Also having support for Hibernate is pretty nice, since it also completes the method names when you define them, e.g. findFilteredBy or something like that.
It you don’t or rarely use the technologies that ultimate edition provides additional support for you are fine with the community edition. The main feature if the ultimate edition I used during university was the duplicate detection :)
Golang competes in the Java/C# space, not the C/C++/Rust space. It has a garbage collector. It abstracts things away from you. Even stack allocation isn't explicit. Its concurrency model is nice, but isn't as performant as raw threads can be since the runtime scheduler isn't free (this is why Rust got rid of its green threads implementation early on).
> First off, I'd suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it's a great symbolic gesture.
There are portable monitors that you can plug in via USB and HDMI. This is just the first thing that popped up on Amazon (there are plenty more!): https://www.amazon.com/AOC-e1659Fwu-1366x768-Brightness-3-0-Powered/dp/B00CMKOVMO
Edit: seeing as a lot of people comment on that specific portable monitor, I'll mention that there are better ones out there. I was lazy and posted the first result that Amazon spewed out. Look for 1080p 60Hz IPS/VA panels if you want good viewing angles and decent refresh rate.
Hey, I've been using PIA (Private Internet Access) for two years now and it works great. No logs and i believe you can pay in bitcoins. They're not putting as much money on marketing as, say, NordVPN or other competitors, but their service is great.
> JavaScript: The Good Parts is really outdated.
This book is about the general philosophy of the language, and about good programming in general. It was never meant to be a reference handbook about such or such feature or implementation.
Don't forget the term "pivot," the space in a brick old converted factory, a copy of Steve Jobs by Walter Isaacson, the Star Wars memorabilia, the mini-fridge full of microbrews, the job titles that include terms like "Code Viking" and the scarfs, plaid dress shirts, and thick black rimmed glasses.
A lot of "bros" dress like hipsters circa 2008 now.
Also books include:
Good To Great
Crossing The Chasm
Accidental Billionaires
The Soul of a New Machine
You joke, but this was done for console games in the past. Consoles games had rigorous tests they had to meet in order to get published. If a game crashed it would fail the certification process. So the devs wrapped their game code with a catch-all which would take you someplace such as a level select screen instead of crashing. See this article.
My C is rusty, so I may not explain perfectly. Basically, the code is easy to read for C veterans (or anyone who has read Kernighan and Ritchie's seminal book, "The C Programming Language") because it is idiomatic, used in lots of C code dealing with strings of characters.
In C, any variable with a non-zero value is considered true, and any variable with zero as its value is false.
In C, an assignment statement has a value, the value that is assigned to the variable. So, the expression x = 10
has the value 10, and while (x = 10)
will never end unless the loop uses a break statement.
In C, a string ends with a null-character, i.e., a character with the binary value zero.
I'd have to write a chapter to explain *p++
in depth, so accept this: p is a pointer to a character, *p
is the value of the character at the pointer, and ++
increments the pointer after fetching the value.
So, while (*s++ = *t++);
copies characters from where "t" points to where "s" points, increments both pointers, and repeats that until a null-character is copied to "s".
Whew.
EDIT: rephrased summary slightly.
Comments rot. Chapter 4, Clean Code by Bob Martin, read it. My job has several (7) software engineers and no comments because the code is so well-written that it is self-documenting. I feel sorry for people who don't believe this. But I understand, because it is something you have to experience to believe.
Ooh, you should have put the array size define in a separate .h file to confuse him even more!
If the little devil on your shoulder is particularly convincing, you could also use Trigraphs intermittently to further add to the confusion as well as very odd short-circuit evaluations (like so):
https://stackoverflow.com/questions/7825055/what-does-the-c-operator-do
} else if (l > 2 && s[l - 2] == '/' && s[l - 1] == Star) { char t = s[l - 2];
s[l - 2] = 0; if (!checkrmall(s)) uremnode(args, node); s[l - 2] = t; }
strlen("/*")
== 2, seems like a pretty big oversight. I should probably fix that and send them a PR.
> It's better to have an antivirus being useless
No. No it's not. Google already has Play Protect that is doing far far more than this app can. It's also likely to give you a false sense of security. That thing anit going to help you more than Play Protect will.
If we can get Vulkan to take off instead of DX12 gamers will switch to Linux. Gamers make a lot of videos so they will want video editing software on Linux. Blackmagic Design already has DaVinci Resolve and Fusion for Linux (and it's free for the most part).
That will cause Adobe to lose their monopoly on video production. Adobe won't be having any of that so Adobe CC will be coming to Linux. That will cause a lot of other people to switch to Linux since they don't need to keep Windows around for Adobe software. It will be a snowball effect and before you know it only grandma and businesses will use Windows.
Then, Novell/Micro Focus (apparently they got bought) makes a replacement for Windows domain in Linux and businesses start switching over. The only Windows machines that are kept around are for running legacy systems. 10 years later it's just as hard to find someone to manage a Windows machine as it is to find someone proficient in COBOL.
Microsoft will then join Intel in the crying corner while everyone is using glued together CPUs running Linux. All will be well in the world.
But that website says:
>Except for a few examples such as the ones shown above (and listed in detail in the C++ standard and in Appendix B of The C++ Programming Language (3rd Edition)), C++ is a superset of C.