old thread: What are you working on, Sup Forums?
/dpt/ - Daily Programming Thread
First for D
Vidya
I've made a Makefile, now I need to decide a language, what should I use? C or C++?
Make your video game in C.
C++ is the obvious choice.
Why? Isn't C++ more powerful?
how can i write this shorter?
import os
for file in os.listdir("."):
if file.endswith("-copy.png") or file.endswith(".py"):
continue
else:
os.remove(file)
You won't understand the true meaning of code if you don't use something low level like C and probably your performance will be bad.
you can make it shorter but it'll sacrifice readability, which is never good.
>You won't understand the true meaning of code
>tfw you will never dream in code
I seriously underestimated YouTube videos as a learning resource.
Videos are awful to learn from.
I mean, I'd assume they wouldn't be awful if 90% of them weren't some poo-in-loo or a 12-year-old with Bundicam
Maybe for you.
At what point does code become your own?
If something is GPL, and you've modified and added so many things that the base product is no longer recognizable, do you have to maintain that GPL?
Does it matter if you physically re-typed small pieces that you needed for your own project?
Why is GPL anti-freedom?
Videos are shit to learn the normal basics from. But experts talking about advanced stuff can be interesting.
GPL is literally a trojan virus
That I can agree with, although they're usually rather lengthy, and I'd rather learn about some thing from a book with my own pace.
just use MIT bro
Top or bottom
... and does either look halfway decent
lol what does "more powerful" mean
An upper-intermediate programmer. Can program in around 10 languages (including descriptive ones like SQL) and this is my last SWE year at college.
I'm not skilled in Linux or hacky stuff like Kali and security stuff. (did work on Linux for college)
Is this okay? Especially if I'm interested in RevEngineering?
I use MIT for my projects.
The issue is when I come upon a very useful library that is GPL, and I modify it, and I'd like to include it in my project and re-release it all under MIT.
top definitely
I like bottom.
Maybe a bit of light alternating shades to help the rows be clearer.
Has anyone here read this? Is it worth it?
>Is this okay?
You didn't list any of your important qualities that would win you a great job.
it's on library genesis, get it and check for yourself.
Good at problem solving
Good and loves low level programming.
Did multiple projects and two relatively above medium ones. With other people too.
>it's on a website called good reads
>obviously it must be a good read
>Good at problem solving
Literally every single one of my applicants says this or has this on their resume.
>Good and loves low level programming.
Vague, and who gives a fuck if you like it.
>Did multiple projects and two relatively above medium ones.
Show me. This part could be fantastic for you.
>With other people too.
Now we're getting somewhere.
Are you dressed nice? Are you making and maintaining a comfortable amount of eye-contact? Do I get the feeling like you're a complete sperg, or would you fit in with the company culture here? What mannerisms did you use in the communication emails before this?
Frankly, your technical qualifications are boxes to be checked. Other people have those boxes checked.
You win the interview on things that typically have little to do with actual programming.
#!/usr/bin/perl
foreach(glob "./*"){unlink $_ if (!/(?:\-copy\.png|\.py)$/);
Ez
Studying for final round interviews with Facebook and Google.
You too?
Can you give some tips to people trying to get a job?
what's important to have on your resume? what non-technical skills one must have?
All the shit from the last 2 years of CS I've forgot in the last 10 years in the real world. lol
Missing right curly or square bracket at a.pl line 2, at end of line
syntax error at a.pl line 2, at EOF
Execution of a.pl aborted due to compilation errors.
#!/usr/bin/perl
foreach(glob "./*"){unlink $_ if (!/(?:\-copy\.png|\.py)$/);}
Fixed for you 'cause you don't know how to close a foreach statement.
thanks. it works now.
but it's easier to write it in python.
also what the hell is this
if (!/(?:\-copy\.png|\.py)$/);
Ok.
>what's important to have on your resume?
An uninterrupted job history.
If you're fresh out of college, you better hope to fuck you had internships or at least a study-abroad. Bonus points if you had a job in college, even non-technical.
You should have specific technical skills related to the position you are applying for. Don't put that you're "good with Microsoft Office".
>what non-technical skills one must have?
This is mostly determined in the interview process.
You should be confident in what you know. This is easier if you're actually competent.
As I mentioned before, all the things that comes with having a professional appearance.
Also, you need to not be completely hideous. Get a hair cut, shave off your neckbeard, or at least trim it and make it look intentional in some way. You're welcome to re-grow your neckbeard once you get the job.
If I can smell you, it's going to be hard for me to focus on whatever the hell you're blabbering about.
>what should I not put on my resume
As mentioned, fuck off with the following:
>I'm a good problem solver.
>I work well with teams.
>I like doing [technical skill].
'Good', 'well', and 'like' are vague and you better be able to back up any statement with demonstrable proof.
Basically, don't pad your resume.
Looks like RegEx.
Your applicants? How big and technical is your business? How did ya start?
It seems like you're more focusing on the human interaction part, and I have no problem fitting in a team environment. As I have done twice before. Also my eye contact is staggering to the point I'm the one who looks away first so people wouldn't think I'm a staring creep.
Honestly I just recently realized that it's not just about knowing the techs but also business and communication stuff...
I'm merely asking for the sake of knowing if I should have decent compsec skills for RevEngineering. But really appreciate you chumming in with your thought -provoking questions.
jesus fuck seriously get out
why so mad? you touch you ?
You do realize I'm being vague because this is not LinkedIn and I'm not trying to get a job? I already had one and currently in another one yet I haven't graduated yet.
...
You don't need to be defensive.
I was responding to a request for interview/resume tips.
Vagueness is common on resumes; I wasn't intentionally trying to dog your previous post using those words.
>Vagueness is common on resumes
Not for anyone who would get hired anywhere I've worked.
is this a good resume?
> Honestly I just recently realized that it's not just about knowing the techs but also business and communication stuff...
If you're not a complete retard, then it's like 75% communication and teamwork, 25% technical skill
Employers want someone they can direct and get results out of. If they have to struggle to communicate with an autistic weeb all day, it doesn't matter what your level of technical skill is.
Priority one in an interview should be "prove that I am a normal human being". Priority two is "prove that I know what I'm talking about".
If you are lucky enough to get an interview with the person that will actually be your boss, then you can worry about your fizzbuzz or whatever bullshit they throw at you, but that's a very small part of the interview process, and something you should already have figured out anyway.
I know.
It's a common mistake on resumes, I have said.
This is why I specifically highlighted it as an issue in my previous post.
Yes, perfect.
Fuck, name your salary.
Also forgot to quick reply you in this
why don't you explain that little bit of regex?
that way, everyone can learn something today
Is "Joe" good?
I'm . And you are the typical python kid.
See perldoc.perl.org
I'm not here to teach you regex.
By the way, my solution could be ez written like so :
#!/usr/bin/perl
eval eval '"'.
('`'|'&').('`'|'/').('['^')').('`'|'%').('`'|'!').('`'|'#').('`'|'(').'('.('`'|"'").('`'|',').("\`"|
'/').('`'|'"').('{'^'[').'\\'.'"'.'.'.'/'.'*'.'\\'.'"'.')'.'\\'.'{'.('['^'.').('`'|'.').('`'|"\,").(
'`'|')').('`'|'.').('`'|'+').('{'^'[').'\\'.'$'.'_'.('{'^'[').('`'|')').('`'|'&').('{'^'[').'('.'!'.
'/'.'('.'?'.':'.'\\'.'\\'.'-'.('`'|'#').('`'|'/').('['^'+').('['^'"').'\\'.'\\'.'.'.('['^'+').("\`"|
'.').('`'|"'").'|'.'\\'.'\\'.'.'.('['^'+').('['^'"').')'.'\\'.'$'.'/'.')'.';'.'\\'.'}'.'"';$:=('.');
Have a nice day !
>Honestly I just recently realized that it's not just about knowing the techs but also business and communication stuff...
Yes.
This is why we prefer MIS graduates to CS graduates.
I can teach a business major to program in a short time.
I can't teach a comp-sci programmer marketing, accounting, business law, and other business disciplines, AND how not to be an autistic sperg in a short time.
This goes for other industries that hire math majors over CS majors for similar reasons.
>Priority one in an interview should be "prove that I am a normal human being". Priority two is "prove that I know what I'm talking about".
This is correct.
please stop trying to show off. no one cares you loser.
Literally no one cares about your un-readable bullshit.
>MIS graduates
So you just have a normie-tier web dev shop then? Bunch of ASP.NET and RoR, you guys high five each other for using dependency injection like it's some secret sauce, and don't realize Repository is an anti pattern?
>you get paid in coffee
>want to make a video game about hacking using mininet
>mininet requires the fucking linux kernel
I don't want to GPL my shit, fuck you.
>no one cares
so why did you reply then ? haha
Well, fuck you too.
They're all terrible.
Either they assume you want to start at the beginning, or they're 3 hours long, or they're voiced by pajeet in a mud hut somewhere.
...
What's Repository in this context?
I'm not sure of the best design practice in Python.
In my language, I'd populate a list of 'Board', 'Thread', or 'Post' objects and query that data structure much like a small relational database held in memory.
Repository pattern for accessing the data tier. Martin Fowler garbage. Usually denotes a Midwestern-US "Consulting" shop or Big Insurance Company. Or one of the other places that hires shitty enterprise dev. Usually recommended by managers who don't realize that it is actually incompatible with Unit-of-Work, so they want a "Unit-of-Work Repository Pattern"
Enjoy getting undercut by Pajeet.
SO seems to agree with the whole relational database aspect because apparently I can just return the value with no fuss no muss by treating it like a dictionary and going:
thread = json.loads(faget)
print (thread['no'])
# 'no' == post number
Unfortunately, even commenting out the regex and below to attempt to get a return in this method doesn't return a value. I'm not sure if my peanut novice brain is missing something simple or if I need to put this on hold and get further into overall study before making this work.
I made something exactly like this. Requests has a built in json function.
I just iterated the boards, threads and posts.
Mine was for finding files with certain things I wanted, though.
I built up a ton of facebook profiles doing this but I realized they were useless because facebook fap threads.
I am completely retarded and want to learn to make a GUI in Java. Give tutorial recs please.
>You don't need to be defensive.
>I was responding to a request for interview/resume tips.
>Vagueness is common on resumes; I wasn't intentionally trying to dog your previous post using those words.
Apologies if I sounded rough.
Thanks for the advice though, resumes indeed require a fine level of elaborate and specific details.
I was wondering though, what exactly is wrong with interrupted /discontinuous job timeline?
This is just pure gold.
>marketing, accounting, business law, and other business disciplines
>marketing, accounting, business law, and other business disciplines,
I agree with this point and not the MIS point.
A year before graduation from a 5-year college major I'm realizing that not only do I need communication skills but also various business-related shenanigans.
Would really appreciate some resources. Preferably video courses like Coursera but really mere keywords are enough. Perhaps a large encompassing IRL course as well.
What are your favorite Pajeet acronyms or sayings?
PFA/PFB
General question
For your convenience
Kindly
etc.
needful
>I agree with this point and not the MIS point.
Why?
MIS is primarily a business degree with some programming, project management, and database theory mixed in.
Two of my favorite words I've seen in some of the code I've fixed is
>Upgradation
>Authentification
BÀT
>Bien à toi
In case you feel like freaking out: do it over the belgians because that's their thing: I am not nationally responsible for that.
Bottom
Allo I am from Maicrosoft cauling awout a wirus on your compooter
>this.
How is your assembly?
Have you ever seen code written by someone with an MIS background? It's good enough for a corporate SharePoint site, I guess, but it's not going to fly at a real software company.
>yfw you realize brainfuck is actually a really elegant language
Any tips for picking up business skills if I'm a sperg CS major and DBA? I was thinking of going back and getting an MBA at some point.
This: Not too shabby. 8086 from college (with passion), x86, and MSIL. More of tinkering and creating chunks/mini programs from scratch to fit in another program rather than making an entire program in a low level programming lang.
You?
Don't get an MBA without 10 years experience. No one is going to hire you for a management position just because you have an MBA, that's just what college recruiters tell you.
>going back and getting an MBA
You need a minimum of 5 years of very relevant experience to even be accepted into most reputable MBA programs.
It's worth doing if you have a company willing to foot the bill, but I wouldn't "plan" on doing it.
Reminder: Done is better than good.
Wanting to start programming but my math also sucks, so if anyone could direct me to a place where I could get the necessary skills to be an algorithm master i'd appreciate it.
You don't need math skills for the vast majority of your code.
You do need to be able to visualize complex structures and reason logically very well.
For everything else, there are libraries.
>t. pajeet
Keep telling yourself that, CS-kiddie.
How the fuck did you get my resume? I haven't sent this one out yet.
Pick up Intro to Algorithms
I completely lost my old code but here, it's what I came up with just now.
My old one had threading and functions. RIP
import requests
##a.4cdn.org
##a.4cdn.org
##a.4cdn.org
##a.4cdn.org
boards = []
threads = []
posts = []
initial = requests.get("
Keep telling yourself that, "Business Consultant."
I'm not a consultant, user.
What should I write my next web app in? Django looks meh. Thinking about using PHP (what? it's easy and quick) or node.js (unsure about Mongo, Redis or something else as DB)
...