• What are you working on? v67 - March 2017
    3,527 replies, posted
[QUOTE=Karmah;52804416]Spent all day today learning how to actually configure my project for CMake. Holy hell that took a while, but only because I'm picky as fuck and needed things to look nice and neat. I'm not sure to what degree this works with other compilers or IDE's, but I just needed a way to create and update projects with half a dozen dependencies that could be found in different directories on different systems. And now that it [I]works on my machineā„¢ [/I]​I can finally call it a day[/QUOTE] Do yourself a favor and learn [URL="https://github.com/premake/premake-core/wiki/What-Is-Premake"]premake[/URL] instead
I want to like premake, the syntax is really nice and the fact that it's lua means that it can be scripted really nicely. But I've yet to find a single cross-platform project where it actually works fine, especially when system-wide dependencies are to be used. It's sort of like SCons, a really nice Python-based build system, which also makes building things on Windows with the official toolset a complete chore. I really dislike CMake's syntax, it's a mess of stringly typed spaghetti that nobody really seems to know how to use properly, and that has no official "correct" way to set up your project-specific flags and output paths. With that being said I've yet to find a single CMake project that hasn't worked out of the box with all of my development environments and OSes. (Well, there's one which had an explicit disable for Windows in the CMakeLists, because they had hand authored build files for Windows instead.) It might look like spahetti, it might be messy to work with, it might generate slower build files, but when set up correctly it actually works [b]with[/b] the native tooling - not [i]against[/i] it as several other build systems. Making it so much nicer to work with when you do your cross-platform development on both Windows and Linux.
[QUOTE=ace13;52804976]With that being said I've yet to find a single CMake project that hasn't worked out of the box with all of my development environments and OSes. (Well, there's one which had an explicit disable for Windows in the CMakeLists, because they had hand authored build files for Windows instead.) It might look like spahetti, it might be messy to work with, it might generate slower build files, but when set up correctly it actually works [b]with[/b] the native tooling - not [i]against[/i] it as several other build systems. Making it so much nicer to work with when you do your cross-platform development on both Windows and Linux.[/QUOTE] Despite all of CMakes other issues, this is why I still "enjoy" it, as much as one can enjoy that. ExternalProject_Add also makes it sooooo fucking easy to subdivide your code into modules, and since it can pull from git repos and then compile+install other projects for you it pretty much avoids any of the mess of just copying project dependencies about (ew). I am getting [I]really[/I] tired of hearing about how C++ is taught in schools. It is driving me completely fucking mental - from a professor that apparently insists references are worse than pointers and are mostly useless (I think that professor might be our very own cmdrmatthew [[URL="https://cdn.discordapp.com/attachments/298189625573376002/371077452371329025/Screenshot_from_2017-10-20_16-29-10.png"]1[/URL]][[URL="https://i.imgur.com/8bQFm25.png"]2[/URL]][[URL="https://i.imgur.com/5kKljWI.png"]3[/URL]]) to another professor that strictly prohibits C++11 use whatsoever. Its never like I hear these professors saying "no C++11, at first" to maybe even show people [I]why[/I] certain techniques are deprecated and why things like iterators are good, either. I bring this up because 2 of our Junior EE's have essentially demanded tons of help in getting them to un-learn bad habits. They took "C++" courses at their uni, but they weren't worth a damn. Its irritating because it screws over the students once they end up in the workplace, and does nothing to come back on the shitty professors. And so far, both the dudes we've been helping have been really enjoying what they're seeing and it has the net effect of improving their code in several ways. I've always found the argument of "the industry doesn't use that" shaky, because even if the industry doesn't use it a ton that's probably in no small part due to how little of it is taught. And even then, learning newer stuff doesn't make people suddenly completely unable to fall back on C-style idioms. pointless rant i guess, but I have a friend who keeps telling me all the stupid shit his professors say and it just keeps making me more and more salty. and to be fair, I don't even have a fucking degree since I'm a college drop-out
[QUOTE=paindoc;52806893]Despite all of CMakes other issues, this is why I still "enjoy" it, as much as one can enjoy that. ExternalProject_Add also makes it sooooo fucking easy to subdivide your code into modules, and since it can pull from git repos and then compile+install other projects for you it pretty much avoids any of the mess of just copying project dependencies about (ew). I am getting [I]really[/I] tired of hearing about how C++ is taught in schools. It is driving me completely fucking mental - from a professor that apparently insists references are worse than pointers and are mostly useless (I think that professor might be our very own cmdrmatthew [[URL="https://cdn.discordapp.com/attachments/298189625573376002/371077452371329025/Screenshot_from_2017-10-20_16-29-10.png"]1[/URL]][[URL="https://i.imgur.com/8bQFm25.png"]2[/URL]][[URL="https://i.imgur.com/5kKljWI.png"]3[/URL]]) to another professor that strictly prohibits C++11 use whatsoever. Its never like I hear these professors saying "no C++11, at first" to maybe even show people [I]why[/I] certain techniques are deprecated and why things like iterators are good, either. I bring this up because 2 of our Junior EE's have essentially demanded tons of help in getting them to un-learn bad habits. They took "C++" courses at their uni, but they weren't worth a damn. Its irritating because it screws over the students once they end up in the workplace, and does nothing to come back on the shitty professors. And so far, both the dudes we've been helping have been really enjoying what they're seeing and it has the net effect of improving their code in several ways. I've always found the argument of "the industry doesn't use that" shaky, because even if the industry doesn't use it a ton that's probably in no small part due to how little of it is taught. And even then, learning newer stuff doesn't make people suddenly completely unable to fall back on C-style idioms. pointless rant i guess, but I have a friend who keeps telling me all the stupid shit his professors say and it just keeps making me more and more salty. and to be fair, I don't even have a fucking degree since I'm a college drop-out[/QUOTE] Try not giving a crap. I know it's hard but in the end it should be obvious that with C++ being a fucking mess with 50 ways to do everything, someone who probably learned how to program back when references weren't even a thing would stick to what they know. Obviously when they teach a programming language you'd maybe expect them to keep up with its development but at least at my Uni most profs are mostly concerned with their research and can't be bothered to keep up with wtf the standard is doing and tbqh I can't even blame them for that. Should they be teaching an introductory course for C++ then, maybe not, but university is a terrible place to learn how to program either way. Especially to learn how to program in C++ because they will always just learn whatever their teachers preferences are which might be misguided in whatever direction.
[QUOTE=paindoc;52806893]Despite all of CMakes other issues, this is why I still "enjoy" it, as much as one can enjoy that. ExternalProject_Add also makes it sooooo fucking easy to subdivide your code into modules, and since it can pull from git repos and then compile+install other projects for you it pretty much avoids any of the mess of just copying project dependencies about (ew). I am getting [I]really[/I] tired of hearing about how C++ is taught in schools. It is driving me completely fucking mental - from a professor that apparently insists references are worse than pointers and are mostly useless (I think that professor might be our very own cmdrmatthew [[URL="https://cdn.discordapp.com/attachments/298189625573376002/371077452371329025/Screenshot_from_2017-10-20_16-29-10.png"]1[/URL]][[URL="https://i.imgur.com/8bQFm25.png"]2[/URL]][[URL="https://i.imgur.com/5kKljWI.png"]3[/URL]]) to another professor that strictly prohibits C++11 use whatsoever. Its never like I hear these professors saying "no C++11, at first" to maybe even show people [I]why[/I] certain techniques are deprecated and why things like iterators are good, either. I bring this up because 2 of our Junior EE's have essentially demanded tons of help in getting them to un-learn bad habits. They took "C++" courses at their uni, but they weren't worth a damn. Its irritating because it screws over the students once they end up in the workplace, and does nothing to come back on the shitty professors. And so far, both the dudes we've been helping have been really enjoying what they're seeing and it has the net effect of improving their code in several ways. I've always found the argument of "the industry doesn't use that" shaky, because even if the industry doesn't use it a ton that's probably in no small part due to how little of it is taught. And even then, learning newer stuff doesn't make people suddenly completely unable to fall back on C-style idioms. pointless rant i guess, but I have a friend who keeps telling me all the stupid shit his professors say and it just keeps making me more and more salty. and to be fair, I don't even have a fucking degree since I'm a college drop-out[/QUOTE] You have it pretty good. My teachers don't even know what pointers are, write everything in main(), and love creating unholy if-else castles.
Today I held a training presentation for my bachelor thesis, and some people from the institute sat in. They said they were most impressed with the resuls and that it's the first time they're actually interested in the results of a bachelor thesis. I think I don't even grasp how fucking awesome this is just yet... and I feel like a total idiot now because I could've done so much more with the topic if only I had applied myself a bit more.
I updated the graphics of my wolf3d clone that I made in my own engine to the atari jaguar port of wolf3d and I added the chaingun, SS soldiers and added some form of font rendering to display the players health and the fps. [T]https://i.imgur.com/HovsJxx.png[/T] [T]https://i.imgur.com/5GRZ3By.png[/T]
Re-made all the objects, and got more familiar with post-processing effects and custom shaders so I could make my game look nicer: Old: [thumb]https://i.imgur.com/J26Aiw3.png[/thumb] New: [thumb]https://i.imgur.com/hHb7Fok.png[/thumb]
Looks nice af, bit Fez-like. What are you using? Are you writing this all from scratch?
[QUOTE=G4MB!T;52811536]Looks nice af, bit Fez-like. What are you using? Are you writing this all from scratch?[/QUOTE] Thanks, I'm using Unity.
I have yet been tasked with another scripting/programming job which I shouldn't be doing as a support guy, I have to create a program that searches for users in Active Directory and allows you to manipulate their data. Add them to groups, delete them, reset their passwords. I am going to go on a whim here and say that a program already exists that does this however, I have to write it from scratch I will post results if I ever manage to get it done. I will most likely be doing it in C#.
[QUOTE=Clive;52811872]I have yet been tasked with another scripting/programming job which I shouldn't be doing as a support guy, I have to create a program that searches for users in Active Directory and allows you to manipulate their data. Add them to groups, delete them, reset their passwords. I am going to go on a whim here and say that a program already exists that does this however, I have to write it from scratch I will post results if I ever manage to get it done. I will most likely be doing it in C#.[/QUOTE] This could probably be of some use: [url]https://github.com/bolenc/Active-Directory-Examples[/url]
[QUOTE=Clive;52811872]I have yet been tasked with another scripting/programming job which I shouldn't be doing as a support guy, I have to create a program that searches for users in Active Directory and allows you to manipulate their data. Add them to groups, delete them, reset their passwords. I am going to go on a whim here and say that a program already exists that does this however, I have to write it from scratch I will post results if I ever manage to get it done. I will most likely be doing it in C#.[/QUOTE] Could probably use powershell. It's pretty integrated with everything windows.
[QUOTE=DroppingPOCD;52811248]You have it pretty good. My teachers don't even know what pointers are, write everything in main(), and love creating unholy if-else castles.[/QUOTE] my cuda professor didn't know there was anything but immediate-mode opengl and insisted on using vs 2008
[QUOTE=paindoc;52812599]my cuda professor didn't know there was anything but immediate-mode opengl and insisted on using vs 2008[/QUOTE] My C# teacher told us the very first day that Java is faster than C# but C# is more secure because it is Microsoft's product. :wavey: Then he proceeded to call Perl a "low-level language", C#/Java/C++/C a "high-level", and SQL/HTML/CSS "very-high level". (We did immediate-mode OpenGL whole semester in "Graphics Programming" class as well.)
I feel blessed. My C professor knows his shit.
You won't believe this one but we've got this "New Generation Networks" teacher who told us that WhatsApp server IP address is a well-guarded secret because if their IP was known then everyone could packet-sniff and read your chats. He also told us that they share their IP address only with the government security agencies.
[QUOTE=Topgamer7;52812391]Could probably use powershell. It's pretty integrated with everything windows.[/QUOTE] Yeah this was an option as well however I don't really know the GUI side of PowerShell. I would love to learn it however I don't have the time to, it's a valid option though I agree.
Horrible professors? Hold my fucking beer. I'm taking an advanced microcontroller programming course this semester and my professor is a 5+ year vet of the industry who apparently knows assembly and fortran, apparently, but still gets mad when my code comments are not such pedantic, ugly bullshit to include shit like //end of main and // end of while loop. If you can't understand my programs without a line comment on EVERY FUCKING LINE, you shouldn't be reading said code, you don't belong anywhere near said code. Comments should be used to explain processes in general and give insight into complex situations when required. They aren't so people can figure out which bracket belongs to which statement, That's retarded and what a competent IDE is for. He also marks me down because he wants us to make "flow charts" for our programs but because my programs actually using fucking functions and aren't all just a horrendous mess of main() garbage, my flow charts look like ass and can take up multiple pages. Because surprise surprise I'm not writing out an entire function for EVERY INSTANCE that it might just POSSIBLY be called in a program that's retarded. He gives us "advanced challenges" for our programs to complete on our assignments and tests to get above a C grade and I'm not coding an entire program in main() like a fucking retard, much less something that accomplishes the extra goals he gives that are required to even get decent marks. I can barely stand having to code multiple functions into main.cpp much less actually coding more than is strictly required in main() its self. He also doesn't understand how libraries work and was confused when I included a library for a program because I wasn't going to fucking copy-paste some of his shoddy ass function code every time I needed them in a program. And I don't mean using them as functions either, I mean literally he wants us to copy and paste the entire block of code for EVERY instance we need the operations and rename variables so it doesn't cause conflicts. Because "subroutines are complex and can cause problems in the real world when you want to use these subroutines but you don't have them on the controller." What fucking microcontroller in 2017 works on C/c++ and doesn't allow you to use functions? What fucking mirocontroller actually used in 2017 doesn't support standard libraries? I can understand it maybe not supporting external libraries, even if that's highly unlikely and makes it a complete fucking worthless product, but [B]standard[/B] libraries? Bonus points: "You don't need return 0 on main, just make it a void instead." Yeah mate and you also can just use global variables and main for everything and ignore that classes and private variables exist but that doesn't mean it's a good fucking idea.
update: got the internship from microsoft! have a week to accept so I am going to wait for the results from facebook
[QUOTE=DroppingPOCD;52811248]You have it pretty good. My teachers don't even know what pointers are, write everything in main(), and love creating unholy if-else castles.[/QUOTE] Do your teachers also seem incapable of using the programs they supposedly have 20+ years experience with? Because mine do
[QUOTE=DroppingPOCD;52812764]My C# teacher told us the very first day that Java is faster than C# but C# is more secure because it is Microsoft's product. :wavey: Then he proceeded to call Perl a "low-level language", C#/Java/C++/C a "high-level", and SQL/HTML/CSS "very-high level". [B](We did immediate-mode OpenGL whole semester in "Graphics Programming" class as well.)[/B][/QUOTE] ugh fuck this makes me sad because 1. there are so many difficult concepts in advanced graphics programming that could use a guiding hand and 2. teaching modern OpenGL (hell, even fucking Vulkan tbh) can be so much less painful than Immediate-mode OpenGL :( [QUOTE=F.X Clampazzo;52813249]-dead sea-[/QUOTE] You win: your award? A salt lick. I guess that while I can bitch about my local school using Java for the classes, a good friend of mine is a TA and working on being a professor so I saw how they taught things - and that was fairly good. Nothing like that though. A guy like that would get shredded doing work in the real world. Especially embedded programming. [editline]24th October 2017[/editline] [QUOTE=RocketSnail;52815823]update: got the internship from microsoft! have a week to accept so I am going to wait for the results from facebook[/QUOTE] congrats! It's a good place to work, but I pray you don't end up on the Excel team. That's where a good friend of mine ended up and his life is the pain of legacy code. He just got to use std::vector for the first time since school, yesterday... (and he's been working for a year lol)
Immediate-mode OpenGL makes me cry every time.
If we're going on about professors mine wasn't as bad - but I started working on my CS degree and one of the entry level classes was a Python course. I got in there and knew a decent amount of programming logic, so I wanted to get into the thick of it and make assignments harder for myself. For example take an assignment about printing a few statements - I created a dictionary, looped through it, and output each one while taking input for answers. Just stuff like that to have fun and make it interesting. My teacher shut it down and threatened to fail me if I didn't "keep up with the class". This was two/three years ago but still pisses me off.
[QUOTE=Nookyava;52816473]If we're going on about professors mine wasn't as bad - but I started working on my CS degree and one of the entry level classes was a Python course. I got in there and knew a decent amount of programming logic, so I wanted to get into the thick of it and make assignments harder for myself. For example take an assignment about printing a few statements - I created a dictionary, looped through it, and output each one while taking input for answers. Just stuff like that to have fun and make it interesting. My teacher shut it down and threatened to fail me if I didn't "keep up with the class". This was two/three years ago but still pisses me off.[/QUOTE] before i nearly failed out of school and before my school screwed me over by not letting me enter any degree programs and before i dropped out (lol so i have some residual angst) I wanted to be a professor. I had had so many negative experiences and been treated so poorly by the vast majority of my professors that I wanted to right some wrongs, I guess. That and teaching seems fun. I had one really good math professor that really made me want to be a professor, since he seemed to enjoy it so much and made me really enjoy calculus. it suffices to say I've long let such dreams kinda wither, don't want to go back to school for a PhD even if I did it just to turn around and become a professor. Work has been a slow death: this thing is supposed to work with trajectories for pretty much any celestial body, but the program is built from the architecture to small member variables around the premise of only orbiting Earth. So either I'm running into the awful code I've mentioned already, or I'm stuck trying to find a way to work around this design. I don't have the time to do a ton of redesign, but I also don't have the ability to easily accomplish what I need to do without doing something like forcing values for one situation (as was done previously). Its exhausting, because I'd rather just do a more thorough redesign if I had the time (since that ultimately doesn't create more work)
[QUOTE=gokiyono;52815943]Do your teachers also seem incapable of using the programs they supposedly have 20+ years experience with? Because mine do[/QUOTE] My teachers can barely use computers. This PHP web development teacher tried to connect to his local Apache instance by typing "localhost" into his browser but surprisingly it opened up some IIS instance welcome page from some corner of the campus network, go figure. Guy didn't think to try "127.0.0.1" or check his hosts file or whatever, he just called the "network guy" of the campus. Network guy came to the class half-asleep and stared at the browser for 30 seconds and told him to get another computer and left the room. [editline]24th October 2017[/editline] [QUOTE=paindoc;52816735] Work has been a slow death: this thing is supposed to work with trajectories for pretty much any celestial body, but the program is built from the architecture to small member variables around the premise of only orbiting Earth.[/QUOTE] Where do you work at?
[QUOTE=DroppingPOCD;52816826]This PHP web development teacher[/QUOTE] My condolences
[QUOTE=DroppingPOCD;52816826] Where do you work at?[/QUOTE] A small space R&D company, whose name I'd rather not disclose since I wouldn't put it past someone angsty to try and get me fired :v: if you're not fairly familiar with this industry, you've almost certainly never heard of us
[QUOTE=paindoc;52817586]A small space R&D company, whose name I'd rather not disclose since I wouldn't put it past someone angsty to try and get me fired :v: if you're not fairly familiar with this industry, you've almost certainly never heard of us[/QUOTE] I bet its SpaceX.
Assembly fucking sucks [editline]24th October 2017[/editline] I did accidentally rig up my board to make a loud beeping noise when the next student plugs it in though.
Sorry, you need to Log In to post a reply to this thread.