Hahaha
The Big Programming Thread - Page 971
| Forum Index > General Forum |
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. | ||
|
Manit0u
Poland17614 Posts
Hahaha | ||
|
WarSame
Canada1950 Posts
We've been having (a lot of) issues with data quality and I want to guarantee that the code from the framework and our code does what we think it does, through functional tests. How would you implement that in this case? Do you need access to that framework? We have a test DB, but we could also use Mocks(I just don't think they'll help). | ||
|
icystorage
Jollibee19350 Posts
| ||
|
phar
United States1080 Posts
improved error handling and something that looks like generics if you squint at it the right way | ||
|
Deleted User 3420
24492 Posts
He sent me his homework assignment. It is due Sunday, he just looked at it. His class started on monday. Quick note: he has no experience with C, and no experience with automata Here is the assignment (pdf): https://ufile.io/ituhz Is this not completely absurd? I saw this and I started laughing and told him he's screwed and his teacher is insane. But maybe one of you has a different opinion? But just to go over it, they expect him to understand what a DFA is, how to make the DFA correctly, and how to do literally all those things in C. All in well less than a week. Curious about opinions on that. | ||
|
tofucake
Hyrule19189 Posts
It seems pretty reasonable for a 390 level course. | ||
|
Deleted User 3420
24492 Posts
| ||
|
Excludos
Norway8231 Posts
On September 01 2018 06:15 travis wrote: Yeah the course levels are super confusing. In terms of courses completed he is starting his 2nd year. If any reasonable naming convention was followed, CS390 would be a third year subject. You sure he didn't sign up for the wrong one? It also would make more sense with the "sudden" language change, as while you can't expect second years to simply jump onto a new language for a subject, a third year student should be able to.Also, he should have started earlier..but I can't really fault him for that since I know how I was as a student myself. | ||
|
Acrofales
Spain18195 Posts
On September 01 2018 07:22 Excludos wrote: If any reasonable naming convention was followed, CS390 would be a third year subject. You sure he didn't sign up for the wrong one? It also would make more sense with the "sudden" language change, as while you can't expect second years to simply jump onto a new language for a subject, a third year student should be able to.Also, he should have started earlier..but I can't really fault him for that since I know how I was as a student myself. All of this. Also, most programming assignments in courses I followed and taught can be done in pairs, although I guess maybe distance learning is different. | ||
|
Blisse
Canada3710 Posts
| ||
|
Howie_Dewitt
United States1416 Posts
I am designing a game for my friends, and I'd like to make a map of the game that tells you things about the part of the territory you're mousing over. We're also going to be using an excel file that will be constantly updated that contains statistics about every territory (the name, the population, number of armies, etc). I found an interactive map of the United States that resembles what we're looking for, and I think i would be able to create an SVG file of my homebrew map and switch that with the states. However, since we're designing this in tandem with a spreadsheet, i need the program to read from a spreadsheet. the interactive map demo, when mousing over the state of florida, has code that writes in, essentially, when mousing over this shape, say "Florida." is there a way to get it to display the contents of one specific cell from an excel spreadsheet? it's in HTML, which I've never used before. However, the other person designing the game with me understands the basics of HTML. I only understand the basics of Python myself. This is the demo map i mentioned. + Show Spoiler + https://websitebeaver.com/how-to-make-an-interactive-and-responsive-svg-map-of-us-states-capitals Thank you! | ||
|
WarSame
Canada1950 Posts
When they say Add the following code to the HTML file, right after id="HI", like so data-info="<div>State: Hawaii</div><div>Capital: Honolulu</div>". Repeat this for all of the states. You can instead replace that info with your info. There are 2 ways to do that - either you use a server side templating language like Jinja2, JSP, etc. and fill that information into your HTML template before you send it to the user, or you use a client side language and request the information for each component. So in a server side templating language the pseudo code might be like:
for each component. Similarly in client-side you would simply query for a component with ID 1 and return the HTML above. | ||
|
Manit0u
Poland17614 Posts
What a magnificent pull request title... | ||
|
Acrofales
Spain18195 Posts
On September 12 2018 21:37 Manit0u wrote:
What a magnificent pull request title... Lol. Sounds like two developers having a little bitch fight. You their supervisor? :D | ||
|
Manit0u
Poland17614 Posts
On September 12 2018 21:46 Acrofales wrote: Lol. Sounds like two developers having a little bitch fight. You their supervisor? :D Nope, guy from other team trying to really, really, finally, for sure this time fix a problem in production ![]() | ||
|
Manit0u
Poland17614 Posts
How the hell do I convert this raw string back into unicode? It has to be raw, that's how it comes from the db and it's fucking annoying as hell... (Python 3) Edit: The thing is it has to be converted and saved back with unicode characters since some records are broken like that and it's messing up with searches. | ||
|
Khalum
Austria831 Posts
| ||
|
Manit0u
Poland17614 Posts
On September 13 2018 22:54 Khalum wrote: Why are you using the 'r' prefix in the first line? To force it to be raw, like it comes from the db (when special unicode characters are not parsed, this simulates SQLAlchemy behavior). I managed to solve the problem though.
| ||
|
Acrofales
Spain18195 Posts
| ||
|
Thaniri
1264 Posts
Need to check out Golang because half of the stuff I'm using is written in Golang these days and we need to take advantage of open source by adding in the features we want ourselves. For example, did you know Cassandra (Java) open source version has no auditing capabilities? So one of our devs wrote something to do that. With Golang I think it will become immediately very annoying if I need to reference everything imported from a different package first with the package name. $HOME/go/test.go
$HOME/go/card/card.go
So if I make card related functions, I need to specify every time Card.MyFunction. Coming from Java this seems pointless when my compiler should know that I only have one Card struct. It's not like I rewrote the math package and need to specify that I want to use MY math package instead of the default math package. | ||
| ||
It also would make more sense with the "sudden" language change, as while you can't expect second years to simply jump onto a new language for a subject, a third year student should be able to.