Previous: What are you working on today, Jow Forums?
/dpt/ — Daily Programming Thread
How old are you?
python to find easy work yes or no
12
are you hitting on me
7 and three quarters.
>Thought I failed my pre-calc class but I actually barely passed
>So gonna spend the summer prepared for calc
>Also learning C (memory management stuff, data structs, algorithms) and playing with webdev (MERN) in my free time
Jesus Christ I just really hope I'm hirable when I graduate.
preparing*
I'm not so sure what exactly is wrong with that macro in the OP image.
If you are under the age of 18, you are not allowed to post on Jow Forums.
No ageism please.
I never had to use calculus at work, no employer asked for my GPA, in fact, my employer never realized I didn't graduate.
Keep coding, keep getting good.
Cheers
>what exactly is wrong with that macro
it's sepples
>using a text macro
>to define over-complicated operators
>operators that literally just perform the operation on their operands & return the result
basically everything wrong with sepples in a nutshell
How long did it take you to find work? Did you have and projects to show off?
how do people properly write new line in c/c++? for instance, in linux its \n but in windows its a little different right? i think it might have been Jow Forumsn or something
the proper sepples way is to use `std::endl`, but that can cause performance issues as it flushes cout, which by default is synchronised with c stdio
If you're not doing binary file I/O it's just '\n' on any system.
How many of the programmers here with jobs related to programming, went to school to learn programming?
(Bad english sorry)
any compiler worth its salt will turn that \n literal in to a \r\n on the correct platform.
>qt plugin in visual studio
>try opening the docs of a qt function
>crashes visual studio
I guess I'll have to google
Jow Forums.org/rules#global2
>You will immediately cease and not continue to access the site if you are under the age of 18.
Stop being bigoted.
I bet you reported those posts, too
You are not. Stop wasting time and don't fall for the college degree meme. You better work on building a portfolio son.
I don't know which one is the better meme
College degree meme, or anti-collage-degree-meme meme
No
>Java
>C#
Those are your non-Web jr. Job bait options.
How long will it take to learn Java enough to find work
What qualifications do you have?
none I have been a NEET for 5 years
I was able to get a job as a Python Developer making 90k in Texas within one month after graduating with a CS degree. From my job search there were way more jobs in Python than any other language
I did. Went to college and got a B.S. in CS and now I'm a Python Developer
C++ is the most powerful and efficient programming language on Earth.
>tfw no language-tan show about CGDCT
What what a language-tan hentai be like?
It's pretty good tbqh
That is a weird way to spell Microsoft BASIC
Depends on your IQ. Six months if you are a very smart person. A couple of years if you are average. A lifetime if you are stupid.
I'm trying to write a script that takes 3 inputs (file name, start time, end time) to make webms. It works fine if the file name has no spaces but messes up when it does. I'm just using the tab completion in the terminal for the file names, how would I get it to recognize the escaped spaces and remaining words as one file name?
College degree isn't a meme but a nice portfolio always is a good idea.
I've been working on a single-header Go-style channel library for C. The lock-free fast path for non-blocking operations on buffered channels makes it significantly faster than the other C channel libraries I looked at in a lot of cases.
Is my style offensive?
Neat neat
>indenting the curly braces
very
If you escape the spaces then the script already gets it as one file name. Probably the error comes in how you use the name in the script.
Probably you just need more double quotes, but it's tough to say without more details.
what font is that?
hermit
do i need a degree to find a job? or self-taught is fine in programming
the more I look at it, the worse it gets
what fonts do you use?
it's fine if you can prove your skills.
just apply for a job
apparantly monospace regular
What's the joke?
That's a broad family of fonts
you're right, the script is getting the filename just fine but when it's passed to ffmpeg it no longer retains the escaped spaces. I'll have to keep working with it, I have like zero programming experience
redefining comparison operators that will only work for ints and doubles.
it's the font emacs had, but I changed it to liberation mono
I'm trying to get the user input (file path) and assign it to a variable. how can I get the literal input, escaped spaces and all?
Really fires up your engines.
they have to pass the input in single quotes i believe
Trying to convince myself that learning Julia is better than staying with Matlab.
Something I'm getting really pissed off by is the lack of control I have in Pyplot when using Julia.
Example, I've searched for the past 30 or so minutes, and still have not been able to find a way to plot a decent grid on a semilog plot (Like the one in the image).
With PyPlot, I get just get the image on the bottom... which I think looks a lot worse since the gridlines aren't really as well placed as in Matlab... Anyone know how to improve this?
I use Verdana, because I don't give a fuck which column some character is in
monospace a meme
>plotting
the answer is always R, and drop to C or fortran at bottlenecks
Matlab is literally pointless
>Polymorphism
>declaring private on a struct
Say that I have a collection of elements in Java, and I want a collection that has those elements in a particular order.
How would I do this?
I've never used collections before and it turns out that there's way too many different kinds to know which one allows me to produce an ordered collection of known size.
medium.com
>FizzBuzz Can Finally Be Implemented in Stable Rust
Wew.
/dpt/cels again BTFO!
technotification.com
But /dpt/ loves Rust except for a couple of C-niles.
yo the rest of my firewall rules i need for a cracked program are in russin any russian can translate??
Post them.
Not a rustfag btw. r8
mod fib {
pub enum Term {
Number(i32),
Text(&'static str)
}
impl ::std::fmt::Display for Term {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
match &self {
Term::Number(n) => write!(f, "{}", n),
Term::Text(s) => write!(f, "{}", s)
}
}
}
pub fn nth(n: i32) -> Term {
match (n % 15, n % 5, n % 3) {
| (0, _, _) => Term::Text("FizzBuzz"),
| (_, 0, _) => Term::Text("Buzz"),
| (_, _, 0) => Term::Text("Fizz"),
| _ => Term::Number(n)
}
}
}
fn main() {
for i in 1 .. 101 {
println!("{}", fib::nth(i));
}
}
You don't need all these '|'.
>[group of people] love [thing], except the members of the [group of people] who don't
Gdpr compliance. At breakneck speed.w woo.
>6min video
Hell no.
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Fucking niggerlicious IOT");
}
}
ThEn
javac HelloWorld.java
java -verbose:class HelloWorld | wc -l
420
420 classes for a hw; well Jow Forums ?
yes, java is not optimized for lean hello worlds. I guess that's why unemployed people don't like it
i just need to know relevant firewall rules
lads - im starting interviews soon for jobs. How do I remember all these implementations incase they ask me :3
I just realized this question probably belonged here and not /sqt/ or maybe either.
Should I start learning programming with Python or C?
I'd taken a python course some years ago but never stuck with it, but a job-training program requires learning C and, when someone looked at my first bit of C, they said it was obvious I'd started learning using Python (because the code was hot garbage for C). Now that I'm looking to seriously study programming, I'm not sure which is more immediately useful for portfolio-building.
HolyC.
I thought you were going for just the pun because I never looked into Terry "CIA nigger killer" Davis
made a wordcount histogram, cool rite?
don't bully, coming from frontend web designer/"developer" (jquery/python-monkey) background
should I be fixated to Torvalds idea (according to some post on Jow Forums) that necessity for more than 3 level indentation is for dumb niggermonkeys?
Can someone explain why emacs's nXML thinks this xml code is invalid with "unknown element" in , while pugixml could parse it without any problem?
something
anotherthing
I know that pugixml is a discounted XML parser, but why they thinks this is OK while another validity checker thinks this is invalid?
P.S: I don't really understand the full specification of XML
If I'm not mistaken, there can only be a single top-level XML element.
So like
something
anotherthing
>cool rite?
yes, das cool.
>more than 3 level indentation is for dumb niggermonkeys?
It very much depends. If someone takes that as an absolute truth, that always applies, they're most definitively a dumb niggermonkey themselves.
Does LLVM IR have a backwards compatible ABI?
t. brainlet
>What are you working on today, Jow Forums?
Learning haskell pretty much. I find it to be pretty interesting, maybe easier than I thought but I miss some things I have as habits already (stupid shit like ; on end line)
t. C++ dev
Call out my name when I kiss you so gently
Collections.sort
dumb frogposter
I've discovered putting Akari on the background of my text editor motivates me write overly generic code.
put together a new garden bed
moved compost bin
filled 10 planters, moved most vegetables out of the cold frame into the beds/planters
pruned the apple trees, took a chainsaw to some bushes
built a few trellises
learn Haskell
It turns out microlens is awesome.