#comp-sci (Discord ID: 423219052849397773) in /r/SargonOfAkkad (Sparta), page 1

17,577 total messages. Viewing 250 per page.
Page 1/71 | Next

2018-03-13 20:41:38 UTC


2018-03-13 20:41:59 UTC


2018-03-13 20:58:27 UTC

I've watched 11 minutes of TLJ and the physics are so atrocious I don't think I can continue

2018-03-13 20:59:07 UTC

and the only non-diverse resistance pilot I saw died after not even a second on screen, screaming

2018-03-13 21:00:05 UTC

I figured compsci was the closest thing to physics

2018-03-13 21:01:58 UTC

Fuck yeah my dudes

2018-03-13 21:04:29 UTC

int main(){
if(strcmp(channel->name, "comp-sci") == 0){
printf("Praise the mods");
printf("JDM's a cuck");

return 0;

2018-03-13 21:07:25 UTC

please make way for the chad lua
function main()
if channel.name == "comp-sci" then
print("Praise the mods!")
print("JDM's a cuck")

2018-03-13 21:10:45 UTC

>arrays start at 1

2018-03-13 21:13:13 UTC

hehe yeah that does tend to freak people out when they read it

2018-03-13 21:19:12 UTC

Hell yes

2018-03-13 21:26:39 UTC

that's brilliant

2018-03-13 21:27:41 UTC

though I have switched to vscode for most things

2018-03-13 21:31:02 UTC
2018-03-13 21:40:18 UTC

A subreddit you'd never want to say out loud to your parents https://www.reddit.com/r/unixporn/

2018-03-13 21:41:31 UTC

wut is dis

2018-03-13 21:42:06 UTC

gah I can't spend any more time redesigning my desktop :P

2018-03-13 22:05:24 UTC

Do 3d physics gifs count?


2018-03-13 22:42:20 UTC

"What is friction?"

2018-03-13 22:54:47 UTC


2018-03-14 00:43:30 UTC

I don't think I can come back to reality guys. I've gone so far into Java generics.

2018-03-14 00:43:38 UTC

Everything is an abstract

2018-03-14 00:44:53 UTC

Abstract is abstract.

2018-03-14 00:47:09 UTC

@Jab Right now


2018-03-14 00:47:53 UTC

@Durtle02 Part of the code I wrote yesterday

2018-03-14 00:48:24 UTC

Your picture is surprisingly accurate

2018-03-14 00:48:26 UTC


2018-03-14 00:48:26 UTC

F u c k

2018-03-14 00:48:36 UTC

RIP in peace

2018-03-14 00:48:48 UTC

Worked the first try

2018-03-14 00:48:49 UTC


2018-03-14 00:48:59 UTC


2018-03-14 00:49:32 UTC

I'm giving OOP benefits to definitions defined in YAML config files.

2018-03-14 00:49:53 UTC

attribute inheritance.

2018-03-14 00:50:51 UTC

the package level handles sorting out definitions being resolved without much interfacing from the definition implementation.

2018-03-14 00:51:02 UTC

auto-sorting of inheritance \o/

2018-03-14 00:51:36 UTC


2018-03-14 00:52:49 UTC

I actually enjoy these exercises πŸ˜„

2018-03-14 00:52:57 UTC

I would rather do this than grunt work

2018-03-14 00:53:46 UTC

I wrote my own approach to Annotated event handlers & command handlers to bukkit for Minecraft

2018-03-14 00:54:15 UTC

They use reflection which is much slower than Java's version of pointers

2018-03-14 00:54:31 UTC

Yes, Java technically has pointers

2018-03-14 00:56:45 UTC

@Durtle02 Have fun with that

2018-03-14 01:07:12 UTC


2018-03-14 01:22:56 UTC

the best feeling in the world is writing a shitload of code and it works perfectly

2018-03-14 01:23:25 UTC


2018-03-14 02:49:26 UTC

I’d believe you @Deleted User , but I’ve never seen any evidence of this miracle.

2018-03-14 09:08:37 UTC

CS courses shouldn't teach languages. Maybe start with one or two languages, to get things going. Then it's the student's job to put some effort into it, and learn what needs to be learned.

2018-03-14 09:11:30 UTC

At my university, it starts off with Scheme (for a SICP-style course) and C/Pascal (for an introduction to programming course); although you can choose other functional and imperative languages if you want, you just won't get help from the TAs if it's not one of these.

2018-03-14 09:13:00 UTC

After that, there's no more requirements for language, you pick whatever fits your needs.

2018-03-14 09:14:14 UTC

I've seen universities that will literally list a bunch of programming languages as the courses. "Programming in C++", "Programming in Java", "Programming in Ruby", "Programming in PHP"...

2018-03-14 09:18:45 UTC

The only place where addressing specific languages make sense is in a "Programming Language Design" course. Then of course you use various design approaches from different existing languages.

2018-03-14 09:22:26 UTC

yes, or a university located around some exceptionally large companies that hire 70%+ of their students, then I'd say it's fine to focus on using the languages those companies use internally during the courses

2018-03-14 09:22:59 UTC

But then you're not creating computer scientists, only programmers.

2018-03-14 09:23:06 UTC

that's true

2018-03-14 09:23:38 UTC

There should be nothing wrong with just being trained in specific technologies. It probably makes more sense, financially.

2018-03-14 09:23:45 UTC

from the multiple graduates I've talked to from the two local universities, they're neither programmers nor scientists though

2018-03-14 09:23:59 UTC

Cheaper, you get a piece of paper that claims you have been trained in the technology, you're done with it sooner...

2018-03-14 09:24:05 UTC

Only downside might be you starting salary.

2018-03-14 09:24:26 UTC

apparently up to 50% of their curriculum is project management and time management

2018-03-14 09:24:36 UTC

and related fluff

2018-03-14 09:24:42 UTC

that is to say, non-technical

2018-03-14 09:25:04 UTC

Oh boy, I noticed how common "Software Engineering = Project Management" is on universities.

2018-03-14 09:25:53 UTC

At NYU, it was 80% "how to lie to your boss so he doesn't fire you."

2018-03-14 09:26:27 UTC

Like seriously, how use some PHB jargon to make useless tables and graphs to quantify your progress.

2018-03-14 09:26:57 UTC

have you read programming job ads in the past decade?

2018-03-14 09:27:10 UTC

You know, so you can be properly managed by a generic manager that doesn't understand the field, but can read tables and graphs.

2018-03-14 09:27:15 UTC

they're entirely written by managers and hiring people

2018-03-14 09:28:11 UTC

I read one a few months ago and it contained all these terms: PaaS, SaaS, DaaS, cloud computing

2018-03-14 09:28:13 UTC

in the same line

2018-03-14 09:28:41 UTC

one paragraph was a flurry of buzzwords about their team "strategy"

2018-03-14 09:44:13 UTC

Sometimes the ad is just fake because they already have a hire.

2018-03-14 09:46:06 UTC

For instance, to get work visas, the company needs to prove they can't find competent candidates in the country; they need to publish the ad for a while for the citizens, before claiming they need to hire somebody outside the country.

2018-03-14 09:47:21 UTC

Other times it's internal company policy, because they're promoting somebody, or hiring somebody's relative; they need to "give a chance" to external candidates before the internal ones.

2018-03-14 09:51:09 UTC

So yeah, next time you see an ad that requires everything, from sweeping the floor to negotiating international contracts, from giving tech support for laptops to writing kernels and compilers, it's probably a fake ad.

2018-03-14 09:51:48 UTC

this wasn't, they specifically called me about it to recruit me

2018-03-14 09:53:06 UTC

I read the ad and talked to a friend of mine who works in the same building, who actually rents office space from them

2018-03-14 09:53:13 UTC

he just said "you don't want to work there"

2018-03-14 13:49:40 UTC

dafuq new raspberry pi

2018-03-14 13:58:57 UTC

I really like this one, I think I'll switch my deployments

2018-03-14 13:59:01 UTC

very good job it seems

2018-03-14 13:59:26 UTC

I have 3x rpi2, and these can essentially be hotswapped even though they're rpi3b+

2018-03-14 15:32:41 UTC

I have two 3's and they've been great

2018-03-14 15:32:45 UTC

interesting there's a 3+

2018-03-14 16:01:04 UTC

that's .. what I just linked, it was _just_ released

2018-03-14 16:01:06 UTC


2018-03-14 17:14:18 UTC

I know

2018-03-14 17:14:21 UTC

I was commenting on it

2018-03-14 17:21:35 UTC

orange pi bois

2018-03-14 17:32:32 UTC

pls odroid ftw but rpis are so easy to set up and give to other people for set top boxes and storage

2018-03-14 17:32:49 UTC

since everyone makes software for it

2018-03-14 21:46:50 UTC

run the world on sailfish OS

2018-03-14 21:47:09 UTC

actually though, has anyone here tried out sailfish OS?

2018-03-14 21:47:18 UTC

If so is it any good?

2018-03-14 22:03:04 UTC

they're certainly doing some good work on the stack

2018-03-14 22:03:10 UTC

I've wanted to give it a go

2018-03-14 22:04:04 UTC

one of them recently blogged about widget work on gtk they're doing to enable responsive design

2018-03-14 22:35:45 UTC

Happy Pi Day everyone.

2018-03-14 22:38:44 UTC

I can't believe I didn't see that connection when I posted the link

2018-03-14 22:38:48 UTC

happy pi day

2018-03-14 22:39:34 UTC

Happy PI day

2018-03-14 23:21:41 UTC


Neat, but I don't own a smartphone

2018-03-14 23:28:39 UTC

there's clearly at least 2+ people in here who have heard of it

2018-03-14 23:28:44 UTC

and I read the blog of their primary engineer

2018-03-14 23:28:55 UTC

so that video title is just incorrect

2018-03-15 19:24:52 UTC

Ryzen 2 specs

2018-03-17 10:11:11 UTC

that's certainly the best solution I've ever seen, but if the journalist or editors are ideologues they can easy present you with answer choices that are all wrong

2018-03-17 10:12:01 UTC

not a big deal I guess - like I said, best solution I've seen

2018-03-18 20:03:48 UTC


2018-03-20 03:52:50 UTC

How do you fix the problem
```scanf_s was not declared in this scope```

2018-03-20 03:58:31 UTC

@Deleted User What language

2018-03-20 03:58:49 UTC


2018-03-20 03:59:42 UTC


2018-03-20 04:00:05 UTC

Do you have the full program or at least a bit more context?

2018-03-20 04:03:20 UTC

I’m on mobile right now but I’ll show more context when I get home

2018-03-20 04:10:09 UTC

Don't use `scanf_s`.

2018-03-20 04:11:13 UTC

The _s functions are Microsoft's proprietary extensions.

2018-03-20 04:15:58 UTC

If think they managed to coerce the standards working group to include them into C11.

2018-03-20 04:17:37 UTC

Even then, they're optional library extensions.

2018-03-20 04:21:23 UTC

Not seeing '_s' mentioned on cppreference http://en.cppreference.com/w/cpp/io/c/fscanf

2018-03-20 04:31:56 UTC

Fucking (((Microsoft)))

2018-03-20 04:44:23 UTC

>Don't use scanf_s.

2018-03-20 04:46:51 UTC

They're in the C standard, not C++.

2018-03-20 04:49:11 UTC

In C++ it's far easier and more powerful to use `std::istream` or `std::regex`.

2018-03-20 09:02:31 UTC

they're in c++11 as well, but yeah, no reason to use

2018-03-20 09:06:22 UTC

oh actually the ms exts are not in c++, only in c

2018-03-21 05:11:42 UTC

@Legiondude how’s it been you **CIS** scum

2018-03-21 05:12:38 UTC

Hey fucker, I'm switching to CIS.

2018-03-21 05:12:55 UTC

That’s gay my dude

2018-03-21 05:13:28 UTC

CIS = major.Business()

2018-03-21 05:13:35 UTC

I'll be able ot more directly work with software and databases, plus I've also wanted to do some IT stuff since I worked that in High School

2018-03-21 05:14:27 UTC

But @meratrix won’t you think of pajeet and his IT farm?

2018-03-21 05:15:08 UTC

I do have to do some business and management classes though.

2018-03-21 05:16:56 UTC

@Deleted User Local CIS job openings are slim until June, and the Department of Education is expecting me to start paying off my loans by Tax Day =.=

So I'm unemployed and just short of broke

2018-03-21 05:17:58 UTC

@Legiondude .isFucked() == true;

2018-03-21 05:18:35 UTC

```bool _IRShitmen == true;```

2018-03-21 09:05:34 UTC

time to get your bicycle out and go around to local businesses to sell wordpress installations

2018-03-22 12:58:17 UTC


2018-03-24 04:01:57 UTC

I just like the fact the entire ad is based around They Live

2018-03-25 02:31:07 UTC


2018-03-25 02:32:35 UTC


2018-03-25 02:33:27 UTC

@meratrix one of them should have been
```access violation at address error```

2018-03-25 05:14:43 UTC


2018-03-26 00:52:46 UTC

@meratrix how’s that gArBaGe CoLlEcTiOn ?

2018-03-26 00:53:08 UTC

aNd ThOsE pOiNtErS

2018-03-26 00:53:49 UTC

Interpret this how you will.


2018-03-26 00:59:40 UTC


2018-03-26 18:16:32 UTC

this ridiculous code for printing
for(int i=0; i<=100; i++)
if(i%2==0) cout<

2018-03-26 18:17:01 UTC

```else continue```
well no shit, sherlock

2018-03-26 18:19:24 UTC

Looks like one of those "I'm programming *something*" code blocks

2018-03-26 18:24:50 UTC

It screams of "I don't understand anything about this language".

2018-03-27 00:24:51 UTC

hold on wft

2018-03-27 00:24:52 UTC


2018-03-27 00:45:19 UTC
2018-03-27 01:04:32 UTC

That code

2018-03-27 01:08:00 UTC

Pardon me I've been doing js all day

2018-03-27 01:24:21 UTC

god bless your soul

2018-03-27 02:26:52 UTC

I needed that, thanks.

2018-03-27 03:51:27 UTC

πŸ™ for Durtle

2018-03-27 05:33:11 UTC

lmfao I actually just knocked out my internet for a few minutes by transferring files.

2018-03-27 05:35:51 UTC


2018-03-27 18:08:15 UTC

JS is like shoving your dick in a paper shredder. End me please.

2018-03-27 18:11:50 UTC

@Durtle02 Just stock JS, or are you using Angular, ReactJS, or something similar?

2018-03-27 18:12:04 UTC


2018-03-27 18:12:28 UTC


2018-03-27 18:13:34 UTC
2018-03-27 18:16:09 UTC

I had to use that for the latter half of my e-business programming class

2018-03-27 18:17:27 UTC

And you wanted to kys?

2018-03-27 18:18:24 UTC

I bet Durtle wanted to


2018-03-28 14:59:40 UTC


Sprung up on one of the subreddits today

2018-03-28 15:29:18 UTC

Never been a fan of Skiena’s content.

2018-03-28 15:29:54 UTC

I didn't read "How to solve it", but "Algorithm design manual" is a very weak book.

2018-03-28 15:30:32 UTC

And this page is the reason why the whole "learn from the internet, not university" won't work.

2018-03-28 15:31:27 UTC

Whoever curated this "best book" content clearly hasn't read many books on a given subject.

2018-03-29 03:17:26 UTC

it won't help me ``learn all of c++ in 24 hours``??

2018-03-29 03:18:45 UTC

I'm learning programming via the internet and I can definitely say it would be better to learn in school

2018-03-29 07:25:07 UTC

The most important thing when learning a new language is how you should use it. That takes time.

2018-03-29 07:27:26 UTC

For C++, the best source is Stroustrup's book.

2018-03-29 07:29:34 UTC

Also, figure out what kind of programming student you are. Do you need somebody to tell you what to do next? Or do you feel like trying to do things on your own?

2018-03-29 07:31:19 UTC

The former tends to turn out to be mediocre programmers, while the latter tends to become cowboy programmers with no common sense about code quality.

2018-03-29 07:35:37 UTC

return shit;
return shit;

2018-03-29 16:27:41 UTC

What I meant was, if you just sit down and start coding nonstop, it's too easy to become oblivious about how bad your code is.

2018-03-29 16:36:09 UTC

Probably why my college nailed the "It's all in the design" point in with a sledgehammer into our brains

2018-03-29 16:40:32 UTC

Yep, bad design is usually what ruins everything.

2018-03-29 16:40:50 UTC

Programmers that never looked at any library, any API, don't know what the usual names of things are.

2018-03-29 16:41:10 UTC

Then they shove a bunch of generic names everywhere with no meaning.

2018-03-29 16:41:52 UTC

It's interesting to see, after you go through a lot of bad code, how important having a shared vocabulary is.

2018-03-29 16:42:33 UTC

I worked on a project where a `Connection` object was actually a tuple, and had one method, named `cleanup()` that manipulated data in another class.

2018-03-29 16:43:20 UTC

And the class that would usually be called a `Connection`, with methods analogous to `send()` and `receive()` was called `Interaction`.

2018-03-29 16:44:25 UTC

Of course, the methods weren't called that, they were called `push()` and `process()`.

2018-03-29 17:02:19 UTC


2018-03-29 17:04:44 UTC

It was almost as if every name of class and method was created to mislead anyone else working with the code.

2018-03-29 17:05:24 UTC

So yeah, don't be "that guy" that doesn't know the name of things that everyone else knows.

2018-03-29 17:06:29 UTC

You should be curious to do things on your own without needing somebody to hold your hand, but also you should constantly check what other people created, to make sure you're not doing things completely wrong.

2018-03-29 17:48:47 UTC

How did you mark up the text?

2018-03-29 17:56:45 UTC

Google "Discord markdown".

2018-03-30 19:47:11 UTC

That took all too long


2018-03-30 19:50:07 UTC

Covered out the `http://localhost`?

2018-03-30 19:50:24 UTC

Its my public ip

2018-03-30 20:41:33 UTC

Share it

2018-03-30 20:42:03 UTC

Also, chrome? Really?
Might as well just use JS

2018-03-30 21:48:16 UTC

What do you use? Safari?

2018-03-31 00:06:41 UTC

One has to wonder, how much energy we're wasting worldwide because so many websites now offset computation and rendering to the client side.

2018-03-31 00:12:54 UTC

@Durtle02 Use firefox

2018-03-31 01:43:59 UTC

@Deleted User This is my life tonight.

print: .asciz "%d\n\000"
scan: .asciz "%d\000"

.comm A, 32, 32
.comm B, 32, 32

addr_A: .word A
addr_B: .word B
addr_scan: .word scan
addr_print: .word print

.global main


stmfd sp!, {r0-r1, lr}

ldr r0, addr_scan /* r0 <- &addr_scan */
ldr r1, addr_A /* r1 <- addr_A */
bl scanf /* calls scanf */

ldr r0, addr_scan /* r0 <- &addr_scan */
ldr r1, addr_B /* r1 <- addr_B */
bl scanf /* calls scanf */

ldr r0, addr_A /* r0 <- addr_A */
ldr r0, [r0] /* r0 <- *r0 */

ldr r1, addr_B /* r1 <- addr_B */
ldr r1, [r1] /* r1 <- *r1 */

cmp r0, r1 /* compare r0 and r1 */
movgt r1, r0 /* move greater to r1 */
ldr r0, addr_print /* */
bl printf /* calls printf */

ldmfd sp!, {r0-r1, pc}


2018-03-31 01:45:29 UTC

@meratrix nigger is that assembly code

2018-03-31 01:45:37 UTC

arm assembly my dude

2018-03-31 01:45:41 UTC

why the fuck are you showing me that cancer

2018-03-31 01:45:48 UTC

cause it's my cancer

2018-03-31 01:46:39 UTC

two can play it that way nigger

2018-03-31 01:49:19 UTC
2018-03-31 02:25:47 UTC

``bl printf /* calls printf */`` comments could use more redundancy

2018-03-31 02:27:54 UTC

I guess it's useful for people not familiar with the mnemonics.

2018-03-31 02:28:13 UTC

But then, `cmp r0, r1 /* compare r0 and r1 */` ? That's just retarded.

2018-03-31 02:28:23 UTC

Gotta comment every line otherwise TA's give me shit

2018-03-31 02:29:33 UTC

they should be more worried the students know what their code means

2018-03-31 02:30:01 UTC

Back when I did assembly homework, I had to normalize a single-precision floating point number on a toy computer, that had only 256 bytes of RAM. And we had to write our own assembler.

2018-03-31 02:30:19 UTC

i'm learning 68k but im gonna learn ARM after that

2018-03-31 02:30:26 UTC

And whoever used the least instructions got bragging rights.

2018-03-31 02:30:37 UTC

which computer

2018-03-31 02:31:32 UTC

Oh, one that my professors used, I think it was created by a student a few years prior. Don't even remember the name.

2018-03-31 02:32:01 UTC

It was your typical two operand instructions, 4-bit instructions.

2018-03-31 02:32:03 UTC

interesting strategy. too obscure to cheat?

2018-03-31 02:32:34 UTC

I guess so.

2018-03-31 02:32:48 UTC

can i do your same assignment on 68k?

2018-03-31 02:33:17 UTC

I don't see why not.

2018-03-31 02:33:29 UTC

will it be easier then?

2018-03-31 02:33:41 UTC


2018-03-31 02:34:02 UTC

I got bragging rights, by the way. Got my program to be even shorter than the professor's and the TAs' programs.

2018-03-31 02:34:19 UTC

By using the instructions themselves as constants.

2018-03-31 02:34:48 UTC

About 20% of the class couldn't make it fit in the 256 bytes.

2018-03-31 02:35:41 UTC

what book did they give you for assembly

2018-03-31 02:35:45 UTC

assembly is cancer

2018-03-31 02:35:58 UTC

^you probly like java

17,577 total messages. Viewing 250 per page.
Page 1/71 | Next