comp-sci
Discord ID: 423219052849397773
17,577 total messages. Viewing 250 per page.
Page 1/71
| Next
YEAH MY DUDES
Yes.
I've watched 11 minutes of TLJ and the physics are so atrocious I don't think I can continue
and the only non-diverse resistance pilot I saw died after not even a second on screen, screaming
I figured compsci was the closest thing to physics
Fuck yeah my dudes
```cpp
int main(){
if(strcmp(channel->name, "comp-sci") == 0){
printf("Praise the mods");
}
else
printf("JDM's a cuck");
return 0;
}
```
please make way for the chad lua
```lua
function main()
if channel.name == "comp-sci" then
print("Praise the mods!")
else
print("JDM's a cuck")
end
end
```
>arrays start at 1
<:think_hang:378717098903470080>
hehe yeah that does tend to freak people out when they read it
>lua
Hell yes
that's brilliant
I have this one on my wall https://www.kickstarter.com/projects/maxcantor/beautiful-vim-cheat-sheet-poster
though I have switched to vscode for most things
remember kids: https://github.com/StevenBlack/hosts
A subreddit you'd never want to say out loud to your parents https://www.reddit.com/r/unixporn/
wut is dis
gah I can't spend any more time redesigning my desktop :P
Do 3d physics gifs count?
"What is friction?"
๏ผน๏ฝ ๏ฝ
I don't think I can come back to reality guys. I've gone so far into Java generics.
Everything is an abstract
Abstract is abstract.
Your picture is surprisingly accurate
hahaha
F u c k
RIP in peace
Worked the first try
ยฏ\_(ใ)_/ยฏ
lmao
I'm giving OOP benefits to definitions defined in YAML config files.
attribute inheritance.
the package level handles sorting out definitions being resolved without much interfacing from the definition implementation.
auto-sorting of inheritance \o/
**WAKE ME UP**
I actually enjoy these exercises ๐
I would rather do this than grunt work
I wrote my own approach to Annotated event handlers & command handlers to bukkit for Minecraft
They use reflection which is much slower than Java's version of pointers
Yes, Java technically has pointers
๐
the best feeling in the world is writing a shitload of code and it works perfectly
True
Iโd believe you @Deleted User , but Iโve never seen any evidence of this miracle.
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.
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.
After that, there's no more requirements for language, you pick whatever fits your needs.
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"...
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.
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
But then you're not creating computer scientists, only programmers.
that's true
There should be nothing wrong with just being trained in specific technologies. It probably makes more sense, financially.
from the multiple graduates I've talked to from the two local universities, they're neither programmers nor scientists though
Cheaper, you get a piece of paper that claims you have been trained in the technology, you're done with it sooner...
Only downside might be you starting salary.
apparently up to 50% of their curriculum is project management and time management
and related fluff
that is to say, non-technical
Oh boy, I noticed how common "Software Engineering = Project Management" is on universities.
At NYU, it was 80% "how to lie to your boss so he doesn't fire you."
Like seriously, how use some PHB jargon to make useless tables and graphs to quantify your progress.
have you read programming job ads in the past decade?
You know, so you can be properly managed by a generic manager that doesn't understand the field, but can read tables and graphs.
they're entirely written by managers and hiring people
I read one a few months ago and it contained all these terms: PaaS, SaaS, DaaS, cloud computing
in the same line
one paragraph was a flurry of buzzwords about their team "strategy"
Sometimes the ad is just fake because they already have a hire.
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.
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.
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.
this wasn't, they specifically called me about it to recruit me
I read the ad and talked to a friend of mine who works in the same building, who actually rents office space from them
he just said "you don't want to work there"
dafuq new raspberry pi
I really like this one, I think I'll switch my deployments
very good job it seems
I have 3x rpi2, and these can essentially be hotswapped even though they're rpi3b+
I have two 3's and they've been great
interesting there's a 3+
that's .. what I just linked, it was _just_ released
:P
I know
I was commenting on it
orange pi bois
pls odroid ftw but rpis are so easy to set up and give to other people for set top boxes and storage
since everyone makes software for it
run the world on sailfish OS
actually though, has anyone here tried out sailfish OS?
If so is it any good?
they're certainly doing some good work on the stack
I've wanted to give it a go
one of them recently blogged about widget work on gtk they're doing to enable responsive design
Happy Pi Day everyone.
I can't believe I didn't see that connection when I posted the link
happy pi day
Happy PI day
https://www.youtube.com/watch?v=WxWWO66zEH4
Neat, but I don't own a smartphone
there's clearly at least 2+ people in here who have heard of it
and I read the blog of their primary engineer
so that video title is just incorrect
Ryzen 2 specs
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
not a big deal I guess - like I said, best solution I've seen
How do you fix the problem
```scanf_s was not declared in this scope```
@Deleted User What language
C++?
Yeah
Do you have the full program or at least a bit more context?
Iโm on mobile right now but Iโll show more context when I get home
Don't use `scanf_s`.
The _s functions are Microsoft's proprietary extensions.
If think they managed to coerce the standards working group to include them into C11.
Even then, they're optional library extensions.
Not seeing '_s' mentioned on cppreference http://en.cppreference.com/w/cpp/io/c/fscanf
Fucking (((Microsoft)))
>Don't use scanf_s.
This
They're in the C standard, not C++.
In C++ it's far easier and more powerful to use `std::istream` or `std::regex`.
they're in c++11 as well, but yeah, no reason to use
oh actually the ms exts are not in c++, only in c
@Legiondude howโs it been you **CIS** scum
Hey fucker, I'm switching to CIS.
Thatโs gay my dude
CIS = major.Business()
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
But @meratrix wonโt you think of pajeet and his IT farm?
I do have to do some business and management classes though.
@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
@Legiondude .isFucked() == true;
```bool _IRShitmen == true;```
time to get your bicycle out and go around to local businesses to sell wordpress installations
I just like the fact the entire ad is based around They Live
lol
@meratrix one of them should have been
```access violation at address error```
@meratrix howโs that gArBaGe CoLlEcTiOn ?
aNd ThOsE pOiNtErS
Interpret this how you will.
Lol
this ridiculous code for printing
```cpp
for(int i=0; i<=100; i++)
{
if(i%2==0) cout<
```else continue```
well no shit, sherlock
Looks like one of those "I'm programming *something*" code blocks
It screams of "I don't understand anything about this language".
hold on wft
lmao
@Durtle02 wut
That code
Pardon me I've been doing js all day
>js
god bless your soul
I needed that, thanks.
๐ for Durtle
lmfao I actually just knocked out my internet for a few minutes by transferring files.
lol
JS is like shoving your dick in a paper shredder. End me please.
@Durtle02 Just stock JS, or are you using Angular, ReactJS, or something similar?
stock
<:super_edgy:426099058466095119>
@Durtle02 rip
I had to use that for the latter half of my e-business programming class
And you wanted to kys?
I bet Durtle wanted to
https://teachyourselfcs.com/
Sprung up on one of the subreddits today
Never been a fan of Skienaโs content.
I didn't read "How to solve it", but "Algorithm design manual" is a very weak book.
And this page is the reason why the whole "learn from the internet, not university" won't work.
Whoever curated this "best book" content clearly hasn't read many books on a given subject.
it won't help me ``learn all of c++ in 24 hours``??
I'm learning programming via the internet and I can definitely say it would be better to learn in school
The most important thing when learning a new language is how you should use it. That takes time.
For C++, the best source is Stroustrup's book.
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?
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.
```cpp
if(former){
return shit;
}
else{
return shit;
}
```
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.
Probably why my college nailed the "It's all in the design" point in with a sledgehammer into our brains
Yep, bad design is usually what ruins everything.
Programmers that never looked at any library, any API, don't know what the usual names of things are.
Then they shove a bunch of generic names everywhere with no meaning.
It's interesting to see, after you go through a lot of bad code, how important having a shared vocabulary is.
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.
And the class that would usually be called a `Connection`, with methods analogous to `send()` and `receive()` was called `Interaction`.
Of course, the methods weren't called that, they were called `push()` and `process()`.
push()
It was almost as if every name of class and method was created to mislead anyone else working with the code.
So yeah, don't be "that guy" that doesn't know the name of things that everyone else knows.
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.
How did you mark up the text?
Google "Discord markdown".
That took all too long
Covered out the `http://localhost`?
Its my public ip
Share it
Also, chrome? Really?
Might as well just use JS
What do you use? Safari?
One has to wonder, how much energy we're wasting worldwide because so many websites now offset computation and rendering to the client side.
@Durtle02 Use firefox
@Deleted User This is my life tonight.
```
.data
print: .asciz "%d\n\000"
scan: .asciz "%d\000"
.comm A, 32, 32
.comm B, 32, 32
.text
addr_A: .word A
addr_B: .word B
addr_scan: .word scan
addr_print: .word print
.global main
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}
```
@meratrix nigger is that assembly code
arm assembly my dude
why the fuck are you showing me that cancer
cause it's my cancer
two can play it that way nigger
``bl printf /* calls printf */`` comments could use more redundancy
I guess it's useful for people not familiar with the mnemonics.
But then, `cmp r0, r1 /* compare r0 and r1 */` ? That's just retarded.
Gotta comment every line otherwise TA's give me shit
they should be more worried the students know what their code means
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.
i'm learning 68k but im gonna learn ARM after that
And whoever used the least instructions got bragging rights.
which computer
Oh, one that my professors used, I think it was created by a student a few years prior. Don't even remember the name.
It was your typical two operand instructions, 4-bit instructions.
interesting strategy. too obscure to cheat?
I guess so.
can i do your same assignment on 68k?
I don't see why not.
will it be easier then?
Probably.
I got bragging rights, by the way. Got my program to be even shorter than the professor's and the TAs' programs.
By using the instructions themselves as constants.
About 20% of the class couldn't make it fit in the 256 bytes.
what book did they give you for assembly
assembly is cancer
^you probly like java
17,577 total messages. Viewing 250 per page.
Page 1/71
| Next